Poisson distribution and discrete distribution

12 ビュー (過去 30 日間)
Hozifa
Hozifa 2022 年 9 月 29 日
回答済み: Walter Roberson 2022 年 9 月 29 日
Hello guys,
I have two set of data, the first one I have to fit it to a Poisson distribution while the second one I have to fitted to a discrete distribution. Does any one know how to do it and how I can get the coefficients?
Thanks in advance
% I want to fit X to a Poisson distribution
x=[
5
16
43
25
19
5
3
];
X=x/sum(x);
bar(X)
figure
% I want to fit Y to a Discrete distribution
y=[
150
93
50
38
26
27
10
7
6
5
];
Y=y/sum(y);
bar(Y)
  1 件のコメント
Torsten
Torsten 2022 年 9 月 29 日
The Poisson distribution is a discrete distribution...

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 9 月 29 日
fitdist allows you to fit a distribution to data.
I want to fit Y to a Discrete distribution
There are an infinite number of different forms of discrete distribution; you are going to need to be more specific about what Discrete distribution means in this context.

Community Treasure Hunt

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

Start Hunting!

Translated by