Powerball+

Exploring powerball winning number pattern

Tee Tr.

Intro

  • "Powerball+" is a very simple Shiny App that is built to explore the pattern of the Powerball winning numbers in the past: https://qtee84.shinyapps.io/powerball/

  • Powerball is drawn every Wednesday and Saturday night at 10:59 p.m. Eastern Time.

  • Five white balls are drawn out of a drum with 69 balls and one red ball out of a drum with 26 red balls. The jackpot wins by matching all five white balls in any order and the red Powerball.

  • Dataset used for this app is found at: http://www.powerball.com/powerball/winnums-text.txt

Let's look at the data source

'data.frame':   1914 obs. of  8 variables:
 $ DrawDate: Factor w/ 1914 levels "01/01/2000","01/01/2003",..: 332 315 298 277 260 239 222 201 184 163 ...
 $ WB1     : int  62 22 67 54 29 7 2 13 26 16 ...
 $ WB2     : int  52 11 21 12 27 15 62 4 60 5 ...
 $ WB3     : int  13 53 65 11 7 36 40 36 67 12 ...
 $ WB4     : int  12 21 31 16 40 18 50 31 31 31 ...
 $ WB5     : int  44 10 64 15 17 19 3 52 28 43 ...
 $ PB      : int  6 18 5 25 25 20 5 8 23 18 ...
 $ PP      : int  2 3 3 5 2 2 2 3 3 4 ...

The dataset includes 1914 set of winning numbers. Each set has 8 fields:

  • Draw Date
  • Five WhiteBall numbers (WB1, WB2, WB3, WB4, WB5)
  • Powerball (PB)
  • Powerplay (PP) a special add-on feature that allows a winner to increase the original prize amounts except the jackpopt.

Winning Numbers History

"Winning Numbers History" is an interative table that allows searching/sorting each data field. User can use filter to look up a particular draw date from 11/01/1997 to 03/02/2016, or any specific combination of numbers to see if they ever won.

    DrawDate WB1 WB2 WB3 WB4 WB5 PB PP
1 03/02/2016  62  52  13  12  44  6  2
2 02/27/2016  22  11  53  21  10 18  3
3 02/24/2016  67  21  65  31  64  5  3
4 02/20/2016  54  12  11  16  15 25  5
5 02/17/2016  29  27   7  40  17 25  2
6 02/13/2016   7  15  36  18  19 20  2

Winning Numbers Frequency

"Winning Numbers Frequency" allows user to select an option among 5 white balls, powerball and powerplay and generate a histogram that will tell the occurences of winning numbers for each category of whiteballs, powerball and powerplay.

plot of chunk unnamed-chunk-3