# Discrete Dependent Variables
# Module 7 - Discrete Dependent Variables
# Dataset: MODULE7_DISCRETE_OUTCOME_SYNTHETIC

# Discrete Dependent Variables
#
# Module 7 notebook lab. This notebook uses an original Ceteris Lab synthetic teaching dataset and does not report real empirical findings.

# Learning goal
# Describe count outcomes and explain why discrete models may be needed later.
#
# Dataset: MODULE7_DISCRETE_OUTCOME_SYNTHETIC. Variables: children, education, age, urban.

# %% Cell 3
import pandas as pd

df = pd.read_csv("/data/module-7/module7_discrete_outcome_synthetic.csv")
print(df.groupby("urban")["children"].mean().round(2))
print("Children is a count outcome; an OLS mean model can be descriptive, but discrete-outcome models may be better for advanced work.")

# Reflection
# Write two sentences: one coefficient, group difference, or predicted-probability interpretation, and one limitation or coding choice that matters.
