





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






STAT 516 is primarily about linear models. Model : A mathematical equation describing (approximating) the relationship between two (or more) variables. โ Any assumptions we make about the variables are also part of the model. Simple Linear Regression (SLR) Modeling โ Analyzes the relationship between two quantitative variables. โ We have a sample, and for each observation, we have data observed for two variables: Dependent (Response) Variable: Measures major outcome of interest in study (often denoted Y ) Independent (Predictor) Variable: Another variable whose value may explain, predict or affect the value of the dependent variable (often denoted X ) Example:
โ In SLR, we assume the relationship between Y and X can be mathematically approximated by a straight-line equation. โ We assume this is a statistical relationship: not a perfect linear relationship, but an approximately linear one. Example: Consider the relationship between X = Y = We might expect that gas spending changes with distance traveled โ maybe nearly linearly. โ If we took a sample of trips and measured X and Y for each, would the data fall exactly along a line? Picture:
We assume ๏ฅ has a Since ๏ฅ has mean 0, the mean (expected value) of Y , for a given X -value, is: โ This is called the conditional mean of Y. โ The deterministic part of the SLR model is simply the mean of Y for any value of X :
Example: Suppose ๏ข 0 = 2, ๏ข 1 = 1. Picture: โWhen X = 1, E( Y ) = โ When X = 2, E( Y ) = โ The actual Y values we observe for these X values are a little different โ they vary along with the random error component ๏ฅ. Assumptions for the SLR model: โ The linear model is correctly specified
X = size of house (in thousands of square feet) Y = selling price of house (in thousands of dollars) โ Is a linear relationship between X and Y appropriate? On computer, examine a scatter plot of the sample data. โ How to choose the โbestโ slope and intercept for these data? Estimating Parameters โ ๏ข 0 and ๏ข 1 are unknown parameters. โ We use the sample data to find estimates ๏ข^ ห^0 and ๏ข^ ห 1. โ Typically done by choosing 0 ๏ข^ ห and ๏ข^ ห 1 to produce the least-squares regression line: Picture: For each data point, predicted Y -value is denoted Y ห^.
Picture: โ Residual (or error) = Y โ Y ห^ for each data point. โ We want our line to make these residuals as small as possible. Least-squares line: The line chosen so that the sum of squared residuals (SSE) is minimized. โ Choose 0 ๏ข^ ห and ๏ข^ ห 1 to minimize: Example: (House Price data): The following can be calculated from the sample: