The local coffee shop keeps track of how much coffee ice cream they sell versus the temperature on that day, here are their figures:
Sales in Php
1690
1786
1391
1555
1111
1423
Temp in Celsius
21.1
24
25.4
26.9
29.6
30.3
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 value of a? Round your answers to the nearest hundredths.
In order to compute the regression coefficients, the following table needs to be used:
"=26.216667"
"\\bar{Y}=\\dfrac{1}{n}\\sum _{i}Y_i=\\dfrac{8956}{6}"
"=1492.666667"
"SS_{XX}=\\sum_iX_i^2-\\dfrac{1}{n}(\\sum _{i}X_i)^2"
"=4184.23-\\dfrac{157.3^2}{6}=60.348333"
"=13658052-\\dfrac{8956^2}{6}=289729.333333"
"=231686.4-\\dfrac{157.3(8956)}{6}=\u22123110.066667"
"b=\\dfrac{SS_{XY}}{SS_{XX}}=\\dfrac{231686.4-\\dfrac{157.3(8956)}{6}}{4184.23-\\dfrac{157.3^2}{6}}"
"=-51.53"
"a=\\bar{Y}-b\\bar{X}=2843.75"
Comments
Leave a comment