Question

In: Statistics and Probability

The following data are for pre-exercise and post-exercise body temperature measure- ments for eight young adults....

The following data are for pre-exercise and post-exercise body temperature measure- ments for eight young adults.

Individual Number 1
2
3
4
5
6
7
8

Resting (R) 99.0 97.8 98.6 98.7 98.7 98.2 98.7 98.6

Post-Exercise (P) 99.4
98.1
98.6
98.7
98.7
98.2
98.8
99.2

  1. (a) In R, Define a vector

  2. (b) In R, Define a vector

  3. (c) In R, Define a vector

R for the pre-exercise (i.e., resting) body temperature. P for the pre-exercise (i.e., resting) body temperature. D for the difference P − R.

  1. (d) Using R, determine the mean of D and the standard deviation of D.

  2. (e) What are the null hypothesis, H0, and the alternative hypothesis, Ha, if one wanted to determine whether or not there is a difference in mean body tempera- ture following exercise?

  3. (f) Show how the t-statistic would be calculated by hand using the information de- termined in parts (d)-(e).

  4. (g) Use the quantile function (as described in Part 2) to find the critical t-value(s). Verify your result(s) with an appropriate probability table.

  5. (h) Based on your results from parts (f) and (g), do you reject the null hypothesis? Explain.

  6. (i) Now, use the t.test function in R (as described in Part 2) to run a t-test to test your null hypothesis from (e). Note that this is a paired t-test since we are comparing measured data for the same individual from before and again after a treatment. *PLEASE POST ALL R INPUT & OUTPUT

Solutions

Expert Solution

> pre_exercise=c(99.0, 97.8, 98.6, 98.7, 98.7, 98.2, 98.7, 98.6)

> Post_Exercise=c(99.4,98.1,98.6,98.7,98.7,98.2,98.8,99.2)

> D=Post_Exercise-pre_exercise
> mean_D=mean(D)
> mean_D
[1] 0.175
> Std_D=sd(D)
> Std_D
[1] 0.231455
#(e) What are the null hypothesis, H0, and the alternative hypothesis, Ha, if one wanted to determine whether or not there is a difference in mean body tempera- ture following exercise?

Ho:µD = 0

H1 : µD ≠ 0

(f) Show how the t-statistic would be calculated by hand using the information

(i)

> test=t.test(Post_Exercise,pre_exercise,paired = TRUE)
> test

   Paired t-test

data: Post_Exercise and pre_exercise
t = 2.1385, df = 7, p-value = 0.06979
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.01850124 0.36850124
sample estimates:
mean of the differences
0.175

Accept the null hypothesis there is no difference between pre-exercise and post-exercise


Related Solutions

Here is a random sample of the body temperature of 25 young adults. 96 96.6 96.7...
Here is a random sample of the body temperature of 25 young adults. 96 96.6 96.7 96.9 97 97.1 97.1 97.2 97.3 97.4 97.4 97.7 97.7 97.7 97.8 97.9 98 98 98.2 98.2 98.3 98.3 98.7 98.8 98.9 Complete the relative frequency distribution table. Temperature Group Frequency Relative Frequency Cumulative 96 ≤ x < 96.41 1 1/25 96.41 ≤ x < 96.82 2 2/25 96.82 ≤ x < 97.23 5 5/25 97.23 ≤ x < 97.64 3 3/25 97.64 ≤...
post and pre exercise and how it affects the lungs
post and pre exercise and how it affects the lungs
The following data shows the age at diagnosis of type ii diabetes in young adults. Is...
The following data shows the age at diagnosis of type ii diabetes in young adults. Is the age at diagnosis different for males and females ? Mann-Whitney. MALES 19 22 16 29 24 FEMALES 20 11 17 12
explain how the following factors influence the rate and depth of respiration: increased body temperature, exercise,...
explain how the following factors influence the rate and depth of respiration: increased body temperature, exercise, talking and coughing
The body temperature of adults is normally distributed with a mean of 98.6°F and standard deviation...
The body temperature of adults is normally distributed with a mean of 98.6°F and standard deviation of 0.60°F. Suppose 36 adults are randomly selected, what is the probability that their mean body temperature is less than 98.0°F?
In the following data set, the columns indicate young adults’ smoking habit, while the rows indicate...
In the following data set, the columns indicate young adults’ smoking habit, while the rows indicate their exercise status. Please conduct a hypothesis to determine whether smoking habit and exercise status are associated. Choose α = 0.05. (Please make sure to check assumptions, if assumptions are not met, you may stop). this q is for a biostatistical subject. Smoking Habit Exercise Status Frequent Some None Total Never 98 86 35 219 Occasion 29 47 23 99 Regular 17 9 17...
The average body temperature for healthy adults is 98.6 °F. Is this statement true? Do all...
The average body temperature for healthy adults is 98.6 °F. Is this statement true? Do all healthy people have exactly the same body temperature? A study was conducted a few years go to examine this belief. The body temperatures of n = 130 healthy adults were measured (half male and half female). The average temperature from the sample was found to be x̄ = 98.249 with standard deviation s = 0.7332. Do these statistics contradict the belief that the average...
Given the following pre-condition and program segment, what is the post-condition for y? // Pre-condition: -2...
Given the following pre-condition and program segment, what is the post-condition for y? // Pre-condition: -2 <= x < 4 y = 2*x*x - x +3
1. Many health care workers believe the mean body temperature of healthy adults is 98.6 degrees...
1. Many health care workers believe the mean body temperature of healthy adults is 98.6 degrees Fahrenheit. Philip A. Mackowiak, a doctor at the University of Maryland Center for Vaccine Development, suspects this number might be incorrect. (Source: Journal of the American Medical Association (268) pp. 1578-1580.) a) Determine the null and alternative hypotheses. b) Sample data indicated that the null hypothesis should be rejected. State the conclusion of the researcher. c) Suppose the mean body temperature of healthy adults...
The excel data are for the mean body and brain temperature of six ostriches was recorded...
The excel data are for the mean body and brain temperature of six ostriches was recorded at typical hot conditions. The results, in degrees Celsius. Ostriches live in hot environments, and they are normally exposed to the sun for long periods. Mammals in similar environments have special mechanism for reducing the temperature. Test for a mean difference in temperature between body and brain for these ostriches. Paste the statistics output from excel Find the test statistic, p-value Interpret the results...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT