Message Boards Message Boards

Analyse a large data set using the function "HistogramDistribution"?

Posted 6 years ago
Attachments:
POSTED BY: yang zhou
7 Replies

As far as I can see the problem comes from the very first line of your data:

enter image description here

So instead you might try:

HistogramDistribution[dataout[[2 ;;, {1, 2}]], "Scott"]

Hope that helps, regards -- Henrik

POSTED BY: Henrik Schachner
Posted 6 years ago

Sorry, may be I did not present the problem clearly. Now I have deleted the first line of the .txt file, the problem remains.

POSTED BY: yang zhou

All I can say is that this is working:

enter image description here

POSTED BY: Henrik Schachner

This appears to work for me in Mathematica 11.3. What version are you using?

Posted 6 years ago

I have tried 11.0 and 11.1.1.0 , both failed. Could you upload your code and the output results? Thank you.

POSTED BY: yang zhou

It looks like there was a bug in the HistogramDistribution code that was introduced in version 10.4 and fixed in version 11.2. I'm afraid I don't know of a workaround for the affected versions.

And the code I used was:

data = Import["~/Downloads/dataOut_2.txt", "TSV"];
HistogramDistribution[data[[2 ;;, {1, 2}]], "Scott"]
Posted 6 years ago

Right, Solved! Thank you!

POSTED BY: yang zhou
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract