Question

The CFO of the hospital ABC wants to predict the toud endiges UJUM of stay for the patients. The sample data for 5 randomly s
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Que.5

In order to solve this question I used R software.

R codes and output:

> y=c(18,22,20,24,26)
> x=c(4,6,5,7,8)
> fit=lm(y~x)
> summary(fit)

Call:
lm(formula = y ~ x)

Residuals:
1 2 3 4 5
-1.050e-15 3.345e-16 1.228e-15 -1.524e-16 -3.599e-16

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 1.000e+01 1.909e-15 5.24e+15 <2e-16 ***
x 2.000e+00 3.096e-16 6.46e+15 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 9.79e-16 on 3 degrees of freedom
Multiple R-squared: 1, Adjusted R-squared: 1
F-statistic: 4.173e+31 on 1 and 3 DF, p-value: < 2.2e-16

Warning message:
In summary.lm(fit) : essentially perfect fit: summary may be unreliable
> anova(fit)
Analysis of Variance Table

Response: y
Df Sum Sq Mean Sq F value Pr(>F)
x 1 40 40 4.1731e+31 < 2.2e-16 ***
Residuals 3 0 0   
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Warning message:
In anova.lm(fit) :
ANOVA F-tests on an essentially perfect fit are unreliable
>

a.

Least square regression equation is,

Y = 1 + 2X

b.

Meaning of slope:

If X is increase (or decrease ) by 1 day then Y also increase (or decrease) by 2 units.

c.

When X = 5 Days, charge Y is

Y = 1 + 2X

= 1 + 2 * 5

= 11

d. From ANOVA output,

SST = 40

e.

SSE = 0

f.

SSR = 40

g.

100% of total (squared) errors was explained by the length of stay .

Add a comment
Know the answer?
Add Answer to:
The CFO of the hospital ABC wants to predict the toud endiges UJUM of stay for...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A 10-year study conducted by the American Heart Association provided data on how age, blood pressure,...

    A 10-year study conducted by the American Heart Association provided data on how age, blood pressure, and smoking relate to the risk of strokes. Assume the following data are from a portion of this study. Risk is interpreted as the probability (times 100) that the patient will have a stroke over the next 10-year period. For the smoking variable, define a dummy variable with 1 indicating a smoker and 0 indicating a nonsmoker. (See the Stroke file in the document...

  • A recent 10-year study conducted by a research team at the Medical School was conducted to...

    A recent 10-year study conducted by a research team at the Medical School was conducted to assess how age, blood pressure, and smoking relate to the risk of strokes. Assume that the following data are from a portion of this study. Risk is interpreted as the probability (times 100) that the patient will have a stroke over the next 10-year period. For the smoking variable, define a dummy variable with 1 indicating a smoker and 0 indicating a nonsmoker Risk...

  • 2. A recent study conducted by a research team at the University Medical School was conducted...

    2. A recent study conducted by a research team at the University Medical School was conducted to assess how age, systolic blood pressure, and smoking relate to the risk of strokes. The data is is found in the worksheet Stroke data. a. Which variables are the explanatory (independent) variables? b. Which variable is the response (dependent) variable? Run the correlation analysis to produce the correlation matrix. c. Write an interpretation of the correlation matrix. d. At this point are there...

  • Risk Age Blood Pressure Smoker 10 59 220 1 33 67 129 0 14 68 170...

    Risk Age Blood Pressure Smoker 10 59 220 1 33 67 129 0 14 68 170 0 59 63 198 0 30 65 173 0 52 74 172 1 9 77 159 0 28 73 173 0 32 68 117 1 20 80 209 1 40 62 176 1 41 82 110 0 25 67 151 1 56 55 191 0 36 61 208 1 32 61 112 1 26 78 125 0 28 75 129 0 18 90 184...

  • A recent 10-year study conducted by a research team at the Medical School was conducted to...

    A recent 10-year study conducted by a research team at the Medical School was conducted to assess how age, blood pressure, and smoking relate to the risk of strokes. Assume that the following data are from a portion of this study. Risk is interpreted as the probability (times 100) that the patient will have a stroke over the next 10-year period. For the smoking variable, define a dummy variable with 1 indicating a smoker and 0 indicating a nonsmoker. Blood...

  • A 10-year study conducted by the American Heart Association provided data on how age, blood press...

    A 10-year study conducted by the American Heart Association provided data on how age, blood pressure, and smoking relate to the risk of strokes. Data from a portion of this study follow. Risk is interpreted as the probability (times 100) that a person will have a stroke over the next 10-year period. For the smoker variable, 1 indicates a smoker and 0 indicates a nonsmoker Click on the datafile logo to reference the data. DATA file Risk Blood Pressure Smoker...

  • A 10-year study conducted by the American Heart Association provided data on how age, blood pressure,...

    A 10-year study conducted by the American Heart Association provided data on how age, blood pressure, and smoking relate to the risk of strokes. Data from a portion of this study follow. Risk is interpreted as the probability (times 100) that a person will have a stroke over the next 10-year period. For the smoker variable, 1 indicates a smoker and 0 indicates a nonsmoker. Risk Age Blood Pressure Smoker 14 58 201 0 23 82 98 1 25 74...

  • A recent 10-year study conducted by a research team at the Medical School was conducted to...

    A recent 10-year study conducted by a research team at the Medical School was conducted to assess how age, blood pressure, and smoking relate to the risk of strokes. Assume that the following data are from a portion of this study. Risk is interpreted as the probability (times 100) that the patient will have a stroke over the next 10-year period. For the smoking variable, define a dummy variable with 1 indicating a smoker and 0 indicating a nonsmoker Blood...

  • A recent 10-year study conducted by a research team at the Medical School was conducted to...

    A recent 10-year study conducted by a research team at the Medical School was conducted to assess how age, blood pressure, and smoking relate to the risk of strokes. Assume that the following data are from a portion of this study. Risk is interpreted as the probability (times 100) that the patient will have a stroke over the next 10-year period. For the smoking variable, define a dummy variable with l indicating a smoker and 0 indicating a nonsmoker Blood...

  • :///Users/haphan/Downloads/Example%20a.pdf Model A A 10-year study conducted by AHA provided data...

    :///Users/haphan/Downloads/Example%20a.pdf Model A A 10-year study conducted by AHA provided data on how age and blood pressure relate to the risk of strokes. SUMMARY OUTPUT Regression Statistics Multiple R R Square Adjusted R Square Standard Error Observations 0.77 0.59 10.08 20 ANOVA MSF Regression Residual Total 17 1728.639722 19 Coefficientsa Error tStat P-value Intercept -77.98 1.07 0.21 21.58-3.61 0.0021 4.44 0.0004 2.68 0.0158 0.24 0.08 Blood Pressure Find the adjusted coefficient of determination How many independent variables are significant at...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT