So I was given this problem by my professor:
Unfortunately he is unreachable during the holidays. Can someone explain what lambda is supposed to be?
This is the code I have written thus far:
function p=calcprob(k)
p=exp(-lambda)*(((lambda)^k)/(factorial(k)))
end

 Akzeptierte Antwort

KSSV
KSSV am 24 Nov. 2017

0 Stimmen

It is a Poisson's Distribution......lambda is the average number of events (here cars) per interval. Read more here: https://en.wikipedia.org/wiki/Poisson_distribution

2 Kommentare

Matthew Lozancich
Matthew Lozancich am 24 Nov. 2017
So in this case Lambda = K(cars)/(1) min ??
Matthew Lozancich
Matthew Lozancich am 24 Nov. 2017
NVM i'm so dumb. LOL I reread the problem. Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by