Given n Bernoulli experiments, with success probability p (p small), this function calculates the approximate probability that a successful event occurs exactly m times.
Usage
Poisson_Theorem(n, m, p)
Arguments
n
An integer value representing the number of repetitions of the Bernoulli experiment.
m
An integer value representing the number of times that a successful event occurs in the n repetitions of the Bernoulli experiment.
p
A real value with the probability that a successful event will happen in any single Bernoulli experiment (called the probability of success).
Value
A numerical value representing the approximate probability that a successful event occurs exactly m times.
Details
Bernoulli experiments are sequences of events, in which successive experiments are independent and at each experiment the probability of appearance of a "successful" event (p) remains constant. The value of n must be high and the value of p must be very small.
References
Gnedenko, B. V. (1978). The Theory of Probability. Mir Publishers. Moscow.
Prob<-Poisson_Theorem(n=100,m=50,p=0.002)
Prob
## The function is currently defined asfunction (n, m, p)
{
landa <- n * p
P <- dpois(m, landa)
return(P)
}