Skip to content

Nekory23/203hotline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

203hotline

{EPITECH} | Second year | Math project

Uncle Luigi runs a 25-phone hotline in Pondicherry. He reckons 3500 people could possibly call during each 8-hour day, and would like to know the probability of an overload (that is, the probability of no line being available), depending on the average duration of calls.

The random variable representing the number of people calling at a given time follows the binomial distribution, with calls being independent from each other. You’re also thinking about estimating the binomial ditribution with a Poisson distribution, so it can be used on a larger scale.

Your first task is to compute the binomial coefficient given k and n(emphasizing the computation speed and stack optimization).

Your second task is to compare the binomial and Poisson distributions, given the average duration of calls, by printing:

  • the probabilities of getting nsimultaneous calls (for nincreasing from 0 to 50),
  • the probability of an overload,
  • the computation time.

See the subject for further details !

========================

Grade : A | Mark : 20

Category Percentage Tests Crash ?
poisson distribution 100% 3/3 x
Poisson distribution (eval) 100% 3/3 x
basic 100% 5/5 x
binomial coefficient 100% 6/6 x
binomial distribution 100% 3/3 x
binomial distribution (eval) 100% 3/3 x
mathematical rigor 100% 2/2 x
overload 100% 6/6 x
overload (eval) 100% 8/8 x
rigor 100% 6/6 x
End score 100% 39/39 No

Made with Quentin TREHEUX (LuciferBahamut)

Beware of -42 Epitech students !!!

Releases

No releases published

Packages

No packages published