Probability Density and Cumulative Functions with SciPy
📖 Scenario: You work as a data analyst for a company that studies daily rainfall amounts. You want to understand the likelihood of different rainfall amounts using a common probability model called the normal distribution.
🎯 Goal: Build a small program that uses SciPy to calculate the probability density and cumulative probability for specific rainfall amounts using the normal distribution.
📋 What You'll Learn
Create a normal distribution with mean 50 and standard deviation 10
Calculate the probability density function (PDF) for rainfall amounts 40, 50, and 60
Calculate the cumulative distribution function (CDF) for rainfall amounts 40, 50, and 60
Print the PDF and CDF results clearly
💡 Why This Matters
🌍 Real World
Understanding rainfall probabilities helps in planning for agriculture, water management, and flood prevention.
💼 Career
Data analysts and scientists often use probability distributions to model and predict real-world events.
Progress0 / 4 steps