I have this data and plotted the histogram and CDF:
data = {-42.0421,-57.4408,-59.7565,-78.2942,-98.1669,-100.343,-121.699,-141.606,25.527,18.5992,10.5566,3.5326,-4.28842,-16.1812,-20.7588,-33.9497,-49.4225,57.8329,52.3047,46.7013,39.5162,33.7256,27.7452,19.8653,13.5107,6.79453,13.7434,2.97742,-11.8788,-14.7843,-28.9345,-45.3735,-46.8957,-62.636,-79.8734,61.2491,54.8034,48.3178,41.5504,34.7519,27.8635,20.3261,13.0338,5.49161,97.9839,92.6601,87.162,80.6281,75.0999,69.5717,62.6603,56.887,51.1137,47.477,39.2979,30.3815,24.1294,15.2521,3.78877,-1.35049,-13.9729,-28.0871,99.1226,92.8674,86.6122,80.4608,74.0979,67.6123,60.8487,54.3631,47.6598,141.078,135.754,130.43,124.736,119.412,113.996,107.462,101.934,96.4055} d = EmpiricalDistribution[data]; Row[{Histogram[data, 40],DiscretePlot[CDF[d, x], {x, -150, 150, 1}]}] However, I can find the right method to plot them on top of each other.
I have tried the following but the chart is weird.
Histogram[data, 40, "PDF", Epilog -> First@DiscretePlot[CDF[d, x], {x, -150, 150, 1}]] and
Show[Histogram[data, 40], DiscretePlot[CDF[d, x], {x, -150, 150, 1}]] Help is appreciated.
Thanks in advance.
edit: The final chart that I'm looking for is something like this (in excel).





HistogramDistribution[]? $\endgroup$