I have performed the linear regression programming in R
and here I get the model as follows
Feb=164.5127+0.7235*(Jan)
Call:
lm(formula = Y ~ X, data = Data)
Now for the question check all the conditions for model.Select the appropriate statements.
Coefficients:
(Intercept) X
164.5127 0.7235
Now for the question "check all the conditions for model.Select the appropriate statements."
We check linearity by plotting observed value versus predicted value and it gives a plot which is linear.
rm(list=ls(all=TRUE))
Data=read.table("HomeworkLib.csv",header=TRUE,sep=',')
Data
lm(Y~X,data=Data)
f=function(x)
{
return(164.5127+(0.7235*x))
}
Y_hat=f(Data$Y);Y_hat
plot(Y_hat,Data$Y,type="l")
here is the code for checking linearity.
Randomisation is valid for multiple regression linear model.So this query does not count here.
To check the condition normality we perform normal quantile plot
Code:qqnorm(Data$Y)
The plot shows it is bow shaped.hence it is somewhat violate the normality assumption.
If we plot residuals we can see equally spread condition(homoscadiscity) is also satisfied.
Code:Res=resid(L)
Res
plot(Res,type='l')
for question b the cardholder has to pay 1611.513 for january.
question c and d is not valid because in question e b option is valid
Fina cal ana st ?o that January credit card charges w geno a y be much...
January February 902.79 640.77 7208.82 4571.22 4240.01 2271.57 79.89 299.69 4038.81 1376.69 89.24 −120.78 3290.41 1928.63 2418.77 2609.13 83.87 144.74 6.42 393.11 0.00 40.41 564.15 295.64 2714.19 850.07 187.25 162.07 3266.22 2411.62 1525.08 957.05 1358.98 38.013 733.71 2656.94 75.12 64.94 70.27 −70.21 633.98 1860.28 1040.93 478.78 554.05 995.75 1016.82 774.36 1304.09 3364.08 249.63 5.53 48.71 96.94 871.96 890.94 485.52 485.28 616.84 1486.08 1572.31 890.16 422.54 392.15 769.75 323.26 56.55 0.00 1486.28 2253.16 495.57 389.88 1064.46 1065.19 510.06 131.43 5646.18 4950.25...
Monthly Credit Card charges December January 1545.24 903.07 4302.19 7208.16 4227.61 4242.62 202.81 79.93 3297.71 4046.26 874.73 89.16 3810.51 3291.06 1935.26 2418.75 99.13 83.92 504.72 6.42 410.88 0.00 683.25 564.36 2159.04 2714.58 1123.46 187.11 2509.71 3268.75 1835.18 1523.58 9.95 1360.31 2334.13 732.98 78.55 75.13 101.29 70.22 598.12 633.81 648.44 1041.91 236.13 553.81 1265.72 1016.92 2124.07 1304.08 3.66 249.42 305.91 48.73 1902.23 871.78 559.02 485.04 2448.35 616.27 2799.41 1574.17 531.39 422.91 537.22 769.43 767.24 56.58 1960.36 1486.88 1678.03 495.83 2065.72 1065.31...
Spending on credit cards decreases after the Christmas spending season (as measured by amount charged on a credit card in December). The accompanying data set contains the monthly credit card charges of a random sample of 99 cardholders. Complete parts a) through e) below 囲Click the icon to view the monthly credit card charges A. All of the conditions are definitely satisfied B. The Randomization Condition is not satisfied. C. The Equal Spread Condition is not satisfied. D. The Nearly...
Financial analysts know that January credit card charges will generally be much lower than those of the month before. What about the difference between January and the next month? Does the trend continue? The accompanying data set contains the monthly credit card charges of a random sample of 99 cardholders. Complete parts a) through e) below. Click the icon to view the monthly credit card charges. a) Build a regression model to predict February charges from January charges. Feb =...
December January 1543.47 903.06 4296.15 7207.24 4229.96 4236.85 202.69 79.99 3296.93 4041.82 873.21 89.25 3812.03 3289.29 1932.82 2418.49 99.17 83.92 503.97 6.42 411.05 0.00 682.55 564.45 2161.01 2712.73 1124.99 186.99 2507.68 3262.37 1837.64 1525.17 9.94 1360.49 2333.51 733.98 78.63 75.08 101.31 70.26 598.44 634.39 648.23 1042.22 235.96 554.09 1267.16 1016.15 2124.18 1304.17 3.66 249.61 306.05 48.73 1900.26 872.97 559.58 485.61 2445.76 616.65 2799.59 1575.21 531.44 422.63 537.23 770.56 766.99 56.54 1959.23 1485.17 1679.34 495.98 2064.97 1065.45 396.87 510.34 5637.86 5646.55...
January February 904.26 641.28 7214.25 4569.29 4234.27 2267.96 79.94 299.72 4043.51 1376.97 89.34 -120.83 3291.24 1927.78 2418.33 2610.63 83.88 144.81 6.42 392.68 0 40.48 564.23 295.82 2715.11 848.78 187.15 162.09 3265.33 2411.81 1525.05 956.79 1359.03 38.01 733.88 2657.81 75.16 64.89 70.26 -70.25 634.37 1860.98 1041.29 478.41 553.33 994.54 1016.79 774.13 1305.45 3365.66 249.35 5.54 48.79 96.89 872.19 890.51 485.45 485.61 616.27 1484.08 1573.04 889.57 422.45 391.95 770.17 323.65 56.54 0 1484.99 2253.41 495.42 389.59 1065.47 1066.84 510.79 131.48 5647.13 4946.21...
Suppose hat on January 1 you have a balance of $5900 on a credit card whose APRIs 15%, which you want o pay ofin 1 year. Assume that you make no additional charges the card after January 1 a. Calculate your monthly payments b. When the card is paid off, how much will you have paid since January 1? c. What percentage of your total payment from part (b) is interest? a. The monthly payment is s Do not round...