EPL (Burnley @ Crystal Palace): Will a GOAL be SCORED in the 75th Minute or Later?
4:30PM
Yes: 1+ goals in 75th minute or later
No: No goals in 75th minute or later
Inputs to Solve
##### User Estimates #####
expected_G_Per_Game = 2
# over / under
## Inputs Defined in the Problem
GOALS = 0
time = 20 ## including stoppage time
Method to Solve
- [1] Estimate lambda (l_) (arrival rate of GOALS per 20 minutes)
- [2] Use the Poisson Distribution to compute the probability of zero GOALS SCORED during the 75th Minute or later (p)
## [1]
l_ = float(expected_G_Per_Game * time) / 90
print("The total expected GOALS a 15 minute period is %s" % round((l_),3))
The total expected GOALS a 15 minute period is 0.389
## [2]
import math
p = math.exp(-l_)*(l_**GOALS)/(math.factorial(GOALS))
print("The probability of k events occuring in an Poisson interval = e^(-lambda) * ((lambda^k)/k!)")
print('where k = 0 and lambda = %s' % round(l_,3))
print('')
print("p = e^(-%s) * (%s^%s)/%s!" % (round(l_,3),round(l_,3),GOALS,GOALS))
The probability of k events occuring in an Poisson interval = e^(-lambda) * ((lambda^k)/k!) where k = 0 and lambda = 0.389
p = e^(-0.389) * (0.389^0)/0!
Solution
print("The probability of %s GOALS in the 75th MINUTE or later is %s" % (GOALS,round(p,3)))
The probability of 0 GOALS in the 75th MINUTE or later is 0.678
Info
download markdown file
email: krellabsinc@gmail.com
twitter: @KRELLabs
import sys
print(sys.version)
3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)]
Posted on 6/29/2020