DS AdvancedLesson 25Free preview
DS Linear Regression Case
This lesson is part of Data Science · All levels
Summary
Linear regression case studies apply the whole concept to real data, for example predicting exam scores based on study hours. Before modeling, the data was understood and visualized through scatter plots and then cleaned up. The results of the model are then read from the coefficients, p-value, and R-squared to infer the influence and quality of the predictions.
Key points
- The independent variable = study time; dependen = exam score.
- EDA and data cleaning preceded the model.
- Prediction: add a new x to y = mx + c or model.predict().
- The valid conclusion is that 'associated', not a definite promise per individual.
- The combination of RÂ2 and p-value assesses the quality and significance of the model.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.