MATH 314 Quiz 09
2025-02-18. Python or math for full points. Partial
points for anything else.
Please submit a Jupyter notebook to the following repository by today at 3.40pm with your solution(s) to problem 1. below. https://classroom.github.com/a/9CpN7kT-
- For the family of Binomial distributions, with unspecified ,
write a Python function that estimates the median for the distribution.
- The median is defined as the any number that puts (approximately) half the probability to the left of and (approximately) half the probability to the right of .
- In math, we might write but techincally the definition is a bit more complex.
- Get started with the following Numpy code
import scipy.stats as sp K = 10 p = 0.5 B = sp.binom(K, p) x = 3 B.pmf(x)
- Binomial distribution
- If you finish the above, work on Homework 04.
- If you want a challenge, complete 1. above with no for loops.