You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
output_df["expected"], ec="black", color="pink", label="Expected Count of Failures", bins=20
1113
1134
)
1114
1135
ax1.set_title("Uncertainty in the Posterior Prediction Interval of Failure Counts", fontsize=20)
1115
-
ax1.legend();
1136
+
ax1.legend()
1137
+
1138
+
ax2.set_title("Expected Costs Distribution(s) \nbased on implied Failure counts", fontsize=20)
1139
+
ax2.hist(
1140
+
cost_func(output_df["expected"], 2.3),
1141
+
label="Cost(failures,2)",
1142
+
color="royalblue",
1143
+
alpha=0.3,
1144
+
ec="black",
1145
+
bins=20,
1146
+
)
1147
+
ax2.hist(
1148
+
cost_func(output_df["expected"], 2),
1149
+
label="Cost(failures,2.3)",
1150
+
color="red",
1151
+
alpha=0.5,
1152
+
ec="black",
1153
+
bins=20,
1154
+
)
1155
+
ax2.set_xlabel("$ cost")
1156
+
ax2.legend()
1116
1157
```
1117
1158
1118
-
The choice of model in such cases is crucial. The decision about which failure profile is apt has to be informed by a subject matter expert because extrapolation from such sparse data is always risky. An understanding of the uncertainty is crucial if real costs attach to the failures and the subject matter expert is usually better placed to tell if you 2 or 7 failures can be expected within 600 hours of service.
1159
+
The choice of model in such cases is crucial. The decision about which failure profile is apt has to be informed by a subject matter expert because extrapolation from such sparse data is always risky. An understanding of the uncertainty is crucial if real costs attach to the failures and the subject matter expert is usually better placed to tell if you 2 or 7 failures can be plausibly expected within 600 hours of service.
0 commit comments