Solution-:
By using R-Software:
> X=c(19,13,22,18,5,13,17,21);X
[1] 19 13 22 18 5 13 17 21
> Y=c(47,30,35,42,20,21,44,34);Y
[1] 47 30 35 42 20 21 44 34
> #(a)For regression equation
> fit=lm(Y~X);fit
Call:
lm(formula = Y ~ X)
Coefficients:
(Intercept) X
13.49 1.29
> #The estimated equation of the line of regression of Y on X
is: Y= m*X+b or y=a+b*X
> #The estimated equation of the line of regression of Y on X
is:Y=13.49+1.29*X
R-Code:
X=c(19,13,22,18,5,13,17,21);X
Y=c(47,30,35,42,20,21,44,34);Y
#(a)For regression equation
fit=lm(Y~X);fit
#The estimated equation of the line of regression of Y on X is: Y=
b+m*X or y=a+b*X
#The estimated equation of the line of regression of Y on X
is:Y=13.49+1.29*X
The following table shows the hot dogs bought from a street vendor over the course of...
The following table shows the hot dogs bought from a street vendor over the course of eight days ("Demand"). Also shown is the temperature for each day in degrees Celsius. Complete parts a and b below. Temperature (°C) 19 11 25 18 8 13 16 22 Demand 48 29 35 40 16 25 44 34 a. Calculate the slope and y-intercept for the linear regression equation for these data. (Round to two decimal places as needed.) b. Predict the demand...
The following table shows the hot dogs bought from a street vendor over the course of eight days ("Demand"). Also shown is the temperature for each day in degrees Celsius. Complete parts a and below. Temperature (°C) 21 12 23 20 9 13 19 Demand 46 31364220 44 a. Calculate the slope and y-intercept for the linear regression equation for these data. (Round to two decimal places as needed.) b. Predict the demand for hot dogs on a day with...
The following table shows the hot dogs bought from a street vendor over the course of eight days ("Demand"). Also shown is the temperature for each day in degrees Celsius. Complete parts a and b below. Temperature Demand 20 45 9 32 23 36 17 40 8 19 13 22 20 44 22 31 a. calculate the slope and y-intercept for the linear regression equation for these data y=____ + (____)x b. Calculate how many hotdogs would be sold on...
The following table shows the hot dogs bought from a street vendor over the course of eight days ("Demand"). Also shown is the temperatun for each day in degrees Celsius. Complete parts a and b below. Temperature (°C) 18° 9 22 16 7 12 19 | 220 Demand 45 28 36 39 18 22 4032 a. Calculate the slope and y-intercept for the linear regression equation for these 9 - x (Round to two decimal places as needed.)
This Question: 1 pt 1 of 16 The following table shows the hot dogs bought from a street vendor over the course of eight days (Demand"). Also shown is the temperature for each day in degrees Celsius. Complete parts a and b below. 22 İ 13 İ 22 İ 17 | 7 | 12 | 19 Temperature( nd 4732 Dema35 38 1 20122|4233 a. Calculate the slope and y-intercept for the linear regression equation for these data (Round to two...
The following table shows the hot dogs bought from a street vendor over the course of eight days ("Demand"). Also shown is the temperature for each day in degrees Celsius. nbsp Temperature (C*): 22 12 22 19 7 11 16 23 Demand: 50 30 36 40 18 25 40 31 A linear regression on the data gives the equation below. Complete parts a through d below. Predicted Demand equals 13.22 plus 1.24 left parenthesis Temperature right parenthesis a. Calculate the...
1. David is a street vendor who sells hot dogs in the city and would like to develop a regression model to help him predict the daily demand for his product in order to improve inventory control. David believes that the three main factors affecting hot dog demand for a particular day are his price per hot dog, the high temperature during business hours that day, and whether the day falls on a weekday or weekend (many of David’s customers...