You are working on a project where Simple Linear Regression seems appropriate, but the independent variable is categorical. How would you handle this situation?
- Change the Dependent Variable
- Ignore the Variable
- Treat as Continuous Variable
- Use Dummy Variables
For a categorical independent variable in Simple Linear Regression, you can create dummy variables to represent the categories.
Loading...
Related Quiz
- You're clustering a large dataset, and computational efficiency is a concern. Which clustering techniques might be more suitable, and why?
- Which machine learning algorithm is commonly used for time series forecasting due to its ability to remember long sequences?
- If a model performs well on the training data but poorly on the validation data, it may be suffering from _________.
- How does dimensionality reduction help in reducing the risk of overfitting?
- In pharmacology, machine learning can aid in the process of drug discovery by predicting potential ________ of new compounds.