The local coffee shop keeps track of how much coffee they sell versus the temperature on that day, here are their figures:
Sales in Php
1796
1657
1435
1573
1476
1403
Temp in Celsius
21.2
22.7
24.2
26.6
29.5
30.9
Suppose you want to create a regression equation that will predict the total sales in Php using the temperature of the day in Celcius, what is the total sales for the day in Php if the temperature is 29.1? Round your answers to the nearest hundredths.
In order to compute the regression coefficients, the following table needs to be used:
"=25.85"
"\\bar{Y}=\\dfrac{1}{n}\\sum _{i}Y_i=\\dfrac{9340}{6}"
"=1556.666667"
"SS_{XX}=\\sum_iX_i^2-\\dfrac{1}{n}(\\sum _{i}X_i)^2"
"=4082.99-\\dfrac{155.1^2}{6}=73.655"
"=14651804-\\dfrac{(9340)^2}{6}=112537.333333"
"=239152.6-\\dfrac{155.1(9340)}{6}=\u22122286.400000"
"b=\\dfrac{SS_{XY}}{SS_{XX}}=\\dfrac{239152.6-\\dfrac{155.1(9340)}{6}}{4082.99-\\dfrac{155.1^2}{6}}"
"=-31.042"
"a=\\bar{Y}-b\\bar{X}=2359.1029"
Therefore, we find that the regression equation is:
The total sales for the day in Php if the temperature is 29.1 is Php1456.
Comments
Leave a comment