50 likes | 170 Views
AP Statistics Review. Inference for Linear Regression (C27 BVD). If we believe two variables may have a linear relationship, we may find a linear regression line to model that relationship.
E N D
AP Statistics Review Inference for Linear Regression (C27 BVD)
If we believe two variables may have a linear relationship, we may find a linear regression line to model that relationship. • But, if we do not have the entire populations for both variables, we may sample from the population and find a sample regression line using procedures we already learned. • Mainly we would look at the slope as a good indicator of a linear relationship – if there is no linear relationship the slope for the population regression line should be 0. Sample Regression Line
Linear – check the scatterplot for a straight relationship and residual plot for no patterns. • Independent – 10% condition (sample is no more than 10% of population) • Normal – Make a histogram or NPP of residuals to make sure there is no strong skew. • Equal Variance – The amount of scatter of residuals should be roughly the same (no fanning). • Random sampling/assignment LINER -Conditions for Regression Inference
The sampling distribution for slope is unimodal and symmetric and if conditions are met a t-distribution is an appropriate model. • The interval is b +/- t* sr/(sxsqrt(n-1)) • Where sr is stddev of residuals and df= n-2 and the whole denominator is SE. • Use LinRegTInt on calculator Confidence Interval for Slope
Usually H0 is that B0 = 0 (remember: use Greek (Beta) for parameters for the population) • Can be one or two-tailed alternate. • Test statistic t =(b – B0)/SE • Can use t-table for df = n-2 • Use LinRegTtest on calculator • On calculator test where you choose alternate, you will see both Beta and Rho, the population correlation coefficient. Testing for zero slope works the same as testing for zero correlation so the calculator just does both. Hypothesis test for slope