Skip to content

Commit fcf078d

Browse files
committed
[Reliability Bayesian pymc-devs#474] trying to fix git index
Signed-off-by: Nathaniel <[email protected]>
1 parent b864269 commit fcf078d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/case_studies/reliability_and_calibration.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"# Reliability Statistics and Predictive Calibration\n",
99
"\n",
1010
":::{post} January, 2023\n",
11-
":tags: time-to-failure, prediction, calibration\n",
11+
":tags: time-to-failure, prediction, calibration, survival analysis, censored\n",
1212
":category: intermediate\n",
1313
":author: Nathaniel Forde\n",
1414
":::"

myst_nbs/case_studies/reliability_and_calibration.myst.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ kernelspec:
1515
# Reliability Statistics and Predictive Calibration
1616

1717
:::{post} January, 2023
18-
:tags: time-to-failure, prediction, calibration
18+
:tags: time-to-failure, prediction, calibration, survival analysis, censored
1919
:category: intermediate
2020
:author: Nathaniel Forde
2121
:::
@@ -88,7 +88,7 @@ mu, sigma = 6, 0.3
8888
def plot_ln_pi(mu, sigma, xy=(700, 75), title="Exact Prediction Interval for Known Lognormal"):
8989
failure_dist = lognorm(s=sigma, scale=np.exp(mu))
9090
samples = failure_dist.rvs(size=1000, random_state=100)
91-
fig, axs = plt.subplots(1, 3, figsize=(20, 6))
91+
fig, axs = plt.subplots(1, 3, figsize=(20, 10))
9292
axs = axs.flatten()
9393
axs[0].hist(samples, ec="black", color="slateblue", bins=30)
9494
axs[0].set_title(f"Failure Time Distribution: LN({mu}, {sigma})")
@@ -331,7 +331,7 @@ def plot_cdfs(actuarial_table, dist_fits=True, ax=None, title="", xy=(3000, 0.5)
331331
lnf = LogNormalFitter().fit(item_period["t"] + 1e-25, item_period["failed"])
332332
wbf = WeibullFitter().fit(item_period["t"] + 1e-25, item_period["failed"])
333333
if ax is None:
334-
fig, ax = plt.subplots(figsize=(20, 8))
334+
fig, ax = plt.subplots(figsize=(20, 10))
335335
ax.plot(
336336
actuarial_table["t"],
337337
actuarial_table["F_hat"],
@@ -464,7 +464,7 @@ Next we'll plot the bootstrapped data and the two estimates of coverage we achie
464464
```{code-cell} ipython3
465465
mosaic = """AABB
466466
CCCC"""
467-
fig, axs = plt.subplot_mosaic(mosaic=mosaic, figsize=(20, 10))
467+
fig, axs = plt.subplot_mosaic(mosaic=mosaic, figsize=(20, 12))
468468
mle_rv = lognorm(s=0.53, scale=np.exp(10.128))
469469
axs = [axs[k] for k in axs.keys()]
470470
axs[0].scatter(

0 commit comments

Comments
 (0)