0
0
SciPydata~5 mins

Probability density and cumulative functions in SciPy - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Probability Density Function (PDF)?
A PDF shows how likely it is to find a value near a specific point in a continuous distribution. The area under the PDF curve between two points gives the probability of the value falling in that range.
Click to reveal answer
beginner
What does the Cumulative Distribution Function (CDF) represent?
The CDF gives the probability that a random variable is less than or equal to a certain value. It is the area under the PDF curve from the smallest value up to that point.
Click to reveal answer
intermediate
How do you calculate the PDF and CDF using scipy for a normal distribution?
Use scipy.stats.norm. For PDF: norm.pdf(x, loc=mean, scale=std). For CDF: norm.cdf(x, loc=mean, scale=std). Replace x with the value, mean and std with distribution parameters.
Click to reveal answer
beginner
Why is the area under the PDF curve always equal to 1?
Because the total probability of all possible outcomes must be 1. The PDF curve represents how this total probability is spread over values.
Click to reveal answer
intermediate
What is the relationship between PDF and CDF?
The CDF is the integral (sum) of the PDF from the lowest value up to a point. The PDF is the derivative (rate of change) of the CDF.
Click to reveal answer
What does the CDF value at x represent?
AProbability that the variable is exactly x
BMean of the distribution
CProbability density at x
DProbability that the variable is less than or equal to x
Which scipy function calculates the PDF of a normal distribution?
Anorm.cdf()
Bnorm.mean()
Cnorm.pdf()
Dnorm.var()
What is the total area under a PDF curve?
A0
B1
CDepends on the distribution
DInfinity
If PDF is the derivative of CDF, what is CDF in terms of PDF?
AIntegral of PDF
BDerivative of PDF
CSquare of PDF
DLogarithm of PDF
Which of these is true for a continuous random variable?
AProbability at a single point is zero
BProbability at a single point is one
CPDF values are probabilities
DCDF decreases as x increases
Explain the difference between Probability Density Function (PDF) and Cumulative Distribution Function (CDF).
Think about how probability is spread and accumulated.
You got /4 concepts.
    Describe how to use scipy to find PDF and CDF values for a normal distribution at a given point.
    Recall the function names and parameters.
    You got /4 concepts.