For a Student's t-distribution with mean O, standard deviation 1, and degrees of freedom 30, which of the following Python lines outputs the probability P(1.50

Calculus For The Life Sciences
2nd Edition
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Chapter12: Probability
Section12.4: Discrete Random Variables; Applications To Decision Making
Problem 2E
icon
Related questions
Question
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(1.50<t<2.85)
? Select one.
import scipy.stats as st
print(st.t.cdf(2.85,
30, 0, 1) - st.t.cdf(1.5, 30, 0, 1))
import scipy.stats as st
print(t.cdf(2.85, 30, 0, 1))
import scipy.stats as st
print(st.t.sf(2.85, 30, 0, 1)- st.t.sf(1.5, 30, 0, 1))
import scipy.stats as st
print(st.t.cdf(2.85,
30, 0, 1) - st.t.pdf(1.5. 30, 0.1))
Transcribed Image Text: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(1.50<t<2.85) ? Select one. import scipy.stats as st print(st.t.cdf(2.85, 30, 0, 1) - st.t.cdf(1.5, 30, 0, 1)) import scipy.stats as st print(t.cdf(2.85, 30, 0, 1)) import scipy.stats as st print(st.t.sf(2.85, 30, 0, 1)- st.t.sf(1.5, 30, 0, 1)) import scipy.stats as st print(st.t.cdf(2.85, 30, 0, 1) - st.t.pdf(1.5. 30, 0.1))
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,