(a) Test for existence of a difference in the doses used- (b) Discuss the suitability of the test used above- (c) Using 10 examples elaborate how you would apply this test in public health-

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
Show each step and answer all questions
QUESTION ONE:
A drug was administered to four different groups of patients in different doses. The length of hospital
stay for each dose was documented and is illustrated in the table below. Use the data in the table to
answer the questions that follow.
Group
Group A
Group B
Group C
Group D
Length of stay
3
4
4
5
4
5
6
4
5
Number of Patients
(a) Test for existence of a difference in the doses used-
(b) Discuss the suitability of the test used above-
(c) Using 10 examples elaborate how you would apply this test in public health-
6
14
18
2
10
9
1
8
12
Transcribed Image Text:QUESTION ONE: A drug was administered to four different groups of patients in different doses. The length of hospital stay for each dose was documented and is illustrated in the table below. Use the data in the table to answer the questions that follow. Group Group A Group B Group C Group D Length of stay 3 4 4 5 4 5 6 4 5 Number of Patients (a) Test for existence of a difference in the doses used- (b) Discuss the suitability of the test used above- (c) Using 10 examples elaborate how you would apply this test in public health- 6 14 18 2 10 9 1 8 12
Expert Solution
Step 1: Step by step explanation for (a)

To test for the existence of a difference in the doses used, we can use a statistical test called Analysis of Variance (ANOVA). ANOVA is suitable for comparing the means of more than two groups, in this case, the four different groups (A, B, C, and D). Here's how you can perform the ANOVA test step by step:

Step 1: Formulate the null hypothesis (H0) and the alternative hypothesis (Ha):

  • Null Hypothesis (H0): There is no significant difference in the length of hospital stay among the four groups (A, B, C, D).
  • Alternative Hypothesis (Ha): There is a significant difference in the length of hospital stay among the four groups (A, B, C, D).

Step 2: Calculate the mean length of hospital stay for each group:

  • Group A: Mean = [(3 * 6) + (4 * 14)] / (6 + 14) = (18 + 56) / 20 = 74 / 20 = 3.7
  • Group B: Mean = [(4 * 18) + (5 * 2)] / (18 + 2) = (72 + 10) / 20 = 82 / 20 = 4.1
  • Group C: Mean = [(4 * 10) + (5 * 9) + (6 * 1)] / (10 + 9 + 1) = (40 + 45 + 6) / 20 = 91 / 20 = 4.55
  • Group D: Mean = [(4 * 8) + (5 * 12)] / (8 + 12) = (32 + 60) / 20 = 92 / 20 = 4.6

Step 3: Calculate the overall mean length of hospital stay (grand mean):

Grand Mean = [(3.7 * 20) + (4.1 * 20) + (4.55 * 20) + (4.6 * 20)] / (20 + 20 + 20 + 20) = (74 + 82 + 91 + 92) / 80 = 339 / 80 = 4.2375

Step 4: Calculate the sum of squares between groups (SSB):

SSB = Σ(group size) * (group mean - grand mean)^2

For Group A: SSB_A = 20 * (3.7 - 4.2375)^2 = 20 * (-0.5375)^2 = 20 * 0.2886 = 5.772

Similarly, calculate SSB for Groups B, C, and D.

SSB_B = 20 * (4.1 - 4.2375)^2 = 20 * (-0.1375)^2 = 20 * 0.0189 = 0.378 SSB_C = 20 * (4.55 - 4.2375)^2 = 20 * 0.0972^2 = 20 * 0.0094 = 0.188 SSB_D = 20 * (4.6 - 4.2375)^2 = 20 * 0.3625^2 = 20 * 0.1313 = 2.626

Step 5: Calculate the sum of squares within groups (SSW):

SSW = Σ(group size - 1) * group variance

For Group A: SSW_A = (6 - 1) * [(3 - 3.7)^2 + (4 - 3.7)^2] = 5 * [(-0.7)^2 + (-0.7)^2] = 5 * [0.49 + 0.49] = 5 * 0.98 = 4.9

Similarly, calculate SSW for Groups B, C, and D.

SSW_B = (18 - 1) * [(4 - 4.1)^2 + (5 - 4.1)^2] = 17 * [0.01 + 0.81] = 17 * 0.82 = 13.94 SSW_C = (10 - 1) * [(4 - 4.55)^2 + (5 - 4.55)^2 + (6 - 4.55)^2] = 9 * [0.3025 + 0.2025 + 1.2025] = 9 * 1.7075 = 15.3675 SSW_D = (12 - 1) * [(4 - 4.6)^2 + (5 - 4.6)^2] = 11 * [0.36 + 0.16] = 11 * 0.52 = 5.72

Step 6: Calculate the degrees of freedom (DF):

  • DF between groups (DFB) = Number of groups - 1 = 4 - 1 = 3
  • DF within groups (DFW) = Total number of observations - Number of groups = 80 - 4 = 76



steps

Step by step

Solved in 5 steps

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman