Question
If n = 100 and mean = 219 and sample standard deviation = 35, which of the following Python lines outputs the 95% confidence interval?
If n = 100 and mean = 219 and sample standard deviation =
35, which of the following Python lines outputs the 95%
confidence interval?
Question 3 options:
a)
import scipy.stats as st
n = 100
df = n - 1
mean = 219
stderror = 35.0/(n**0.5)
print(st.t.interval(0.90, df, mean, stderror))
b)
import scipy.stats as st
n = 100
df = n - 1
mean = 219
stderror = 35.0/(n**0.5)
print(st.t.interval(0.95, df, mean, stderror))
c)
import scipy.stats as st
n = 100
df = n - 1
mean = 219
stderror = 0.5/(n**35)
print(st.t.interval(0.95, df, mean, stderror))
d)
import scipy.stats as st
n = 219
df = n - 1
mean = 100
stderror = 35.0/(n**0.5)
print(st.t.interval(0.95, df, mean, stderror))
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started