Question: Use Python methods to calculate the following probabilities for a t - distribution with variable df . P ( X 1 . 8 1 )

Use Python methods to calculate the following probabilities for a t-distribution with variable df.
P(X1.81)
P(X>1.81)
The code provided loads the packages and functions, reads variable df from input, and prints the calculated probabilities.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Import packages and functions
from scipy.stats import t
# Set value for df
df = int(input())
# Calculate probabilities
# Your code goes here
pLess =
pGreater =
# Print probabilities
print('P(X <=-1.81)=', pLess)
print('P(X >-1.81)=', pGreater)
1
2
3
CheckNext level
1
2
3

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 Programming Questions!