The mean is 171.1. The median is 170.3
SD: 9.4 ; IQR: 163.8 - 177.8
No, the person is tall but usually as 180 is not far from the center of the distribution.
155cm should be consider as unusually short as it situate at the left tail of the distribution.
Not the same but should be similar. Since the samples are choosen randomly, the individual observations would not be the same. However, the sample should represent the population to some extend. Thus should be similar.
Use Standard error.
sd = 9.4 / sqrt(507)
sd
## [1] 0.4174687
The SD should be 0.4174687
False. We are 95% confident that the average spending of ALL American adults is between $80.31 and $89.11. We are 100% confident that the average spending of these 436 American adults (we already know) is between $80.31 and $89.11. #### (b) This confidence interval is not valid since the distribution of spending in the sample is right skewed. True. The confidence interval is not valid due to strong right skew.
False, we cannot use this confidence interval to make any assumptions about other sample means when we don’t even know the size of other random samples.
True, this is the right interpretation of 95% confidence interval
True, 90% confidence is less certain than 95% confidence when the interval is narrower.
False,we need to make sample size 9 times larger in order to decrease the margin of error to a third. (SE = sigma / sqrt(n))
True
upper = 89.11
lower = 80.31
margin_error =(upper-lower)/2
margin_error
## [1] 4.4
Yes 1. sample size > 30
2. sample obersvations are independent with each other
3. distribution not strongly skewed
4. Less than 10% of the population
H0: The average age of gifted children equals to the general population, average_age =32 months. HA: The average age of gifted children less than the general populaton, average_age <32 months.
z = (30.69 - 32) / 4.31
normalPlot(sd = 1,mean = 0, tails = FALSE ,bounds = c(-Inf,z) ) ## one tail
Since the p value is 0.381, which is greater than the 0.1 significance level, we cannot reject the null hypothesis. Thus the average age of gifted children is not significantly lower than the general population.
mean = 30.69
sd = 4.31
sigma = 1.65
lower = mean-sigma*sd
upper = mean+sigma*sd
c(lower,upper)
## [1] 23.5785 37.8015
The results agrees. The general population average age 32 months falls in the 90% confidence interval 23.5785, 37.8015
H0: The average IQ of gifted children’s mother equals to the general population’ mother IQ, average_IQ =100. HA: The average IQ of gifted children’s mother is different than the general population’ mother IQ, average_IQ != 100.
z = (118.2 - 100) / 6.5
z
## [1] 2.8
normalPlot(mean = 0, sd = 1, bounds = c(-z,z), tails = TRUE) ##double tail
p = 1-0.995
p
## [1] 0.005
Since the p-value is 0.005, which is smaller than the 0.1 significant level, we can draw the conclusion that the gifted mother’s average IQ is different than the general populations’ mothers’ average IQ.
mean = 118.2
sd = 6.5
sigma = 1.65
lower = mean-sigma*sd
upper = mean+sigma*sd
c(lower,upper)
## [1] 107.475 128.925
The results agree because the average IQ of general populations’ mother did not fall within the 90% confidence interval.