1 / 20

ENGN 2226 ENGINEERING SYSTEMS ANALYSIS L24: Linear regression

ENGN 2226 ENGINEERING SYSTEMS ANALYSIS L24: Linear regression. Linear Models. Very many causal relationships can be exactly described by linear models. Many causal relationships can be adequately modelled by linear models.

nika
Télécharger la présentation

ENGN 2226 ENGINEERING SYSTEMS ANALYSIS L24: Linear regression

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ENGN 2226 ENGINEERING SYSTEMS ANALYSISL24: Linear regression

  2. Linear Models • Very many causal relationships can be exactly described by linear models. • Many causal relationships can be adequately modelled by linear models. • Linear models are a basic tool that is useful in a variety of situations and are a fundamental tool for engineering systems analysis.

  3. Identifying linear models in data. Start with a set of data that has several measured variables for each instance of the population.

  4. Scatter plot Look for structure in the scatter plot of the two variables. In this case we are looking for linear structure.

  5. Linear predictive model The model can be used to predict values for values of the response variable that have not been measured. Question: How does one compute the parameters a and b that define the model.

  6. Graphical representation of error We will deal exclusively with the measurement noise case in this course. Measurement noise case Noise equally in both variables Gaussian noise Gaussian noise Least squares error Total least squares cost

  7. Measurement Noise

  8. yk+1 yk k+2 k+1 k yk+2 Linear Model Estimators • The mean response of the model is a straight line function, the population regression line, of the explanatory variable. • The measurement yk, yk+1, yk+2 are sampled from a normal distribution with variance 2 around the point a xk+ b .

  9. yk+1 yk k+2 k+1 k yk+2 Linear Model Estimators • We can see the difference between the actual measurements and the estimated measurements using our linear model. Now we want to try and understand the error between the two caused by our model

  10. Linear Model Estimators • When we are choosing an estimator we need to determine the objective we want to meet. This will determine the form (and the mathematical formula) of the estimator we need. • There are lots of possible objectives but the most common is to reduce the sum squared error (SSE) between our linear model and the observations we have.

  11. Least squares error The error term is the difference between the predicted output and the measured output Least squares error

  12. Effect of minimising LS cost The LS cost acts to minimise the squared error of the residue equally along the predictive linear model.

  13. Least Squares Estimator

  14. Proof of LSE • On the Board

  15. Least Squares Estimator

  16. Least Squares Example (The Data) • We have a set of data with explanatory and response variables • How many explanatory and response variable pairs are needed to find an estimate of the linear model?

  17. Least Squares Example (Data Mean)

  18. Least Squares Example (Data Variance)

  19. Least Squares Example (The LSE)

  20. Least Squares Example (The LSE)

More Related