MANE 3332.03
Lecture 26, April 28
-
Topics:
- Linear Regression (Chapters 11 and 12)
- Assignments:
- New: Chapter 9, Case 3 Upper Quiz (assigned 4/29/2025, due 5/1/2025)
- New: Chapter 9, Case 3 Lower Quiz (assigned 4/29/2025, due 5/1/2025)
- New: Chapter 9, Case 3 2-sided Quiz (assigned 4/29/2025, due 5/1/2025)
- Technical Report Two (assigned 4/17/2025, due 5/15/2025)
- Attendance
- Questions?
Handouts
Class Schedule
| Tuesday Lecture | Thursday Lecture |
|---|---|
| 4/29: Chapter 11 | 5/1: Chapter 11 |
| 5/6: Review | 5/8: Dead Day (no class) |
3 Sessions plus final exam
Final Exam: Tuesday May 13, 2025 10:15 am - 12:00 pm
Technical Report Two: Thursday May 15, 2025 11:59 pm
Simple Linear Regression
-
Regression analysis is a statistical technique for modeling and investigating the relationship between two or more variables.
-
Simple linear regression considers the relationship between a single independent variable and a dependent variable
-
A good tool to examine the relationship is a scatter diagram
Empirical Models
-
An empirical model is a model that captures the relationship between regressor inputs and a response variable that is not based upon theoretical knowledge
-
There are many types of empirical models
-
Discuss wind-powered generator
Simple Linear Regression Model
- A simple linear regression model is shown below
where \(Y\) is the dependent (or response) variable, \(x\) is the independent (or regressor) variable and \(\varepsilon\) is the random error term
- We can use this model to predict \(Y\) for a given value of \(x\)
- Assuming \(\varepsilon\) has zero mean and variance \(\sigma^2\)
- Examine the graphic shown below
Figure 11-2
Figure 11-2 on page 283

Method of Least Squares
-
The method use to estimate values for \(\beta_0\) and \(\beta_1\) is called least squares and was developed by Gauss
-
Examine figure shown below
-
Minimize
-
The solution to this problem is called the least squares normal equations
-
Examine the graphics shown below
Figure 11-3, page 285

Equations 11-7 and 11-8 on page 285

R
-
In this course, we will use R to estimate the parameters and calculate sums of squares quantities
-
Example Problem

Creating Regression Data in R




Hypothesis Test
- It is possible to perform a hypothesis involving the slope parameter, \(\beta_1\)
where \(\beta_{1,0}\) is a constant (often 0).
-
Requires the assumption that \(\varepsilon\sim\mbox{NID}(0,\sigma^2)\)
-
The test statistic is a \(t\)-random variable
- A similar test can be formed for \(\beta_0\)

Examining Model Adequacy
-
Two major concerns
-
Does the model provide an adequate explanation of the data?
-
Are the model assumptions satisfied?
-
Residual Analysis
- The residuals are defined to be
- Examine normality assumption by generating a normal probability plot of residuals

Residual Analysis - Constant Variance
-
Examine the assumption of constant variance by plotting residuals versus fitted values and residuals vs \(x\)
-
Examine if additional terms are required (such as quadratic) by examining residuals vs \(x\)
- Residuals are often standardized


Lack of Fit Test
- If there are repeated observations (identical values of \(x\)) a lack of fit test can be performed
- The repeated observations allows the \(SS_E\) error term to be partitioned
- The test statistic is

