MAT 243 Applied Statistics for STEM
Which Python modules is used to create confidence intervals?
scipy
Which of the following methods from Python's scipy.stats submodule is used to calculate a confidence interval based on the Normal Distribution?
st.norm.interval
Which of the following alternative hypothesis makes a hypothesis test two-tailed?
Parameter is not equal to a value
In the following Python commands, what does the 0.99 represent?
confidence level
Consider the following import statement in Python, where statsmodels module is called in order to use the proportions_ztest method. What are the inputs to proportions_ztest method?
count of observations that meet a condition(counts), total number of observations(nobs), hpothesized value of population proportion(value)
For a normal distribution with mean 0 and standard deviation 1 which of the following python lines outputs the probability P(z < 0.325)?
import scipty. stats as st print(st.norm.cdf(0.325,0,1))
For a normal distribution with mean 0 and standard deviation 1 which of the following python lines outputs P( -0.15 , x < 1.88)?
import scipy.stats as st print(st.norm.cdf(1.88,0,1)- st.norm.cdf(-0.15, 0 ,1)
For a normal distribution with mean 5 and standard deviation 2 which of the following python lines outputs the probability P(x > 7)?
import scipy.stats as st print(st.norm.cdf(7,5,2))
For a normal distribution with mean 0 and standard deviation 1 which of the following python lines outputs the critical value a if P( z > a) = 0.818
import scipy.stats as st print(st.norm.isf(0.818,0,1))
For a student's t-distribution with mean 0 and standard deviation 1, and degrees of freedom 30 which of the following outputs the probability P(1.50 < t < 2.85)?
import scipy.stats as st print(st.t.cdf(2.85,30,0,1 - st.t.cdr(1.5,30,0,1))
For a student's t-distribution with mean 0, standard deviation 1 and degrees of freedom 30, which of the following python lines outputs the probability P(t < -0.185)?
import scipy.stats as st print(st.t.pdf(-0.185,30,0,1)
For a Student's t-distribution with mean 0, standard deviation 1, and degrees of freedom 49, which of the following Python lines outputs the probability P(t > 0.115)?
import scipy.stats as st print(st.t.ppf(0.115,49,01))
