Question

In: Statistics and Probability

This question involves coding in RStudio Problem 3 (Verzani problem 8.18): The data set normtemp (Data...

This question involves coding in RStudio Problem 3 (Verzani problem 8.18):

The data set normtemp (Data set can be found in the UsingR package) contains measurements of 130 healthy, randomly selected individuals. The variable temperature contains normal body temperature. Does the data appear to come from a normal distribution? Is so, find a 90% confidence interval for the mean normal body temperature of the population that was sampled. Does it include 98.6 degrees Fahrenheit?

Solutions

Expert Solution

Rcode:


library(UsingR)
attach(normtemp)
print(normtemp)
hist(normtemp$temperature)
shapiro.test(normtemp$temperature)
qqnorm(normtemp$temperature)
qqline(normtemp$temperature)

From histogram and qq plot we see that data follows normal distribution

From qqplot the points fall on staright line,follows normal distribution.

From shapiro test , p-value = 0.2332,p>0.05

Fail to reject null

Accept null hypothesis. that data follows normal distribution

#to get the 90% confidence interval
t.test(normtemp$temperature,conf.level = 0.90)

output:

One Sample t-test

data: normtemp$temperature
t = 1527.9, df = 129, p-value < 2.2e-16
alternative hypothesis: true mean is not equal to 0
90 percent confidence interval:
98.14269 98.35577
sample estimates:
mean of x
98.24923

INTREPRETATION:

We are 90 percent confidence interval that the true mean normal body temperature lies in between  98.14269 and 98.35577

90% confidence interval does not include 98.6


Related Solutions

This question involves coding in RStudio Problem 3 (Verzani problem 2.22): Write a function to compute...
This question involves coding in RStudio Problem 3 (Verzani problem 2.22): Write a function to compute the average distance from the mean for some data vector.
Use RStudio. The carsafety data set in the UsingR package has records of the number of...
Use RStudio. The carsafety data set in the UsingR package has records of the number of passenger deaths in the “Other.deaths” column and the type of vehicle in the type column. Determine which type of vehicle is the deadliest for passengers by looking at difference in variance between groups.
Plot logistic regression in Rstudio: The data set in the table considers information on the spread...
Plot logistic regression in Rstudio: The data set in the table considers information on the spread of prostate cancer to the lymph nodes for 53 patients. For a sample of prostate cancer patients, a set of possible predictor variables were measured before surgery to determine if the lymph nodes were compromised. Subsequently, the patient underwent surgery and the status of his lymph nodes was determined. The data set contains 53 observations of 7 variables: id: identifiers for each subject in...
This is the complete set of data for this question Problem 1: The information is available...
This is the complete set of data for this question Problem 1: The information is available for the first year of operations for Medeiros, Inc. The following differences enter into the reconciliation of financial income and taxable income of Medeiros, Inc. for the year ended December 31, 2018, its first year of operations. The enacted income tax rate is 40% for all years a) The company has chosen to depreciate all of its fixed assets on an accelerated basis for...
Question 3: Transcription and Translation Below is the beginning of the coding strand of the protein-coding...
Question 3: Transcription and Translation Below is the beginning of the coding strand of the protein-coding region of the Cdc7 gene in yeast. Note that only the coding strand of the DNA is shown. Please be sure to correctly label the ends of any DNA, RNA or protein sequence written below. 5’ATGACAAGCAAAACGAAGAATATCGATGATATACCTCCAGAAATCAAAGAAGAGATGA TACAGCTCTATCATGATCTACCGGGTATAGAAAATGAATATAAACTCATAGACAAGATC GGTGAGGGAACATTTTCGTCAGTGTATAAAGCCAAAGATATCACTGGGAAAATAATAG3’ A. What is the sequence of the first 10 nucleotides of the template strand? B. What is the sequence of the first 10 nucleotides of the...
This question requires using Rstudio. This is following commands to install and import data into R:...
This question requires using Rstudio. This is following commands to install and import data into R: > install.packages("ISLR") > library(ISLR) > data(Wage) The required data installed and imported, now this is description of the data: This dataset contains economic and demographic data for 3000 individuals living in the mid-Atlantic region. For each of the 3000 individuals, the following 11 variables are recorded: year: Year that wage information was recorded age: Age of worker maritl: A factor with levels 1. Never...
This question requires using Rstudio. This is following commands to install and import data into R:...
This question requires using Rstudio. This is following commands to install and import data into R: > install.packages("ISLR") > library(ISLR) > data(Wage) The required data installed and imported, now this is description of the data: This dataset contains economic and demographic data for 3000 individuals living in the mid-Atlantic region. For each of the 3000 individuals, the following 11 variables are recorded: year: Year that wage information was recorded age: Age of worker maritl: A factor with levels 1. Never...
This question requires using Rstudio. This is following commands to install and import data into R:...
This question requires using Rstudio. This is following commands to install and import data into R: > install.packages("ISLR") > library(ISLR) > data(Wage) The required data installed and imported, now this is description of the data: This dataset contains economic and demographic data for 3000 individuals living in the mid-Atlantic region. For each of the 3000 individuals, the following 11 variables are recorded: year: Year that wage information was recorded age: Age of worker maritl: A factor with levels 1. Never...
Question 3 0 / 3 pts Suppose you are working with the automobile data set and...
Question 3 0 / 3 pts Suppose you are working with the automobile data set and got the following printout. Assume that you already tested the quadratic terms and dropped them out of the model. The following printout was created. Least Squares Linear Regression of Price Predictor Variables    Coefficient    Std Error    T    P VIF Constant    20339.7 1039.20 19.57    0.0000 0.0 Mileage -0.06642 0.02264    -2.93    0.0052    1.8 Model 1255.69 1454.48    0.86...
Use RStudio to answer this question. Before opening the dataset needed for this problem, you’ll need...
Use RStudio to answer this question. Before opening the dataset needed for this problem, you’ll need to call the “car” package > library(car) Now you can import the “Robey” dataset and use it to answer the question below. Name the data frame with abc: > abc <- Robey Remember to include any R code you use along with your answers! The Robey dataset contains fertility rates from a sample of countries. You want to see if total fertility rate (tfr),...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT