I am a new member of this community and I try to learn Mathematica Software.
At moment I try to find the parameter of a Weibull distribution, but I cannot solve the problem.This is the code and the data:
data = {2, 4, 3, 1, 2, 0, 3, 3, 0, 2, 0, 4, 2, 1, 1, 1, 2, 0, 5, 2, 3,
0, 2, 2, 1, 0, 1, 3, 2, 0, 3, 3, 3, 1, 1, 2, 2, 0, 1, 2, 0, 2, 2,
0, 0, 4, 0, 4, 2, 2, 0, 0, 1, 1, 2, 1, 3, 2, 1, 0, 0, 1, 0, 2, 0, 4,
2, 1, 2, 2, 1, 1, 1, 0, 0, 1, 1, 2, 1, 1, 2, 2, 1, 3, 1, 0, 4, 2,
3, 3, 1, 1, 2, 4, 4, 2, 0, 1, 1, 0, 2, 3, 2, 0, 2, 1, 1, 2, 2, 1, 5,
1, 1, 1, 3, 1, 0, 3, 0, 1, 3, 1, 2, 3, 0, 0, 3, 2, 3, 1, 2, 0, 2,
1, 3, 0, 3, 4, 1, 3, 3, 2, 0, 2, 1, 2, 3, 0, 1, 2, 1, 1, 0, 0, 2, 0,
1, 2, 1, 1, 2, 1, 0, 2, 3, 3, 5, 0, 0, 2, 2, 3, 4, 3, 1, 3, 0, 1,
1, 2, 1, 0, 3, 1, 1, 0, 1, 0, 3, 4, 2, 2, 3, 0, 4, 0, 2, 0, 1, 1, 2,
1, 2, 2, 0, 1, 1, 3, 0, 1, 4, 3, 1, 3, 0, 1, 2, 1, 1, 2, 0, 1, 0,
1, 0, 1, 2, 4, 0, 0, 2, 3, 0, 0, 2, 1, 3, 1, 5, 1, 4, 1, 1, 0, 1, 2,
5, 4, 1, 1, 2, 0, 2, 1, 1, 1, 1, 1, 0, 2, 3, 1, 3, 0, 0, 1, 0, 0,
3, 1, 2, 0, 4, 1, 7, 3, 0, 1, 0, 3, 1, 2, 3, 4, 0, 0, 2, 3, 0, 4, 2,
1, 1, 1, 0, 1, 1, 1, 2, 1, 1, 1, 2, 0, 2, 2, 0, 4, 2, 3, 4, 1, 2,
2, 3, 0, 0, 1, 2, 1, 3, 5, 1, 4, 6, 1, 1, 2, 2, 1, 2, 1, 4, 1, 1, 1,
1, 0, 2, 1, 1, 3, 1, 3, 1, 7, 1, 0, 2, 1}
Histogram[data, {-0.5, 10.5, 1}]
FindDistributionParameters[data, WeibullDistribution[a, b]]
You can see from the Histogram that the distribution is a Weibull, but when I run an error occurs:
FindDistributionParameters::ntsprt: "One or more data points are not in support of the distribution WeibullDistribution[a,b]."
How can I solve it?
Thank you very much for your answer.