Advertisement

**Not a member of Pastebin yet?**

**, it unlocks many cool features!**

__Sign Up__- from scipy.stats import uniform
- # On average, 30 minutes TV shows have 22 minutes of actual program. Let's assume the probability distribution for number of minutes of actial program is uniform from a low of 18min to the high of 26min. What is the probability the show will have at least 25 minutes of programming?
- loc: low boundary; scale: high - low boundary
- 1 - uniform.cdf(x = 25, loc = 18, scale = 8)
- # What is the probability the show will have between 21 and 25 minutes of programming?
- uniform.cdf(x = 25, loc = 18, scale = 8) - uniform.cdf(x = 21, loc = 18, scale = 8)
- # Which value is associated with 0.50 Probability?
- from scipy import stats
- stats.uniform.ppf(q = 0.5, loc = 18, scale = 8)

Advertisement

RAW Paste Data
Copied

Advertisement