MANE 3332.05
Lecture 27
Agenda
- Linear Regression Lecture (Chapters 11 and 12)
- Chapter 9, Case 2 2-sided Quiz (assigned 12/2/2025, due 12/4/2025)
- Chapter 9, Case 2 Lower Quiz (assigned 12/2/2025, due 12/4/2025)
- Chapter 9, Case 2 Upper Quiz (assigned 12/2/2025, due 12/4/2025)
- Chapter 9, Case 3 2-sided Practice Problems (assigned 12/2/2025, due 12/4/2025)
- Chapter 9, Case 3 Lower Practice Problems (assigned 12/2/2025, due 12/4/2025)
- Chapter 9, Case 3 Upper Practice Problems (assigned 12/2/2025, due 12/4/2025)
- NEW: Chapter 9, Case 3 2-sided Quiz (assigned 12/4/2025, due 12/9/2025)
- NEW: Chapter 9, Case 3 Lower Quiz (assigned 12/4/2025, due 12/9/2025)
- New: Chapter 9, Case 3 Upper Quiz (assigned 12/4/2025, due 12/9/2025)
- Attendance
- Questions?
Handouts
Class Schedule
| Week | Tuesday Lecture | Thursday Lecture |
|---|---|---|
| 14 | 12/2 - Chapter 9, Case 3 | 12/4 - Linear Regression |
| 15 | 12/9 - Review Session | 12/11 - Study Day (no class) |
The final exam for MANE 3332.01 is Thursday December 18, 2025 at 1:15 PM - 3:00 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

