Skip to content

Commit 78397ab

Browse files
committed
[Reliability Bayesian pymc-devs#474] updated myst notebook
Signed-off-by: Nathaniel <[email protected]>
1 parent b864269 commit 78397ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

myst_nbs/case_studies/reliability_and_calibration.myst.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -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)