Costa Rica Primera Division Playoffs (Alajuelense @ Saprissa): Will a GOAL be SCORED in the FIRST TEN MINUTES?
10:30PM
Yes: Goal scored in first 10 minutes
No: No goal scored in first 10 minutes
Inputs to Solve
##### User Estimates #####
expected_G_Per_Game = 2.25
# over / under
## Inputs Defined in the Problem
GOALS = 0
time = 10
Method to Solve
- [1] Estimate lambda (l_) (arrival rate of GOALS per 10 minutes)
- [2] Use the Poisson Distribution to compute the probability of zero GOALS SCORED in the FIRST TEN MINUTES (p_0)
## [1]
l_ = float(expected_G_Per_Game * time) / 90
print("The total expected GOALS a 10 minute period is %s" % round((l_),3))
The total expected GOALS a 10 minute period is 0.25
## [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.25
p = e^(-0.25) * (0.25^0)/0!
Solution
print("The probability of %s GOALS in the FIRST TEN MINUTES is %s" % (GOALS,round(p,3)))
The probability of 0 GOALS in the FIRST TEN MINUTES is 0.779
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