May I ask what MATLAB code for expected value is by fitting a Poisson distribution?

4 views (last 30 days)
A = [1, 2, 3, 4, ..., 100]
In this case, I want to fit a Possion distribution and get the expected value.
Would you please tell me how to do it?

Accepted Answer

Torsten on 10 Oct 2022
A = 1:100;
lambdahat = poissfit(A)
lambdahat = 50.5000
Torsten on 11 Oct 2022
Edited: Torsten on 11 Oct 2022
The data do not remotely look random. More like a trial balloon. So who cares ?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!