Math 790.02: Discrete Probability
This is the webpage for the Fall 2018 manifestation of Dr. Fitzpatrick's section of Math 790.02 at Duke University.
Grinstead and Snell's Introduction to Probability is a nice freely available reference.
SageMath is an open source computer algebra system written python.
Select five numbers from 1 to 69 for the white balls; then select one number from 1 to 26 for the red Powerball. Choose your numbers on a play slip or let the lottery terminal randomly pick your numbers. Jackpots start at $40 million and grow from there!
According to Wikipedia, the largest prize in powerball history was $1.586 billion.
The following code computes the expect earnings in purchasing a powerball ticket.