Technical requirements:
Submit exactly one Python function.
The function must be self-contained and use only permitted standard/scientific modules.
Do not use type annotations.
The function must return an io.BytesIO object containing the output file.
Do not make external network calls.
Do not write to the filesystem.
Stay within resource limits: runtime ≤ 10 minutes, memory/CPU within 2 vCPU / 8 GB, and output file ≤ 10 MB.
Disclosure requirements:
Do not output individual-level records or values.
Do not use MIN or MAX queries.
Do not create scatter plots or other plots where each mark corresponds to one individual.
Round numeric outputs to reasonable precision, e.g. 3 significant figures.
Validity requirements:
Output must be publication-ready.
Include only information necessary to answer the research question.
The analysis must be relevant to the project description.