Researchers studying anthropometry collected body girth measurements and skeletal diameter measurements, as well as age, weight, height and gender, for 507 physically active individuals. The histogram below shows the sample distribution of heights in centimeters.
mean(bdims$hgt)
## [1] 171.1438
median(bdims$hgt)
## [1] 170.3
sd(bdims$hgt)
## [1] 9.407205
summary(bdims$hgt)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 147.2 163.8 170.3 171.1 177.8 198.1
IQR = 163.8 - 177.8 cms
A person who is 180 cm tall is only 1SD away from the mean of 171.1 as the sd is 9.4 so he/she is not unusually tall. But a 155 cm tall person is 2SDs away from mean so he/she is unusually short.
The new sample is totally different so the values will vary but may be close to the values in this sample.
n <- 507
sd(bdims$hgt)/sqrt(n)
## [1] 0.4177887
The 2009 holiday retail season, which kicked off on November 27, 2009 (the day after Thanksgiving), had been marked by somewhat lower self-reported consumer spending than was seen during the comparable period in 2008. To get an estimate of consumer spending, 436 randomly sampled American adults were surveyed. Daily consumer spending for the six-day period after Thanksgiving, spanning the Black Friday weekend and Cyber Monday, averaged $84.71. A 95% confidence interval based on this sample is ($80.31, $89.11). Determine whether the following statements are true or false, and explain your reasoning.
FALSE
The sample is large enough so FALSE.
The confidence interval is not about the sample mean so FALSE.
TRUE
TRUE
FALSE as the same needs to 3^2 times larger to decrease the error to a third
TRUE
Researchers investigating characteristics of gifted children col- lected data from schools in a large city on a random sample of thirty-six children who were identified as gifted children soon after they reached the age of four. The following histogram shows the dis- tribution of the ages (in months) at which these children first counted to 10 successfully. Also provided are some sample statistics.
Yes as the sample is selected at random and the size of the sample is large enough
The confidence level is 0.90 as the significance level is 0.10.
n <-36
m <-30.69
sd <-4.31
x<- m - 1.645 * sd / sqrt(n)
y<- m + 1.645 * sd / sqrt(n)
c(x, y)
## [1] 29.50834 31.87166
This shows that the general average of gifted children counting to 10 is between the months of 29.50834 and 31.87166.
z <- (m - 32) / (sd / sqrt(n))
z
## [1] -1.823666
pnorm(z)
## [1] 0.0341013
as p value is less than 0.10 this hypothesis is rejected.
n <-36
m <-30.69
sd <-4.31
x<- m - 1.645 * sd / sqrt(n)
y<- m + 1.645 * sd / sqrt(n)
c(x, y)
## [1] 29.50834 31.87166
Yes. 1-confidence level = 1-0.90=0.10 = significance level
Exercise above describes a study on gifted children. In this study, along with variables on the children, the researchers also collected data on the mother’s and father’s IQ of the 36 randomly sampled gifted children. The histogram below shows the distribution of mother’s IQ. Also provided are some sample statistics.
n1 <- 36
sd1 <- 6.5
ho <- 118.2
ha <- 100
pnorm(ha,ho,sd1)
## [1] 0.00255513
SE = 1.645*sd1/(n1)**0.5
SE
## [1] 1.782083
CI = ho + c(-SE,SE)
CI
## [1] 116.4179 119.9821
Yes. The probability of the mothers having IQ less than or equal to 100 is less than the significance level also 100 falls outside the confidence interval.
Define the term “sampling distribution” of the mean, and describe how the shape, center, and spread of the sampling distribution of the mean change as sample size increases.
Sampling distribution is the random selection of samples from a population to calculate the mean and then creating a distribution from the results of the mean values. As the sample size increases, the spread gets smaller and the shape will get taller and more sharp. The center will stay relatively the same as that is the population mean.
A manufacturer of compact fluorescent light bulbs advertises that the distribution of the lifespans of these light bulbs is nearly normal with a mean of 9,000 hours and a standard deviation of 1,000 hours.
pnorm(10500, 9000, 1000, lower.tail = FALSE)
## [1] 0.0668072
sd3 <- 1000
m3 <- 9000
s <- sd3/sqrt(15)
s
## [1] 258.1989
pnorm(10500, 9000, 1000/sqrt(15), lower.tail = FALSE)
## [1] 3.133452e-09
sq <- seq(5000,12000,100)
d_pop<- dnorm(sq, 9000,1000)
d_samp<- dnorm(sq, 9000, 258)
plot(sq, d_pop, type="l", main="Population")
plot(sq, d_samp, type="l", main="Sample")
It will be difficult as the sample size is small. If the size is increased it may be possible.
Suppose you conduct a hypothesis test based on a sample where the sample size is n = 50, and arrive at a p-value of 0.08. You then refer back to your notes and discover that you made a careless mistake, the sample size should have been n = 500. Will your p-value increase, decrease, or stay the same? Explain.
p value decreases as sample size increases.