Professional Documents
Culture Documents
Basics of Linear Regression Variation in Linear Regression Linear Regression Analysis Goodness of Fit Standard Error terms for Linear Regression Hypothesis testing
Regression - Types
Linear Regression
A statistical technique that uses a single, independent variable (X) to estimate a single dependent variable (Y). Based on the equation for a line:
Y = b + mX
Yi
Y ! FF X Ii
Xi
Yi
F
F
Ii
Population
Y = b0 + b1Xi + e Y = b0 + b1Xi
Sample
ANOVA
3-hour 70 77 76 80 84 78 1-day 61 75 67 63 66 68 10-week 82 88 90 96 92 98
D - Variati
SST is a measure f the t tal variati f bservati s. A measure f the differe ces i bservati s.
SST
Due t treatme ts.
= 2.53
Ice
4 35 3 25 2 15 1 05 0 0 20 40
eam Sa es
60
80
100
120
Y ! b0 b1 X !
SS
ue t regressi n.
SST SSE
and m/unexplained.
SST = SS + SSE
_ Y X
Xi
Select Tools, Data Analysis, Regression Provide the X range Provide the Y range Output the analysis to a new sheet
Manual Calculations
Intercept X Variable 1
Coefficients Standard Error t Stat -2.534985905 0.295223266 -8.58667 0.060727986 0.003519947 17.25253
b1=SSxy/SSx
b0 = Y
b1X
R2 = SSR/SST
SYX ! SSE n-2
t-test = b1 / Sb1
R2 Coefficient of Determination F-test > F-crit or p-value less than alpha Standard Error t-test
Testing to see if the linear relationship between X and Y is significant at the population level. t-test Follow the 5-step process
Standard deviation of the slopes A measure of the variation of the slopes from different samples If the Sb1 is small our b1 estimate is probably very accurate Estimates of
b1 b1 b1
Petfood, Estimate Sales based on Shelf Space Two sets of samples, 12 observations each Perform a Regression Analysis on both sets of data
Space 5 5 5 10 10 10 15 15 15 20 20 20 Sales 1. 2.2 1. 1. 2. 2. 2. 2. 2. 2. 2. 3.1 Space 5 5 5 10 10 10 15 15 15 20 20 20 Sales 1. 1. 1. 2 2. 2. 3.5 3.2 3.3 4.2 4. 4.5
Sample1
Sample2