Chapter 2 Quiz - 2-5 Quiz_ Python Functions and Probability Distributions

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

243

Subject

Statistics

Date

Jan 9, 2024

Type

docx

Pages

5

Uploaded by EarlSteel9150

Report
Question 1 3/ 3 points 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.sf(2.85, 30, 0, 1) - st.t.sf(1.5, 30, 0, 1)) import scipy.stats as st print(t.cdf(2.85, 30, 0, 1)) o 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(st.t.cdf(2.85, 30, 0, 1) - st.t.pdf(1.5, 30, 0, 1)) Question 2 3/ 3 points 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 critical value a if Plt<a)=0.135? Note: ais a constant. Select one. import scipy.stats as st print(st.t.sf(0.135, 49, 0, 1)) import scipy.stats as st print(st.t.pdf(0.135, 49, 0, 1)) import scipy.stats as st print(st.t.cdf(0.135, 49, 0, 1)) o import scipy.stats as st print(st.t.ppf(0.135, 49, 0, 1)) Question 3 3/ 3 points For a Normal distribution with mean O and standard deviation 1, which of the following Python lines outputs the probability PLO-15 <x<188)3 geject one. import scipy.stats as st print(st.norm.pdf(1.88, 0, 1) - st.norm.pdf(-0.15, 0, 1)) import scipy.stats as st print(st.norm.cdf(1.88, 0, 1)) print(st.norm.cdf(1.88, 0, 1) - st.norm.cdf(-0.15, 0, 1)) o import scipy.stats as st print(st.norm.cdf(1.88, 0, 1) - st.norm.cdf(-0.15, 0, 1))
Question 4 0/ 3 points The shaded region under a Normal distribution with mean 0 and standard deviation 1 (Standard Normal distribution) is shown. Which of the following is the best choice that corresponds to the shaded region? Select one. mean o Probability of z 2 -1.5 Probability of z < +1.5 @ robability of z < -1.5 Probability of z > +1.5 Question 5 0/ 3 points 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)? Select one. import scipy.stats as st print(st.t.ppf(0.115, 49,0, 1)) import scipy.stats as st print(st.t.pdf(0.115, 49,0, 1)) o import scipy.stats as st print(st.t.cdf(0.115, 49,0, 1)) import scipy.stats as st print(st.t.sf(0.115, 49, 0, 1))
Question 1 3/ 3 points The shaded region under a Normal distribution with mean 0 and standard deviation 1 (Standard Normal distribution) is shown. Which of the following is the best choice that corresponds to the shaded region? Select one. mean o Probability of x > +1 Probability of x < +1 Probability of x < -1 Probability of x > -1 Question 2 0/ 3 points For a Normal distribution with mean 5 and standard deviation 2, which of the following Python lines outputs the probability **>7? Select one. print(normal(7, 5, 2)) import scipy.stats as st print(st.norm.sf(7, 5, 2)) o import scipy.stats as st print(st.norm.cdf(7, 5, 2)) import scipy.stats as st print(st.norm.pdf(7, 5, 2))
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Question 3 3/ 3 points The shaded region under a Normal distribution with mean 100 and standard deviation 5 is shown. Which of the following is the best choice that corresponds to the shaded region? Select one. mean Probability of x < 108 Probability of x > 92 o Probability of x < 92 Probability of x > 108
Question 4 3/ 3 points For a Student’s t-distribution with mean 0O, standard deviation 1, and degrees of freedom 30, which of the following Python lines outputs the probability P(t<-0.185)? Select one. import scipy.stats as st print(st.t.cdf(-0.185, 30, 0, 1)) import scipy.stats as st print(st.t(-0.185, 30, 0, 1)) import scipy.stats as st print(st.t.pdf(-0.185, 30, 0, 1)) import scipy.stats as st print(st.t.sf(-0.185, 30, 0, 1)) Question 5 0/ 3 points 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.8187 Note: a is a constant. Select one. ) import scipy.stats as st print(st.norm.ppf(0.818, 0, 1)) import scipy.stats as st print(st.norm.isf(0.818, 0, 1)) import scipy.stats as st print(st.norm.pdf(0.818, 0, 1)) import scipy.stats as st print(st.norm.cdf(0.818, 0, 1))