Exponentialfördelningen

Statistiskt tänkande i Python (del 1)

Justin Bois

Teaching Professor at the California Institute of Technology

Exponentialfördelningen

  • Väntetiden mellan händelser i en Poissonprocess är exponentialfördelad
Statistiskt tänkande i Python (del 1)

Exponentialfördelningens PDF

ch4-4.004.png

Statistiskt tänkande i Python (del 1)

Möjlig Poissonprocess

  • Kärnkraftsolyckor:
    • Tidpunkten för en är oberoende av alla andra
Statistiskt tänkande i Python (del 1)

Exponentiella tider mellan händelser

mean = np.mean(inter_times)
samples = rng.exponential(mean, size=10000)
x, y = ecdf(inter_times)
x_theor, y_theor = ecdf(samples)
_ = plt.plot(x_theor, y_theor)
_ = plt.plot(x, y, marker='.', linestyle='none')
_ = plt.xlabel('time (days)')
_ = plt.ylabel('CDF')
plt.show()
Statistiskt tänkande i Python (del 1)

Exponentiella tider mellan händelser

  ch4-4.011.png

Statistiskt tänkande i Python (del 1)

Nu kör vi en övning!

Statistiskt tänkande i Python (del 1)

Preparing Video For Download...