When I analyzed a large data set(see the attachment) using the function "HistogramDistribution"
dataout = Import["/Users/apple/Desktop/dataOut.txt", "Table"];
HistogramDistribution[dataout[[All, {1, 2}]], "Scott"]
an error occurs:
Thread::tdlen: Objects of unequal length in (1/99953){0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,<<42>>} {<<1>>} cannot be combined.
And the output data distribution becomes a mess. The strange thing is, when I change the bspec "Scott" to "Sturges" or "Automatic", everything works.
HistogramDistribution[dataout[[All, {1, 2}]], "Sturges"]
Now for some practical reasons, I have to use "Scott" to analyze the data. So could anyone help me solve this? Thanks a lot.
Attachments: