Which one of the following computes t score for 80% confidence interval for sample size 25 in R? qt(0.8,25) qt(0.8,24) qt(0.9,25) qt(0.9,24)
Which one of the following computes t score for 80% confidence interval for
qt(0.8,25) |
||
qt(0.8,24) |
||
qt(0.9,25) |
||
qt(0.9,24) |
The correct R code to compute the t-score for an 80% confidence interval for a sample size of 25 is:
qt( 0.9, 24)
Here's the explanation:
qt is the function in R used to compute quantiles of the Student's t-distribution.
The first argument, 0.9, represents the probability (1 - alpha) for the desired confidence level. In this case, it's 0.9 because you want an 80% confidence interval, which corresponds to a 90% confidence level.
The second argument, 24, is the degree of freedom, which is equal to the sample size minus 1. So, for a sample size of 25, the degree of freedom is 24.
Therefore, qt( 0.9, 24) computes the t-score for an 80% confidence interval with a sample size of 25.
Step by step
Solved in 3 steps