I'm trying to find the optical distribution for the following data https://drive.google.com/file/d/1z_cSu7w8tlz_uEYHr8Y0fFBTwLNo4jtp/view?usp=sharing
As there are a lot of points, the only way to make a quick Histogram is to use the following command that includes lower and upper bounds/limits
pEx = Histogram[{dataEx}, {-10 10^6, 10 10^6, 2 10^5}, PlotRange -> {{-10 10^6, 10 10^6}, All}]
If I now ask for the corresponding distribution, through the following command:
FindDistribution[dataEx]
I obtain
CauchyDistribution[10787.5, 3.13764*10^6]
However, if I now plot the Cauch distribution above -- with an amplitude scaling factor -- i.e.,
fit[x_] := 2.5 10^10 PDF[CauchyDistribution[10787.533402804394`, 3.13763790539067`*^6], x]
I obtain
which clearly disagree with the original data.
However, I have notice however that this distribution fits quite well the region far from the origin, i.e., by redefining now
fit[x_] := .55 10^10 PDF[CauchyDistribution[10787.533402804394`, 3.13763790539067`*^6], x]
I obtain
which clearly give us a good match with the tail of the distribution.
Therefore, I'm wondering whether I'm doing something wrong here. Thanks in advance!
FindDistribution
uses something akin to least-squares. Since you have way more points "far from the origin", the points near the center carry little weight, so the fit is poor there $\endgroup$FindDistribution
on the subset of the data that is used inHistogram
? Filter the data to be in the range{-10 10^6, 10 10^6}
. $\endgroup$