Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bagrow
9 months ago
|
parent
|
context
|
favorite
| on:
Histograms for Probability Density Estimation: A P...
The best way to compute the empirical CDF (ECDF) is by sorting the data:
N = len(data) X = sorted(data) Y = np.arange(N)/N plt.plot(X,Y)
Technically, you should plot this with `plt.step`.
andrewla
9 months ago
[–]
scipy even has a built-in method (scipy.stats.ecdf) for doing exactly this.
vvanirudh
9 months ago
|
parent
[–]
Neat! That is so simple and in hindsight, makes a lot of sense. Thanks!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: