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
1731
1840
1427
1262
1444
1100
Temp in Celsius
21.4
22.9
24.1
26.1
29
31.1
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 b? Round your answers to the nearest hundredths.
In order to compute the regression coefficients, the following table needs to be used:
"=25.766667"
"\\bar{Y}=\\dfrac{1}{n}\\sum _{i}Y_i=\\dfrac{8804}{6}"
"=1467.333333"
"SS_{XX}=\\sum_iX_i^2-\\dfrac{1}{n}(\\sum _{i}X_i)^2"
"=4052.6-\\dfrac{154.6^2}{6}=69.073333""SS_{YY}=\\sum_iY_i^2-\\dfrac{1}{n}(\\sum _{i}Y_i)^2"
"=13306070-\\dfrac{8804^2}{6}=387667.333333"
"=222594.3-\\dfrac{154.6(8804)}{6}"
"=\u22124255.433333"
"b=\\dfrac{SS_{XY}}{SS_{XX}}=\\dfrac{222594.3-\\dfrac{154.6(8804)}{6}}{4052.6-\\dfrac{154.6^2}{6}}"
"=\u221261.61"
Comments
Leave a comment