Skip to content

Commit 8b95a0b

Browse files
committed
tidying
Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
1 parent bbefa9d commit 8b95a0b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

docs/source/notebooks/iv_weak_instruments.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5492,7 +5492,7 @@
54925492
"source": [
54935493
"### Credible Inference and the Credibility Revolution.\n",
54945494
"\n",
5495-
"How far can we push the idea? How vulnerable is our inference to model mis-specification? Can we stress test the parameter estimates by trying strong priors? The IV methodology is so palpably about argument, and credible argument for the proposed mechanism. One benefit of the Bayesian modelling approach to IV is that we can express and stretch the credibility of the mechanism in the model design. We can stress-test our the credibility of inferences by trying to impose contestable beliefs as priors on the model and see the degree to which the inferences are anchored by our prior specifications and how much the data pulls us away from more incredible postulates. \n",
5495+
"How far can we push the idea? How vulnerable is our inference to model mis-specification? Can we stress test the parameter estimates by trying strong priors? The IV methodology is palpably about argument - credible argument for the proposed mechanism. With this in mind, one benefit of the Bayesian modelling approach to IV is that we can express and stretch the credibility of the mechanism in the model design. We can stress-test the credibility of inferences by trying to impose contestable beliefs as priors on the model and see the degree to which the inferences are anchored by our prior specifications and how much the data pulls us away from more incredible postulates. \n",
54965496
"\n",
54975497
"Here we'll refit our original IV model, but we'll scale the `experience_1` variable to have a mean of 0. This allows place priors of roughly the same scale on all variables. "
54985498
]
@@ -6042,7 +6042,7 @@
60426042
"source": [
60436043
"### Comparing Model Inferences\n",
60446044
"\n",
6045-
"Just to make the emerging picture clearer we pull out and plot the credible intervals for the parameter estimates implied by each model. Here we can see the different implications induced by each model configuration. Note how all the IV models pull the credible intervals awat from the simpler OLS type model estimate. "
6045+
"Just to make the emerging picture clearer we pull out and plot the credible intervals for the parameter estimates implied by each model. Here we can see the different implications induced by each model configuration. Note how all the IV models pull the credible intervals away from the simpler OLS type model estimate. "
60466046
]
60476047
},
60486048
{
@@ -6282,7 +6282,7 @@
62826282
"cell_type": "markdown",
62836283
"metadata": {},
62846284
"source": [
6285-
"Our final model shows a somewhat chaotic realisations of the predicted and counterfactual distributions suggesting it is not in fact a great model for our data. We can also formalise this model comparison in their predictive power. "
6285+
"Our final model shows a somewhat chaotic realisations of the predicted and counterfactual distributions suggesting it is not in fact a great model for our data. We can also formalise this model comparison in their predictive power."
62866286
]
62876287
},
62886288
{
@@ -6364,6 +6364,13 @@
63646364
"compare_df[['rank',\t'elpd_loo',\t'p_loo','elpd_diff','weight']]"
63656365
]
63666366
},
6367+
{
6368+
"cell_type": "markdown",
6369+
"metadata": {},
6370+
"source": [
6371+
"The final analysis should be driven by the plausibility of the implications on the raw `wage` scale. But it's useful to know how and whether a particular model fit compares in predictive power against other reasonable candidate models. "
6372+
]
6373+
},
63676374
{
63686375
"cell_type": "markdown",
63696376
"metadata": {},
@@ -6375,7 +6382,7 @@
63756382
"cell_type": "markdown",
63766383
"metadata": {},
63776384
"source": [
6378-
"In this demonstration we've seen an example of IV regression justification conducted in a Bayesian setting. Crucially we've tried to convey the centrality of argument and model justification that is required in this mode of causal inference. These requirements are true whether you're fitting the IV model with a frequentist model or a Bayesian model, but the process of justification and model credibility comparison is neatly phrased in the routine of Bayesian model workflow. "
6385+
"In this demonstration we've seen an example of IV regression justification conducted in a Bayesian setting. Crucially we've tried to convey the centrality of argument and model justification that is required in this mode of causal inference. These requirements are true whether you're fitting the IV model with a frequentist model or a Bayesian model, but the process of justification and model-credibility-comparison is neatly phrased in the routine of Bayesian model workflow. "
63796386
]
63806387
}
63816388
],

0 commit comments

Comments
 (0)