Difference between revisions of "Least squares modelling"

From Statistics for Engineering
Jump to navigation Jump to search
Line 52: Line 52:
| [https://docs.google.com/document/d/1wn7F1FevnUKciyoHclBdoODU2nTM36Cbel0Ur_Se6yk Solution]
| [https://docs.google.com/document/d/1wn7F1FevnUKciyoHclBdoODU2nTM36Cbel0Ur_Se6yk Solution]
|}
|}
== Class videos from prior years ==
===Videos from 2015===
# Overview of this module [02:59]
# Covariance and correlation [09:46]
# Why least squares, and some other alternatives [covered in class]
# Some of the math behind the LS model [09:44]
# Understanding the analysis of variance (ANOVA) [11:58]
# Interpretation of standard error [covered in class]
# Assumptions to derive LS confidence intervals [05:45]
# Confidence intervals interpreted and used in 3 LS examples [11:54]
# Prediction intervals from the least squares model [04:24]
# Checking for violations of the least squares assumptions (1 of 2) [07:27]
# Checking for violations of the least squares assumptions (2 of 2) [11:46]
# Introducing multiple linear regression - why we need to use it [2:59]
# MLR - the matrix equation form and an example [11:25]
# Interpreting the MLR model coefficients and confidence intervals [04:58]
# Integer variables in the multiple linear regression model [09:51]
{{VideoBox
|ytid = RW_8yKbMzUA
|timing=02:59
|shortcut=reg-01
}}
{{VideoBox
|ytid = tXOCOMtSWrc
|timing=09:46
|shortcut=reg-02
}}
{{VideoBox
|ytid =
|timing=Covered in class
|shortcut=reg-03
}}
{{VideoBox
|ytid = 8d_pbx4vnsI
|timing=09:44 
|shortcut=reg-04
}}
{{VideoBox
|ytid = xIjAD_6nXto
|timing=11:58
|shortcut=reg-05
}}
{{VideoBox
|ytid =
|timing=Covered in class
|shortcut=reg-06
}}
{{VideoBox
|ytid = Qls1R2HOzy0
|timing=05:45
|shortcut=reg-07
}}   
{{VideoBox
|ytid = sY8CVMGUD54
|timing=11:54
|shortcut=reg-08
}}
{{VideoBox
|ytid = N8NF1_CBTw4
|timing=04:24
|shortcut=reg-09
}}
{{VideoBox
|ytid = phufT1KE9Sk
|timing=07:27
|shortcut=reg-10
}}
{{VideoBox
|ytid = 7fd8Qu1i3Dk
|timing=11:46   
|shortcut=reg-11
}}
{{VideoBox
|ytid = qiv1nBCfwBg
|timing=02:59 
|shortcut=reg-12
}}
{{VideoBox
|ytid = dkfY0OKH12g
|timing=11:25
|shortcut=reg-13
}}
{{VideoBox
|ytid = FkZZiv3J6xQ
|timing=04:58
|shortcut=reg-14
}}
{{VideoBox
|ytid = TrhG-XhnBK4
|timing=09:51
|shortcut=reg-15
}}

Revision as of 15:51, 3 January 2016

Learning outcomes

  • Understand the difference between correlation and covariance.
  • What the objective function of least squares does
  • Understand and use an analysis of variance table
  • Calculate and interpret the confidence intervals from a least squares model
  • Know about the assumptions required to interpret least squares model coefficients
  • Use the prediction error range from the model
  • Identify outlier points and classify them
  • Use the linear model when there are multiple predictor variables (this is what we are building up towards; we will use this extensively in the next topic)

Extended readings/practice

  • Run the code below to see how to build and use a linear model in R, but see step 16 and onwards in the R tutorial as well.
  • Try some practice problems.
  • Describe a linear regression model you have made for a lab report.
    • What was the \(R^2\) value?
    • How did you calculate the regression model values?
    • Use the same data from your report and instead calculate the standard error, \(S_E\). How do you interpret that \(S_E\) value now?
  • Do the YouTube challenge: find a video on YouTube that explains the central limit theorem, or the confidence interval, or least squares in a way that is different to explained in class (hopefully you find better explanations than mine). Share the link with a friend in your class.
  • Does eating chocolate lead to winning a Nobel prize?

Resources

Tasks to do first Quiz Solution
Watch videos AAA Quiz Solution
Watch videos BBB Quiz Solution
Watch videos CCC Quiz Solution
Watch videos DDD Quiz Solution
Watch videos EEE Quiz Solution

Class videos from prior years

Videos from 2015

  1. Overview of this module [02:59]
  2. Covariance and correlation [09:46]
  3. Why least squares, and some other alternatives [covered in class]
  4. Some of the math behind the LS model [09:44]
  5. Understanding the analysis of variance (ANOVA) [11:58]
  6. Interpretation of standard error [covered in class]
  7. Assumptions to derive LS confidence intervals [05:45]
  8. Confidence intervals interpreted and used in 3 LS examples [11:54]
  9. Prediction intervals from the least squares model [04:24]
  10. Checking for violations of the least squares assumptions (1 of 2) [07:27]
  11. Checking for violations of the least squares assumptions (2 of 2) [11:46]
  12. Introducing multiple linear regression - why we need to use it [2:59]
  13. MLR - the matrix equation form and an example [11:25]
  14. Interpreting the MLR model coefficients and confidence intervals [04:58]
  15. Integer variables in the multiple linear regression model [09:51]
02:59 | Download video | Download captions | Script
09:46 | Download video | Download captions | Script
Covered in class | No video | Script
09:44 | Download video | Download captions | Script
11:58 | Download video | Download captions | Script
Covered in class | No video | Script
05:45 | Download video | Download captions | Script
11:54 | Download video | Download captions | Script
04:24 | Download video | Download captions | Script
07:27 | Download video | Download captions | Script
11:46 | Download video | Download captions | Script
02:59 | Download video | Download captions | Script
11:25 | Download video | Download captions | Script
04:58 | Download video | Download captions | Script
09:51 | Download video | Download captions | Script