Timeline for Gaps in the plot of a cumulative distribution function produced from HistogramDistribution [duplicate]
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 12, 2016 at 22:46 | history | closed |
MarcoB user9660 Dr. belisarius Mr.Wizard plotting Users with the plotting badge or a synonym can single-handedly close plotting questions as duplicates and reopen them as needed. |
Duplicate of Plot showing discontinuity where it shouldn't | |
Feb 12, 2016 at 13:50 | answer | added | rhermans | timeline score: 0 | |
Feb 12, 2016 at 2:39 | vote | accept | George Rutherford | ||
Feb 11, 2016 at 23:53 | history | edited | J. M.'s missing motivation♦ |
edited tags
|
|
Feb 11, 2016 at 23:40 | history | edited | m_goldberg | CC BY-SA 3.0 |
Routine clean-up
|
Feb 11, 2016 at 23:37 | answer | added | m_goldberg | timeline score: 5 | |
Feb 11, 2016 at 18:31 | review | Close votes | |||
Feb 12, 2016 at 22:46 | |||||
Jan 27, 2016 at 23:38 | comment | added | MarcoB |
Yet another option would be to use DiscretePlot with your CDF; DiscretePlot[CDF[HistogramDistribution[data, 20], x], {x, 0, 400}, Filling -> None, Joined -> True] generates this plot. As an aside, your data can be more efficiently generated using: data = RandomReal[{0, 400}, 200] .
|
|
Jan 25, 2016 at 10:03 | history | tweeted | twitter.com/StackMma/status/691562115686080512 | ||
Jan 25, 2016 at 7:32 | comment | added | JimB |
If your real data displays near zero values for the histogram in the extremes of the data (as opposed to data from distributions like a uniform where the density is very non-negative at the boundaries), you might consider using SmoothKernelDistribution instead. This gives you a smooth curve for the density rather than a bumpy histogram. You can use PDF and CDF with the object produced by SmoothKernelDistribution just like HistogramDistribution .
|
|
Jan 25, 2016 at 4:48 | comment | added | Brett Champion |
@bills Exclusions -> None is the better approach in this case.
|
|
Jan 25, 2016 at 3:36 | history | edited | MarcoB | CC BY-SA 3.0 |
Formatted code, added plotting tag, since the problem is really in the plotting and not in the calculation
|
Jan 25, 2016 at 3:25 | comment | added | bill s |
Add PlotPoints -> 500 to your final Plot command.
|
|
Jan 25, 2016 at 2:26 | review | First posts | |||
Jan 25, 2016 at 2:34 | |||||
Jan 25, 2016 at 2:21 | history | asked | George Rutherford | CC BY-SA 3.0 |