Modify the rolling dice code to make two independent rolling dice and plot the distribution of their sum on a histogram from 2 to 12
For the wind modeled as a Weibull distribution example, write one line of code to calculate at what wind speed 90% of the wind will be under (Hint: It’s the P90 value from Describing Distributions Summary Table). Write another line to print the value so you can see it!
Sometimes, the variation in a highly non-normal distribution is described by the IQR, or Inter Quartile Range, which is the distance from the 25th percentile to the 75th percentile (aka the difference between the 2 numbers). Write function def iqr(a): which calculates and returns IQR for a given set of data in variable list ‘a’.
This practice is very open-ended and you are welcome to take it in any direction you would like!
Your job is to come up with an example using the skills you have learned from this module!
Think about your favorite board game, mathematical formula, or maybe a video game that has an element of probability. Use the tools you have learned to perform basic probability calculations and how to describe the likelihood of an event as a percentage.
Ex. What is the likelihood of drawing an ace out of a pile of 52 cards?
Create an example using all the following skills:
Choose a topic
Generate a random sample using a random number generator and add it to a list.
Describe the characteristics of the data set
Mean
Variance
Standard deviation
Create a histogram using the data set generated