Here are the steps to perform regression analysis on this data:
1. Define the variables:
Xt = Advertising spend in period t
Dt = Sales in period t
2. Calculate the mean of each variable:
Mean(X) = Sum(Xt) / n = 211/10 = 21.1
Mean(D) = Sum(Dt) / n = 4597/10 = 459.7
3. Calculate deviations from the mean:
Xt' = Xt - Mean(X)
Dt' = Dt - Mean(D)
4. Calculate:
Sum(Xt'Dt') = 1599
Sum(Xt'2) = 15