{
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "# Discrete Dependent Variables\n",
        "\n",
        "Module 7 notebook lab. This notebook uses an original Ceteris Lab synthetic teaching dataset and does not report real empirical findings.\n"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Learning goal\n",
        "Describe count outcomes and explain why discrete models may be needed later.\n",
        "\n",
        "Dataset: MODULE7_DISCRETE_OUTCOME_SYNTHETIC. Variables: children, education, age, urban.\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {},
      "outputs": [],
      "source": [
        "import pandas as pd\n",
        "\n",
        "df = pd.read_csv(\"/data/module-7/module7_discrete_outcome_synthetic.csv\")\n",
        "print(df.groupby(\"urban\")[\"children\"].mean().round(2))\n",
        "print(\"Children is a count outcome; an OLS mean model can be descriptive, but discrete-outcome models may be better for advanced work.\")\n"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Reflection\n",
        "Write two sentences: one coefficient, group difference, or predicted-probability interpretation, and one limitation or coding choice that matters.\n"
      ]
    }
  ],
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "name": "python",
      "version": "3.11"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 5
}