{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Making Potential Outcomes Concrete\n", "\n", "In this exercise, I will describe a simple data science project, and your job is to map the elements of that project onto the Potential Outcomes Framework. \n", "\n", "## The Study\n", "\n", "You have been approached by the Duke Office of Student Wellbeing. They are worried that students are spending too much time sitting in front of their computers and not being active, leading to an increase in student Body Mass Index (BMI) scores (a measure of whether someone's weight is more or less than one might expect given their height) which might, in extreme cases, have negative health consequences. \n", "\n", "One policy they're considering implementing to address this issue is to replace all sodas in the dining halls with diet (sugar-free) sodas. But they aren't sure if this will actually make a difference.\n", "\n", "To help them decide, they wanted to measure the effect of drinking diet soda on BMI. They collected data on all Duke students, and compared student BMI scores for students who drink diet soda (at least one can a day) with those who do not.\n", "\n", "They found that students who drink diet soda actually have higher BMIs (suggesting they may actually be *less* healthy). They interprete this as evidence that diet soda is making students *less* healthy, so they changed their plans, and instead of removing sugary soda, they've decided to remove all *diet* soda from the campus. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Mapping to the Potential Outcomes Framework" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "In words, describe exactly what quantities in this study context would correspond to the different components of the Potential Outcomes Framework we've been studying. \n", "\n", "**When defining these, remember to define the *outcome* being measured *and the population* for whom the outcome is being measured.** Every answer should include both these things.\n", "\n", "As you do so, avoid using terms like \"treatment\", \"control group\", or \"potential outcome\". The goal of this exercise is to move from the abstract conceptual derivations we've read to the specifics of this study. For example, I've put in an answer to Question 1 below:" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "**1**: $E(Y^0_i)$\n", "\n", "> The average BMI of all Duke students if no one drank diet soda. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**2**: $E(Y^1_i)$\n", "\n", "```\n", "\n", "\n", "\n", "\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**3**: $E(Y^1_i) - E(Y^0_i)$\n", "\n", "```\n", "\n", "\n", "\n", "\n", "\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**4**: $E(Y^1_i| D_i=1)$\n", "\n", "```\n", "\n", "\n", "\n", "\n", "\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**5**: $E(Y^0_i| D_i=0)$\n", "\n", "```\n", "\n", "\n", "\n", "\n", "\n", "```" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "**6**: $E(Y^1_i|D_i=0)$\n", "\n", "```\n", "\n", "\n", "\n", "\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**7**: $E(Y^0_i| D_i=1)$\n", "\n", "\n", "```\n", "\n", "\n", "\n", "\n", "\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**8**: $E(Y^1_i| D_i=0) - E(Y^0_i|D_i=0)$\n", "\n", "```\n", "\n", "\n", "\n", "\n", "\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**9**: $E(Y^0_i| D_i=1) - E(Y^0_i|D_i=0)$\n", "\n", "```\n", "\n", "\n", "\n", "\n", "\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Observability\n", "\n", "**10**: Now, which of the quantities above can be directly observed?\n", "\n", "```\n", "\n", "\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Causal Inference" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "In order for the difference in BMIs found in the report—that those who drink diet soda have higher BMIs—to be a true estimate of the average effect of drinking diet soda, we know that it must be the case that:\n", "\n", "$E(Y^0_i| D_i=1) - E(Y^0_i| D_i=0) = 0$\n", "\n", "and \n", "\n", "$E(Y^1_i| D_i=0) - E(Y^0_i| D_i=0) = E(Y^1_i| D_i=1) - E(Y^0_i | D_i=1)$. \n", "\n", "In the context of this study, what do those two conditions mean *in plain English*? \n", "\n", "As above, avoid using abstract terms (\"treatment\", \"baseline\", etc.) and try and be as concrete as possible. \n", "\n", "**11** $E(Y^0_i| D_i=1) - E(Y^0_i| D_i=0) = 0$:\n", "\n", "\n", "```\n", "\n", "\n", "\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**12** $E(Y^1_i| D_i=0) - E(Y^0_i| D_i=0) = E(Y^1_i| D_i=1) - E(Y^0_i| D_i=1)$:\n", "\n", "\n", "```\n", "\n", "\n", "\n", "```" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "Now, for each of the conditions above, please give one reason—*in plain English*—why those conditions may **not** be met in the context of this study? \n", "\n", "As you do so, be specific! Tell me a story about why *in the case of this study* you think one of these conditions may hold. One can always say things like \"people in the two groups may have been different\", but I want a specific, *affirmative* reason you think they might have been different in a way that meets the conditions.\n", "\n", "**13** It may be the case that $E(Y^0_i| D_i=1) - E(Y^0_i| D_i=0) \\neq 0$ because...:\n", "\n", "\n", "```\n", "\n", "\n", "\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**14** It may be the case that $E(Y^1_i| D_i=0) - E(Y^0_i|D_i=0) \\neq E(Y^1_i| D_i=1) - E(Y^0_i| D_i=1)$ because...:\n", "\n", "\n", "```\n", "\n", "\n", "\n", "```" ] } ], "metadata": { "kernelspec": { "display_name": "base", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.8 | packaged by conda-forge | (main, Nov 22 2022, 08:25:29) [Clang 14.0.6 ]" }, "vscode": { "interpreter": { "hash": "718fed28bf9f8c7851519acf2fb923cd655120b36de3b67253eeb0428bd33d2d" } } }, "nbformat": 4, "nbformat_minor": 4 }