Skip to content

Commit 90567e6

Browse files
committed
feat(length_warmup): add mcq (#145)
1 parent 0bfe519 commit 90567e6

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

pages/guide/output_analysis/length_warmup.qmd

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,52 @@ Not relevant - replicating an existing model described in a paper, so just used
11251125

11261126
## Test yourself
11271127

1128+
<div class="h3-tight"></div>
1129+
1130+
### Quiz
1131+
1132+
```{r}
1133+
#| echo: false
1134+
library(webexercises) # nolint: library_call_linter
1135+
```
1136+
1137+
::: {.callout-note}
1138+
1139+
## What main problem does a warm-up period aim to reduce in steady‑state DES models?
1140+
1141+
```{r}
1142+
#| output: asis
1143+
#| echo: false
1144+
cat(longmcq(c(
1145+
answer = "Initialisation bias from starting in an empty or atypical state.",
1146+
"Numerical rounding errors in random number generators.",
1147+
"Bias caused by using too many replications."
1148+
)))
1149+
```
1150+
1151+
:::
1152+
1153+
::: {.callout-note}
1154+
1155+
## In the time series inspection approach, why do we plot the cumulative mean rather than raw performance measures over time?
1156+
1157+
```{r}
1158+
#| output: asis
1159+
#| echo: false
1160+
cat(longmcq(c(
1161+
"Because raw values are always constant in steady state.",
1162+
answer = paste0(
1163+
"Because cumulative means smooth short‑term fluctuations and make it ",
1164+
"easier to see when metrics stabilise."
1165+
),
1166+
"Because cumulative means completely remove all variability from the data."
1167+
)))
1168+
```
1169+
1170+
:::
1171+
1172+
### Activity
1173+
11281174
Try using/adapting the code above for your own simulation and identify a suitable length of warm-up.
11291175

11301176
## References

0 commit comments

Comments
 (0)