Regression — Analysis By Example
Y=β0+β1X+ϵcap Y equals beta sub 0 plus beta sub 1 cap X plus epsilon β0beta sub 0 (Intercept): Sales when the temperature is 0 degrees. β1beta sub 1
One day’s sales don't directly dictate the next. Regression Analysis by Example
Regression Analysis is essentially the art of finding the "best-fit" story between variables. If you’re looking to master it or explain it effectively, The Concept: Predicting Coffee Shop Sales Y=β0+β1X+ϵcap Y equals beta sub 0 plus beta
(Error): The "noise"—factors you didn't measure (like a local parade or a broken espresso machine). 2. Checking the "Goodness of Fit" If you’re looking to master it or explain
Is the relationship real or just a fluke? A p-value under 0.05 generally means your result is statistically significant. 3. Adding Complexity (Multiple Regression) Temperature isn't the only factor. You might add: X2cap X sub 2 : Is it a weekend? (0 for no, 1 for yes). X3cap X sub 3 : Is there a discount running?Now your model looks like: 4. The "Golden Rules" (Assumptions)
): Daily high temperature (the factor you think causes the change). 1. The Simple Linear Model The goal is to find the equation for a straight line: