head(data)
## date_GMT referee total_goal_count
## 1 Aug 10 2018 - 7:00pm Andre Marriner 3
## 2 Aug 11 2018 - 11:30am Martin Atkinson 3
## 3 Aug 11 2018 - 2:00pm Kevin Friend 2
## 4 Aug 11 2018 - 2:00pm Mike Dean 2
## 5 Aug 11 2018 - 2:00pm Chris Kavanagh 3
## 6 Aug 11 2018 - 2:00pm Jonathan Moss 2
## total_goals_at_half_time stadium_name
## 1 1 Old Trafford (Manchester)
## 2 3 St. James' Park (Newcastle upon Tyne)
## 3 1 Vitality Stadium (Bournemouth- Dorset)
## 4 1 Craven Cottage (London)
## 5 2 John Smith's Stadium (Huddersfield- West Yorkshire)
## 6 1 Vicarage Road (Watford)
Using the Footbal data I will apply the methods of the χ2 distribution. Let’s find a nice contingency table to look at.
table(data$stadium_name)
##
## Anfield (Liverpool)
## 19
## Cardiff City Stadium (Cardiff (Caerdydd))
## 19
## Craven Cottage (London)
## 19
## Emirates Stadium (London)
## 19
## Etihad Stadium (Manchester)
## 19
## Goodison Park (Liverpool)
## 19
## John Smith's Stadium (Huddersfield- West Yorkshire)
## 19
## King Power Stadium (Leicester- Leicestershire)
## 19
## London Stadium (London)
## 19
## Molineux Stadium (Wolverhampton- West Midlands)
## 19
## Old Trafford (Manchester)
## 19
## Selhurst Park (London)
## 19
## St. James' Park (Newcastle upon Tyne)
## 19
## St. Mary's Stadium (Southampton- Hampshire)
## 19
## Stamford Bridge (London)
## 19
## The American Express Community Stadium (Falmer- East Sussex)
## 19
## Tottenham Hotspur Stadium (London)
## 5
## Turf Moor (Burnley)
## 19
## Vicarage Road (Watford)
## 19
## Vitality Stadium (Bournemouth- Dorset)
## 19
## Wembley Stadium (London)
## 14
Difference number of Football match is being played within the stadium. The number of match should be equal. Here is my null and alternative hypothesis:
$$
H0:The number of goals within the match
HA:The number of goals are not all equal.
$$
I could have also expressed this in terms of observed and expected. Something along the lines that the number of expected is equal to the number of observed.
chisq.test(data$total_goal_count)
## Warning in chisq.test(data$total_goal_count): Chi-squared approximation may be
## incorrect
##
## Chi-squared test for given probabilities
##
## data: data$total_goal_count
## X-squared = 344.49, df = 379, p-value = 0.8978
Here alpha is greater than 0.5, hence it reject my null hypothesis here.
The expected values for the number of goals as follows
chisq.test(data$total_goal_count)$expected
## Warning in chisq.test(data$total_goal_count): Chi-squared approximation may be
## incorrect
## [1] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [9] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [17] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [25] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [33] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [41] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [49] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [57] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [65] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [73] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [81] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [89] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [97] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [105] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [113] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [121] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [129] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [137] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [145] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [153] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [161] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [169] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [177] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [185] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [193] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [201] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [209] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [217] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [225] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [233] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [241] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [249] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [257] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [265] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [273] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [281] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [289] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [297] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [305] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [313] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [321] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [329] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [337] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [345] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [353] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [361] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [369] 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053 2.821053
## [377] 2.821053 2.821053 2.821053 2.821053
barplot(table(data$stadium_name))
Using two categorical variables preform a test for independence.
table(data$referee, data$stadium_name)
##
## Anfield (Liverpool) Cardiff City Stadium (Cardiff (Caerdydd))
## Andre Marriner 1 1
## Andy Madley 0 0
## Anthony Taylor 2 1
## Chris Kavanagh 2 0
## Craig Pawson 0 2
## David Coote 0 0
## Graham Scott 2 1
## Jonathan Moss 1 2
## Kevin Friend 1 3
## Lee Mason 0 1
## Lee Probert 0 1
## Martin Atkinson 5 3
## Michael Oliver 2 3
## Mike Dean 0 0
## Paul Tierney 2 0
## Roger East 0 0
## Simon Hooper 0 1
## Stuart Attwell 1 0
##
## Craven Cottage (London) Emirates Stadium (London)
## Andre Marriner 2 1
## Andy Madley 0 0
## Anthony Taylor 0 4
## Chris Kavanagh 1 2
## Craig Pawson 2 0
## David Coote 2 0
## Graham Scott 1 3
## Jonathan Moss 0 3
## Kevin Friend 3 1
## Lee Mason 0 0
## Lee Probert 2 0
## Martin Atkinson 1 0
## Michael Oliver 1 1
## Mike Dean 2 2
## Paul Tierney 2 1
## Roger East 0 0
## Simon Hooper 0 0
## Stuart Attwell 0 1
##
## Etihad Stadium (Manchester) Goodison Park (Liverpool)
## Andre Marriner 2 0
## Andy Madley 0 0
## Anthony Taylor 2 3
## Chris Kavanagh 0 1
## Craig Pawson 2 1
## David Coote 0 1
## Graham Scott 0 0
## Jonathan Moss 2 0
## Kevin Friend 1 2
## Lee Mason 2 3
## Lee Probert 0 0
## Martin Atkinson 1 3
## Michael Oliver 1 0
## Mike Dean 2 0
## Paul Tierney 1 3
## Roger East 0 1
## Simon Hooper 0 0
## Stuart Attwell 3 1
##
## John Smith's Stadium (Huddersfield- West Yorkshire)
## Andre Marriner 1
## Andy Madley 0
## Anthony Taylor 3
## Chris Kavanagh 2
## Craig Pawson 1
## David Coote 2
## Graham Scott 0
## Jonathan Moss 1
## Kevin Friend 0
## Lee Mason 2
## Lee Probert 0
## Martin Atkinson 0
## Michael Oliver 3
## Mike Dean 1
## Paul Tierney 0
## Roger East 1
## Simon Hooper 0
## Stuart Attwell 2
##
## King Power Stadium (Leicester- Leicestershire)
## Andre Marriner 1
## Andy Madley 0
## Anthony Taylor 2
## Chris Kavanagh 1
## Craig Pawson 1
## David Coote 2
## Graham Scott 1
## Jonathan Moss 0
## Kevin Friend 0
## Lee Mason 1
## Lee Probert 1
## Martin Atkinson 0
## Michael Oliver 3
## Mike Dean 4
## Paul Tierney 1
## Roger East 0
## Simon Hooper 1
## Stuart Attwell 0
##
## London Stadium (London)
## Andre Marriner 1
## Andy Madley 0
## Anthony Taylor 1
## Chris Kavanagh 3
## Craig Pawson 0
## David Coote 0
## Graham Scott 1
## Jonathan Moss 2
## Kevin Friend 1
## Lee Mason 2
## Lee Probert 1
## Martin Atkinson 1
## Michael Oliver 1
## Mike Dean 1
## Paul Tierney 1
## Roger East 1
## Simon Hooper 0
## Stuart Attwell 2
##
## Molineux Stadium (Wolverhampton- West Midlands)
## Andre Marriner 2
## Andy Madley 0
## Anthony Taylor 0
## Chris Kavanagh 1
## Craig Pawson 3
## David Coote 1
## Graham Scott 1
## Jonathan Moss 2
## Kevin Friend 1
## Lee Mason 1
## Lee Probert 0
## Martin Atkinson 1
## Michael Oliver 0
## Mike Dean 2
## Paul Tierney 0
## Roger East 1
## Simon Hooper 1
## Stuart Attwell 2
##
## Old Trafford (Manchester) Selhurst Park (London)
## Andre Marriner 3 1
## Andy Madley 0 0
## Anthony Taylor 1 0
## Chris Kavanagh 0 0
## Craig Pawson 1 3
## David Coote 0 0
## Graham Scott 1 0
## Jonathan Moss 4 1
## Kevin Friend 1 0
## Lee Mason 2 1
## Lee Probert 1 3
## Martin Atkinson 1 4
## Michael Oliver 1 4
## Mike Dean 0 0
## Paul Tierney 1 1
## Roger East 0 1
## Simon Hooper 0 0
## Stuart Attwell 2 0
##
## St. James' Park (Newcastle upon Tyne)
## Andre Marriner 3
## Andy Madley 0
## Anthony Taylor 1
## Chris Kavanagh 0
## Craig Pawson 2
## David Coote 0
## Graham Scott 0
## Jonathan Moss 0
## Kevin Friend 1
## Lee Mason 1
## Lee Probert 2
## Martin Atkinson 2
## Michael Oliver 0
## Mike Dean 1
## Paul Tierney 3
## Roger East 0
## Simon Hooper 1
## Stuart Attwell 2
##
## St. Mary's Stadium (Southampton- Hampshire)
## Andre Marriner 1
## Andy Madley 0
## Anthony Taylor 2
## Chris Kavanagh 2
## Craig Pawson 2
## David Coote 0
## Graham Scott 3
## Jonathan Moss 2
## Kevin Friend 2
## Lee Mason 0
## Lee Probert 1
## Martin Atkinson 1
## Michael Oliver 0
## Mike Dean 0
## Paul Tierney 2
## Roger East 0
## Simon Hooper 1
## Stuart Attwell 0
##
## Stamford Bridge (London)
## Andre Marriner 2
## Andy Madley 0
## Anthony Taylor 0
## Chris Kavanagh 2
## Craig Pawson 1
## David Coote 0
## Graham Scott 1
## Jonathan Moss 2
## Kevin Friend 2
## Lee Mason 1
## Lee Probert 1
## Martin Atkinson 1
## Michael Oliver 3
## Mike Dean 1
## Paul Tierney 2
## Roger East 0
## Simon Hooper 0
## Stuart Attwell 0
##
## The American Express Community Stadium (Falmer- East Sussex)
## Andre Marriner 1
## Andy Madley 1
## Anthony Taylor 2
## Chris Kavanagh 2
## Craig Pawson 0
## David Coote 0
## Graham Scott 0
## Jonathan Moss 0
## Kevin Friend 5
## Lee Mason 0
## Lee Probert 1
## Martin Atkinson 0
## Michael Oliver 2
## Mike Dean 2
## Paul Tierney 0
## Roger East 0
## Simon Hooper 1
## Stuart Attwell 2
##
## Tottenham Hotspur Stadium (London) Turf Moor (Burnley)
## Andre Marriner 2 0
## Andy Madley 0 0
## Anthony Taylor 1 3
## Chris Kavanagh 1 2
## Craig Pawson 0 1
## David Coote 0 1
## Graham Scott 0 0
## Jonathan Moss 0 1
## Kevin Friend 0 0
## Lee Mason 1 0
## Lee Probert 0 1
## Martin Atkinson 0 2
## Michael Oliver 0 2
## Mike Dean 0 3
## Paul Tierney 0 2
## Roger East 0 0
## Simon Hooper 0 0
## Stuart Attwell 0 1
##
## Vicarage Road (Watford)
## Andre Marriner 1
## Andy Madley 1
## Anthony Taylor 1
## Chris Kavanagh 1
## Craig Pawson 1
## David Coote 0
## Graham Scott 0
## Jonathan Moss 4
## Kevin Friend 0
## Lee Mason 0
## Lee Probert 1
## Martin Atkinson 1
## Michael Oliver 1
## Mike Dean 3
## Paul Tierney 1
## Roger East 2
## Simon Hooper 1
## Stuart Attwell 0
##
## Vitality Stadium (Bournemouth- Dorset)
## Andre Marriner 0
## Andy Madley 0
## Anthony Taylor 0
## Chris Kavanagh 0
## Craig Pawson 3
## David Coote 2
## Graham Scott 0
## Jonathan Moss 0
## Kevin Friend 2
## Lee Mason 1
## Lee Probert 2
## Martin Atkinson 1
## Michael Oliver 0
## Mike Dean 3
## Paul Tierney 1
## Roger East 3
## Simon Hooper 1
## Stuart Attwell 0
##
## Wembley Stadium (London)
## Andre Marriner 1
## Andy Madley 0
## Anthony Taylor 3
## Chris Kavanagh 1
## Craig Pawson 0
## David Coote 0
## Graham Scott 2
## Jonathan Moss 0
## Kevin Friend 1
## Lee Mason 0
## Lee Probert 0
## Martin Atkinson 1
## Michael Oliver 2
## Mike Dean 2
## Paul Tierney 0
## Roger East 0
## Simon Hooper 0
## Stuart Attwell 1
Let’s set up the hypothesis test.
HO:The referee played in stadium.
HA:The referee played in stadium is dependent on the match.
Test
chisq.test(table(data$referee, data$stadium_name))
## Warning in chisq.test(table(data$referee, data$stadium_name)): Chi-squared
## approximation may be incorrect
##
## Pearson's Chi-squared test
##
## data: table(data$referee, data$stadium_name)
## X-squared = 351.55, df = 340, p-value = 0.3215
Here we are also able to reject our null hypothesis.
Esitmates
chisq.test(table(data$referee, data$stadium_name))$expected
## Warning in chisq.test(table(data$referee, data$stadium_name)): Chi-squared
## approximation may be incorrect
##
## Anfield (Liverpool) Cardiff City Stadium (Cardiff (Caerdydd))
## Andre Marriner 1.35 1.35
## Andy Madley 0.10 0.10
## Anthony Taylor 1.60 1.60
## Chris Kavanagh 1.20 1.20
## Craig Pawson 1.30 1.30
## David Coote 0.55 0.55
## Graham Scott 0.85 0.85
## Jonathan Moss 1.35 1.35
## Kevin Friend 1.35 1.35
## Lee Mason 0.95 0.95
## Lee Probert 0.90 0.90
## Martin Atkinson 1.45 1.45
## Michael Oliver 1.50 1.50
## Mike Dean 1.45 1.45
## Paul Tierney 1.20 1.20
## Roger East 0.50 0.50
## Simon Hooper 0.40 0.40
## Stuart Attwell 1.00 1.00
##
## Craven Cottage (London) Emirates Stadium (London)
## Andre Marriner 1.35 1.35
## Andy Madley 0.10 0.10
## Anthony Taylor 1.60 1.60
## Chris Kavanagh 1.20 1.20
## Craig Pawson 1.30 1.30
## David Coote 0.55 0.55
## Graham Scott 0.85 0.85
## Jonathan Moss 1.35 1.35
## Kevin Friend 1.35 1.35
## Lee Mason 0.95 0.95
## Lee Probert 0.90 0.90
## Martin Atkinson 1.45 1.45
## Michael Oliver 1.50 1.50
## Mike Dean 1.45 1.45
## Paul Tierney 1.20 1.20
## Roger East 0.50 0.50
## Simon Hooper 0.40 0.40
## Stuart Attwell 1.00 1.00
##
## Etihad Stadium (Manchester) Goodison Park (Liverpool)
## Andre Marriner 1.35 1.35
## Andy Madley 0.10 0.10
## Anthony Taylor 1.60 1.60
## Chris Kavanagh 1.20 1.20
## Craig Pawson 1.30 1.30
## David Coote 0.55 0.55
## Graham Scott 0.85 0.85
## Jonathan Moss 1.35 1.35
## Kevin Friend 1.35 1.35
## Lee Mason 0.95 0.95
## Lee Probert 0.90 0.90
## Martin Atkinson 1.45 1.45
## Michael Oliver 1.50 1.50
## Mike Dean 1.45 1.45
## Paul Tierney 1.20 1.20
## Roger East 0.50 0.50
## Simon Hooper 0.40 0.40
## Stuart Attwell 1.00 1.00
##
## John Smith's Stadium (Huddersfield- West Yorkshire)
## Andre Marriner 1.35
## Andy Madley 0.10
## Anthony Taylor 1.60
## Chris Kavanagh 1.20
## Craig Pawson 1.30
## David Coote 0.55
## Graham Scott 0.85
## Jonathan Moss 1.35
## Kevin Friend 1.35
## Lee Mason 0.95
## Lee Probert 0.90
## Martin Atkinson 1.45
## Michael Oliver 1.50
## Mike Dean 1.45
## Paul Tierney 1.20
## Roger East 0.50
## Simon Hooper 0.40
## Stuart Attwell 1.00
##
## King Power Stadium (Leicester- Leicestershire)
## Andre Marriner 1.35
## Andy Madley 0.10
## Anthony Taylor 1.60
## Chris Kavanagh 1.20
## Craig Pawson 1.30
## David Coote 0.55
## Graham Scott 0.85
## Jonathan Moss 1.35
## Kevin Friend 1.35
## Lee Mason 0.95
## Lee Probert 0.90
## Martin Atkinson 1.45
## Michael Oliver 1.50
## Mike Dean 1.45
## Paul Tierney 1.20
## Roger East 0.50
## Simon Hooper 0.40
## Stuart Attwell 1.00
##
## London Stadium (London)
## Andre Marriner 1.35
## Andy Madley 0.10
## Anthony Taylor 1.60
## Chris Kavanagh 1.20
## Craig Pawson 1.30
## David Coote 0.55
## Graham Scott 0.85
## Jonathan Moss 1.35
## Kevin Friend 1.35
## Lee Mason 0.95
## Lee Probert 0.90
## Martin Atkinson 1.45
## Michael Oliver 1.50
## Mike Dean 1.45
## Paul Tierney 1.20
## Roger East 0.50
## Simon Hooper 0.40
## Stuart Attwell 1.00
##
## Molineux Stadium (Wolverhampton- West Midlands)
## Andre Marriner 1.35
## Andy Madley 0.10
## Anthony Taylor 1.60
## Chris Kavanagh 1.20
## Craig Pawson 1.30
## David Coote 0.55
## Graham Scott 0.85
## Jonathan Moss 1.35
## Kevin Friend 1.35
## Lee Mason 0.95
## Lee Probert 0.90
## Martin Atkinson 1.45
## Michael Oliver 1.50
## Mike Dean 1.45
## Paul Tierney 1.20
## Roger East 0.50
## Simon Hooper 0.40
## Stuart Attwell 1.00
##
## Old Trafford (Manchester) Selhurst Park (London)
## Andre Marriner 1.35 1.35
## Andy Madley 0.10 0.10
## Anthony Taylor 1.60 1.60
## Chris Kavanagh 1.20 1.20
## Craig Pawson 1.30 1.30
## David Coote 0.55 0.55
## Graham Scott 0.85 0.85
## Jonathan Moss 1.35 1.35
## Kevin Friend 1.35 1.35
## Lee Mason 0.95 0.95
## Lee Probert 0.90 0.90
## Martin Atkinson 1.45 1.45
## Michael Oliver 1.50 1.50
## Mike Dean 1.45 1.45
## Paul Tierney 1.20 1.20
## Roger East 0.50 0.50
## Simon Hooper 0.40 0.40
## Stuart Attwell 1.00 1.00
##
## St. James' Park (Newcastle upon Tyne)
## Andre Marriner 1.35
## Andy Madley 0.10
## Anthony Taylor 1.60
## Chris Kavanagh 1.20
## Craig Pawson 1.30
## David Coote 0.55
## Graham Scott 0.85
## Jonathan Moss 1.35
## Kevin Friend 1.35
## Lee Mason 0.95
## Lee Probert 0.90
## Martin Atkinson 1.45
## Michael Oliver 1.50
## Mike Dean 1.45
## Paul Tierney 1.20
## Roger East 0.50
## Simon Hooper 0.40
## Stuart Attwell 1.00
##
## St. Mary's Stadium (Southampton- Hampshire)
## Andre Marriner 1.35
## Andy Madley 0.10
## Anthony Taylor 1.60
## Chris Kavanagh 1.20
## Craig Pawson 1.30
## David Coote 0.55
## Graham Scott 0.85
## Jonathan Moss 1.35
## Kevin Friend 1.35
## Lee Mason 0.95
## Lee Probert 0.90
## Martin Atkinson 1.45
## Michael Oliver 1.50
## Mike Dean 1.45
## Paul Tierney 1.20
## Roger East 0.50
## Simon Hooper 0.40
## Stuart Attwell 1.00
##
## Stamford Bridge (London)
## Andre Marriner 1.35
## Andy Madley 0.10
## Anthony Taylor 1.60
## Chris Kavanagh 1.20
## Craig Pawson 1.30
## David Coote 0.55
## Graham Scott 0.85
## Jonathan Moss 1.35
## Kevin Friend 1.35
## Lee Mason 0.95
## Lee Probert 0.90
## Martin Atkinson 1.45
## Michael Oliver 1.50
## Mike Dean 1.45
## Paul Tierney 1.20
## Roger East 0.50
## Simon Hooper 0.40
## Stuart Attwell 1.00
##
## The American Express Community Stadium (Falmer- East Sussex)
## Andre Marriner 1.35
## Andy Madley 0.10
## Anthony Taylor 1.60
## Chris Kavanagh 1.20
## Craig Pawson 1.30
## David Coote 0.55
## Graham Scott 0.85
## Jonathan Moss 1.35
## Kevin Friend 1.35
## Lee Mason 0.95
## Lee Probert 0.90
## Martin Atkinson 1.45
## Michael Oliver 1.50
## Mike Dean 1.45
## Paul Tierney 1.20
## Roger East 0.50
## Simon Hooper 0.40
## Stuart Attwell 1.00
##
## Tottenham Hotspur Stadium (London) Turf Moor (Burnley)
## Andre Marriner 0.35526316 1.35
## Andy Madley 0.02631579 0.10
## Anthony Taylor 0.42105263 1.60
## Chris Kavanagh 0.31578947 1.20
## Craig Pawson 0.34210526 1.30
## David Coote 0.14473684 0.55
## Graham Scott 0.22368421 0.85
## Jonathan Moss 0.35526316 1.35
## Kevin Friend 0.35526316 1.35
## Lee Mason 0.25000000 0.95
## Lee Probert 0.23684211 0.90
## Martin Atkinson 0.38157895 1.45
## Michael Oliver 0.39473684 1.50
## Mike Dean 0.38157895 1.45
## Paul Tierney 0.31578947 1.20
## Roger East 0.13157895 0.50
## Simon Hooper 0.10526316 0.40
## Stuart Attwell 0.26315789 1.00
##
## Vicarage Road (Watford)
## Andre Marriner 1.35
## Andy Madley 0.10
## Anthony Taylor 1.60
## Chris Kavanagh 1.20
## Craig Pawson 1.30
## David Coote 0.55
## Graham Scott 0.85
## Jonathan Moss 1.35
## Kevin Friend 1.35
## Lee Mason 0.95
## Lee Probert 0.90
## Martin Atkinson 1.45
## Michael Oliver 1.50
## Mike Dean 1.45
## Paul Tierney 1.20
## Roger East 0.50
## Simon Hooper 0.40
## Stuart Attwell 1.00
##
## Vitality Stadium (Bournemouth- Dorset)
## Andre Marriner 1.35
## Andy Madley 0.10
## Anthony Taylor 1.60
## Chris Kavanagh 1.20
## Craig Pawson 1.30
## David Coote 0.55
## Graham Scott 0.85
## Jonathan Moss 1.35
## Kevin Friend 1.35
## Lee Mason 0.95
## Lee Probert 0.90
## Martin Atkinson 1.45
## Michael Oliver 1.50
## Mike Dean 1.45
## Paul Tierney 1.20
## Roger East 0.50
## Simon Hooper 0.40
## Stuart Attwell 1.00
##
## Wembley Stadium (London)
## Andre Marriner 0.99473684
## Andy Madley 0.07368421
## Anthony Taylor 1.17894737
## Chris Kavanagh 0.88421053
## Craig Pawson 0.95789474
## David Coote 0.40526316
## Graham Scott 0.62631579
## Jonathan Moss 0.99473684
## Kevin Friend 0.99473684
## Lee Mason 0.70000000
## Lee Probert 0.66315789
## Martin Atkinson 1.06842105
## Michael Oliver 1.10526316
## Mike Dean 1.06842105
## Paul Tierney 0.88421053
## Roger East 0.36842105
## Simon Hooper 0.29473684
## Stuart Attwell 0.73684211
Contingency table.
mosaicplot(table(data$stadium_name, data$date_GMT))
Let me try it with ggplot.
library(ggmosaic)
## Loading required package: ggplot2
ggplot(data)+
geom_mosaic( aes(x = table(data$stadium_name, data$date_GMT),fill = stadium_name),na.rm = TRUE) +
labs(x = "Stadium Name",y = "Date", title = " Matches happend in Stadium")