LinearStatisticalModels and Regression Analysis
LinearStatisticalModels and Regression Analysis
Regression
UNIT-1 and UNIT-2
• The method of Ordinary Least Squares (OLS) is used to estimate the regression
parameters.
• OLS fits regression line through a set of data points such that the sum of the
squared distances between the actual observations in the sample and the regression
line is minimized.
• OLS provides the Best Linear Unbiased Estimate (BLUE)
Deriving the regression coefficients using OLS
To find the optimal values of 𝛽0 𝑎𝑛𝑑 𝛽1 that will minimize SSE, we have to
equate the partial derivative of SSE with respect to 𝛽0 𝑎𝑛𝑑 𝛽1 to zero
Deriving the regression coefficients using OLS
Deriving the regression coefficients using OLS
𝑛 σ 𝑋𝑖 𝑌𝑖 − σ 𝑋𝑖 σ 𝑌𝑖
= B1= cov(X,Y)/var(X)
𝑛 σ 𝑋𝑖2 − σ 𝑋𝑖 2
1
Other expressions of 𝛽
Source: Book: Business Analytics: The Science of Data-driven decision making by U Dinesh Kumar (2017)
Assumptions of Simple Linear Regression
Gauss-Markov Theorem in Regression Analysis
SST = sum((Yobs-Ymean)**2)
SSE = sum((Yobs-Ypred)**2)
SST= SSR +SSE
2. Hypothesis test for slope (𝛽1 ) of Regression
OR
Hypothesis test for slope (𝛽1 ) of Regression