Calculate the Pearson Correlation Coefficient for these two variables and b) test whether the correl

oleifere45

oleifere45

Answered question

2022-06-22

Calculate the Pearson Correlation Coefficient for these two variables and b) test whether the correlation is significantly different from 0. Run the test at a 5% level of significance. Give each of the following for part b to receive full credit:
1) the appropriate null and alternative hypotheses;
2) the appropriate test;
3) the decision rule;
4) the calculation of the test statistic; and
5) your conclusion including a comparison to alpha or the critical value. You MUST show your work to receive full credit. Partial credit is available.
ID Length of Stay (x) Total Charge (y)
1)5 6
2)7 5
3)9 7.2
4)10 8
5)12 9.4
6)15 7.9

Answer & Explanation

Rebekah Zimmerman

Rebekah Zimmerman

Beginner2022-06-23Added 32 answers

Length of stay(x ) Total charge(y) x x y y x y 5 6 25 36 30 7 5 49 25 35 9 7.2 81 51.84 64.8 10 8 100 64 80 12 9.4 144 88.36 112.8 15 7.9 225 62.41 118.5 Sum - 58 Sum - 43.5 Sum - 624 Sum - 327.61 Sum - 441.1
r = n i 6 = 1 x i y i = i 6 x i i 6 y i n i 6 = 1 x i 2 ( i 6 = 1 y 1 2 ( i 6 = 1 y i ) 2 )
r = 6 × 441.1 58 × 43.5 6 × 624 ( 58 ) 2 ) ( 6 × 327.61 ( 43.5 ) 2 ) = 0.74
Pearson correlation coefficient (r) = 0.74
Sample size (n) =6
Formulation of Hypothesis
Null Hypothesis H0 :- ρ = 0
Alternate Hypothesis H1 :- ρ ≠ 0
To test the significance, test statistic is given by
To test the significance, test statistic is geven by
t = r n 2 1 r 2 = 0.74 × 6 2 1 0.74 2 = 1.78
Finding T-critical
Degree Of Freedom (D.O.F) = 6 – 2 = 4
t-critical = 2.7764 (From Excel =T.INV.2T(0.05,4)
Finding the value of p
p-value = 0.149 (From Excel =T.INV.2T(0.05,4))
Decision rule
If p > 0.05 we accept the null hypothesis
If p < 0.05 we reject the null hypothesis
Conclusion
p-value(=0.149) > 0.05, So we failed to reject null hypothesis and conclude that correlation is not different from 0

Do you have a similar question?

Recalculate according to your conditions!

New Questions in College Statistics

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?