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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!