Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

6. The data set BodyTemperature.txt is included in this assignment. In order to

ID: 2935924 • Letter: 6

Question

6. The data set BodyTemperature.txt is included in this assignment. In order to load the data into R, you may for instance you could use the command temp<-read.table("BodyTemperature.txt") if the data file is in your working directory. Using the Temperature variable (body temp in Fahrenheit). (a) Find the best estimate for the population mean body temp. (b) Check that the sample mean for temperature has an approximately normal distribution (use a histogram and any other visual tool to illustrate your response) (c) Calculate the the sample mean and sample standard deviation for temperature using R commander. (d) Calculate the 95% confidence interval for the population mean temp.

Explanation / Answer

There is no data given , however i shall provide you the R snippet to perform the analysis , just change the variable name with the temperature variable name of your dataset. Suppose , the dataframe is named "df"

(a) Find the best estimate for the population mean body temp

mean(df$temp)

. (b) Check that the sample mean for temperature has an approximately normal distribution (use a histogram and any other visual tool to illustrate your response)

hist(df$temp, col="red")

qqnorm(df$temp);qqline(df$temp,col="green")

(c) Calculate the the sample mean and sample standard deviation for temperature using R commander.

mean(df$temp)

sd(df$temp)

(d) Calculate the 95% confidence interval for the population mean temp.

The confidence interval is given as

mean(df$temp) + qnorm(1-0.05/2)*sd(df$temp)/nrow(df) ## upper limit

mean(df$temp) - qnorm(1-0.05/2)*sd(df$temp)/nrow(df) ## lower limit

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote