Count Data Slides
Count Data Slides
© V. Gayle
Professor Vernon Gayle [email protected]
@Profbigvern https://github.com/vernongayle
Count Data
• How many times did you go to the cinema last year?
• How many goals have your favourite football team scored this season?
https://en.wikipedia.org/wiki/Sim%C3%A9on_Denis_Poisson
Home Team Away Team
Clyde v Berwick
Cowdenbeath v Annan Athletic
Montrose v Elgin City
Peterhead v Edinburgh City
Stirling Albion v Stenhousemuir
Predictions
Clyde v Berwick
Cowdenbeath v Annan Athletic
Fan
(i)
Fan Dice
(i) (ii)
Stirling Albion 35 16 6 13 60 51 54
Stenhousemuir 35 15 8 12 55 46 53
Clyde 35 14 9 12 51 48 51
Elgin City 35 14 6 15 53 60 48
Annan Athletic 35 11 11 13 47 41 44
Berwick 35 8 10 17 29 58 34
Edinburgh City 35 7 9 19 36 60 30
Cowdenbeath 35 4 10 21 23 54 22
Goals Goals
Team Played Won Drawn Lost For Against Points
Montrose 35 23 7 5 59 34 76
Peterhead 35 23 4 8 77 38 73
Stirling Albion 35 16 6 13 60 51 54
Stenhousemuir 35 15 8 12 55 46 53
Clyde 35 14 9 12 51 48 51
Elgin City 35 14 6 15 53 60 48
Annan Athletic 35 11 11 13 47 41 44
Berwick 35 8 10 17 29 58 34
Edinburgh City 35 7 9 19 36 60 30
Cowdenbeath 35 4 10 21 23 54 22
Goals Goals
Team Played Won Drawn Lost For Against Points
Montrose 35 23 7 5 59 34 76
Peterhead 35 23 4 8 77 38 73
Stirling Albion 35 16 6 13 60 51 54
Stenhousemuir 35 15 8 12 55 46 53
Clyde 35 14 9 12 51 48 51
Elgin City 35 14 6 15 53 60 48
Annan Athletic 35 11 11 13 47 41 44
Berwick 35 8 10 17 29 58 34
Edinburgh City 35 7 9 19 36 60 30
Cowdenbeath 35 4 10 21 23 54 22
Attack Strength –
how good is the team at scoring goals
Goals Goals
Team Played Won Drawn Lost For Against Points
Montrose 35 23 7 5 59 34 76
Peterhead 35 23 4 8 77 38 73
Stirling Albion 35 16 6 13 60 51 54
Stenhousemuir 35 15 8 12 55 46 53
Clyde 35 14 9 12 51 48 51
Elgin City 35 14 6 15 53 60 48
Annan Athletic 35 11 11 13 47 41 44
Berwick 35 8 10 17 29 58 34
Edinburgh City 35 7 9 19 36 60 30
Cowdenbeath 35 4 10 21 23 54 22
The average number of
goals scored by each team
in the league is 49
(i.e. the 10 teams have scored 490 goals in total)
Goals Goals
Team Played Won Drawn Lost For Against Points
Montrose 35 23 7 5 59 34 76
Peterhead 35 23 4 8 77 38 73
Stirling Albion 35 16 6 13 60 51 54
Stenhousemuir 35 15 8 12 55 46 53
Clyde 35 14 9 12 51 48 51
Elgin City 35 14 6 15 53 60 48
Annan Athletic 35 11 11 13 47 41 44
Berwick 35 8 10 17 29 58 34
Edinburgh City 35 7 9 19 36 60 30
Cowdenbeath 35 4 10 21 23 54 22
Attack Strength –
how good is the team at scoring goals
Away Average –
The average number of goals away teams score
Goals For Games Goals For Games
Team Points Home Played Home Away Played Away
Montrose 76 30 17 29 18
Peterhead 73 35 17 42 18
Stirling Albion 54 29 17 31 18
Stenhousemuir 53 32 18 23 17
Clyde 51 22 17 29 17
Elgin City 48 31 18 22 17
Annan Athletic 44 24 18 23 17
Berwick 34 21 18 8 17
Edinburgh City 30 19 18 17 18
Cowdenbeath 22 12 17 11 18
Montrose 76 30 17 29 18
Peterhead 73 35 17 42 18
Stirling Albion 54 29 17 31 18
Stenhousemuir 53 32 18 23 17
Clyde 51 22 17 29 17
Elgin City 48 31 18 22 17
Annan Athletic 44 24 18 23 17
Berwick 34 21 18 8 17
Edinburgh City 30 19 18 17 18
Cowdenbeath 22 12 17 11 18
e = 2.71828
(this Euler’s number which is a mathematical constant)
Pr = e -l (l k / k!)
k is the number of events
(in this example 0 through to 6 goals)
k! is k factorial
Pr = e -l (l k / k!)
Plugging the information for
Stirling Albion into this formula…
Statistical
Fan Dice Method
(i) (ii) (iii)
Statistical
Fan Dice Method
(i) (ii) (iii)
Statistical
Fan Dice Method
(i) (ii) (iii)
Statistical
Fan Dice Method
(i) (ii) (iii)
Statistical
Fan Dice Method
(i) (ii) (iii)
Statistical
Fan Dice Method
(i) (ii) (iii)
• Weather
• Expert knowledge
Predictions
Statistical
Fan Dice Method Result
(i) (ii) (iii) (iv)
Home Team Away Team
Clyde v Berwick (2-1) (2-2) (1-0)
Cowdenbeath v Annan Athletic (0-0) (5-3) (0-1)
Montrose v Elgin City (2-0) (1-4) (2-1)
Peterhead v Edinburgh City (3-0) (3-1) (2-0)
Stirling Albion v Stenhousemuir (2-2) (6-5) (1-1)
Predictions
Statistical
Fan Dice Method Result
(i) (ii) (iii) (iv)
Home Team Away Team
Clyde v Berwick (2-1) (2-2) (1-0) (1-2)
Cowdenbeath v Annan Athletic (0-0) (5-3) (0-1)
Montrose v Elgin City (2-0) (1-4) (2-1)
Peterhead v Edinburgh City (3-0) (3-1) (2-0)
Stirling Albion v Stenhousemuir (2-2) (6-5) (1-1)
Predictions
Statistical
Fan Dice Method Result
(i) (ii) (iii) (iv)
Home Team Away Team
Clyde v Berwick (2-1) (2-2) (1-0) (1-2)
Cowdenbeath v Annan Athletic (0-0) (5-3) (0-1) (0-2)
Montrose v Elgin City (2-0) (1-4) (2-1)
Peterhead v Edinburgh City (3-0) (3-1) (2-0)
Stirling Albion v Stenhousemuir (2-2) (6-5) (1-1)
Predictions
Statistical
Fan Dice Method Result
(i) (ii) (iii) (iv)
Home Team Away Team
Clyde v Berwick (2-1) (2-2) (1-0) (1-2)
Cowdenbeath v Annan Athletic (0-0) (5-3) (0-1) (0-2)
Montrose v Elgin City (2-0) (1-4) (2-1) (1-1)
Peterhead v Edinburgh City (3-0) (3-1) (2-0)
Stirling Albion v Stenhousemuir (2-2) (6-5) (1-1)
Predictions
Statistical
Fan Dice Method Result
(i) (ii) (iii) (iv)
Home Team Away Team
Clyde v Berwick (2-1) (2-2) (1-0) (1-2)
Cowdenbeath v Annan Athletic (0-0) (5-3) (0-1) (0-2)
Montrose v Elgin City (2-0) (1-4) (2-1) (1-1)
Peterhead v Edinburgh City (3-0) (3-1) (2-0) (2-1)
Stirling Albion v Stenhousemuir (2-2) (6-5) (1-1)
Predictions
Statistical
Fan Dice Method Result
(i) (ii) (iii) (iv)
Home Team Away Team
Clyde v Berwick (2-1) (2-2) (1-0) (1-2)
Cowdenbeath v Annan Athletic (0-0) (5-3) (0-1) (0-2)
Montrose v Elgin City (2-0) (1-4) (2-1) (1-1)
Peterhead v Edinburgh City (3-0) (3-1) (2-0) (2-1)
Stirling Albion v Stenhousemuir (2-2) (6-5) (1-1) (1-1)
The Outcomes
Gayle, V. (2020) Count Data - A tale of Poisson and predicting football results.
Available at: https://www.ncrm.ac.uk (Accessed: day month year)
Count Data
A tale of Poisson and predicting football results