Does tertiary education increase lifetime wages, and if so, how much?
Download tutorial-1-education-wages.csv, then upload it via the Data page (name it whatever you like, e.g. "Tutorial 1"). See Dataset if you haven't uploaded a file before.
In this case study our treatment is the variable Education (number of years' education) and the Outcome we're interested in is Weekly Wage. Specifically, we're interested in estimating the effect on wages of having more than the standard 12 years education.
Since Education is a whole number (integer) value rather than a true/false property, we need to specify a threshold to group our sample into Control (<= 12 years' education) and Treated cohorts (> 12 years' education).
The next step is to tell Causal Wizard how these variables interact. Following the textbook, we assume that:
The claim here is that people who are more intelligent (if IQ measures such a thing) are more likely to spend more time in education, but also that intelligence also directly affects wages.
However, the effect we're interested in is the effect of Education, not Intelligence. How can we separate these effects?
The simple answer is that we draw the diagram corresponding to our beliefs listed above.
Click Open in Colab (or clone the linked notebooks repository to run locally). When the notebook asks for your config file and data file, upload the two files from Step 5. Run every cell from top to bottom - Runtime → Run all in Colab.
The notebook re-checks everything independently and doesn't just trust the site, so if anything here turns out to be a poor fit for your data, it'll tell you there too. Once notebook 1 finishes, open notebook 2 and run it the same way - it picks up the results automatically.
Scroll to the Findings section first. You should see something like:
First, the causal effect was estimated as approximately 144.85, with a 95% confidence interval of roughly 102 to 189 (your exact numbers will vary slightly, since Causal Wizard's notebooks re-fit the model on your data with a random held-out test split each time). This means that in stability testing, 95% of the results on different subsamples fell in this range. The units of the result are whatever the original outcome units were (in this case, weekly wages).
Next, look at the Outcomes plots section. Since this is a binary (Control/Treated) design, you'll see a box plot comparing the two cohorts' outcome distributions side by side - you can see that the distribution of weekly wages for Treated is different and higher than for Controls.
Now scroll to the Refutation / validation section, presented as a table with an "Estimate valid?" column telling you, at a glance, whether each test supports or undermines the result. Causal Wizard's validation tests are quite strict, and it is common for some of these tests to fail - look especially closely at those.
The remaining sections explain the assumptions made, the modelling process, and document the Causal Diagram you provided.
Let's explore what would have happened if we didn't consider intelligence - perhaps because we wonder whether it really does cause an increase in education, or wages. We now think it's irrelevant to everything.
It's often useful to model several different Causal Diagrams to answer questions about possible confounding. Let's modify this Study and generate a new set of results.
We found that by removing these edges, the estimated effect of education on wages increased from 144 to 229. Which result is more correct? The answer depends on your prior assumptions, encoded in the causal diagram.
This shows how important your domain knowledge is, in the form of the causal diagram, selection of data, and in the interpretation of the results. While Causal Wizard's notebooks will calculate these effects for you, your judgement and review is even more important. Review the results closely, and critically. Feel free to contact us if you want to discuss one of your results.
Tip: You may also want to experiment with removing only the edge between IQ and Education, and allowing IQ to still affect wage. What happens to the estimated effect of education on wages?