AI for Health Research Workshop Series · Yale School of Public Health, Data Science and Data Equity
Watch: Large Language Models explained briefly, 3Blue1Brown.
| Concept | Meaning |
|---|---|
| Context window | How many tokens the model can see at once. Model pickers often show it in the name: “Opus 5.5 (1M)” means a 1-million-token window. |
| Temperature | Randomness of the output |
| Stochasticity | The same prompt can give different answers |
| No memory | Each conversation starts empty unless you supply context |
“Good old-fashioned AI” treats intelligence as symbol manipulation (Haugeland 1985). The approach encodes human knowledge as rules and reasons over them.
| System | Capability | Limitation |
|---|---|---|
| ELIZA (1966) | Simulated a therapist by pattern matching | No understanding |
| SHRDLU (1971) | Understood language about blocks on a table | Worked only in a toy world |
| Expert systems (1980s) | Encoded specialist rules | Brittle and costly to maintain |
| Era | Promise | Outcome |
|---|---|---|
| 1960s | AI within a generation | Two AI winters |
| 1980s | Expert systems replace professionals | Collapsed under brittleness |
| 2010s | Self-driving cars by 2020 | Substantial progress, years late |
| 2020s | General AI is imminent | Unknown |
| Task | Performance | Source |
|---|---|---|
| Code generation (HumanEval) | 80% (GPT-4) | Ni et al. (2024) |
| Grade-school math (GSM8k) | 92% | Fu et al. (2023) |
| Undergraduate statistics (StatEval) | 87% (GPT-5) | Lu et al. (2025) |
| Task | Performance | Source |
|---|---|---|
| Research-level statistics | ~58% (best closed model) | Lu et al. (2025) |
| Expert-level questions (HLE) | 3–13% | Phan et al. (2025) |
| Code completion with buggy context | 1–3% | Dinh et al. (2023) |
| Fixing bugs in AI agent software | 4% (best agent) | Islam et al. (2026) |
Regardless of how these results hold up, LLMs are clearly capable of working on mathematical and statistical problems. The results also show that their work needs human review and judgment before we can trust it.
My philosophy: potential outcomes.
| Harness | Notes |
|---|---|
| Claude Code | Anthropic’s coding agent |
| Codex | OpenAI’s coding agent |
| Posit AI | Posit’s assistant for data science in RStudio and Positron |
| OpenCode | Open source; works with many model providers |
| Pi | Open source and minimal |
Code can move across computing environments. Protected data cannot.
Definitions depend on law and institutional policy. Common categories:
An AI workflow can send more than the prompt:
.gitignore: data never enters the repository.| Simulated data | Schema and aggregates | |
|---|---|---|
| The agent sees | Reviewed metadata and simulated data | The data structure and approved aggregate results |
| The agent can run code | Yes, on simulated data | No |
| Results come back as | Nothing; you run the final code | Reviewed aggregates |
| Works best with | Project-specific files | Standardized data models such as OMOP |
Metadata derives from the protected data. Review it before an agent sees it, and keep it out of git.
Usually acceptable when allowed:
Treat with care:
generate-sim-data.R
synthpop (Nowok et al. 2016)
person, condition_occurrence, and measurement, and standard concept IDs.inputs/private/raw/: protected data (public NHANES data for this exercise).inputs/private/simulated/: the same path on both machines. Generate and review on the secure machine, then manually transfer the approved file to the AI machine.inputs/metadata/: reviewed metadata. Git ignores metadata and both copies of simulated data..claude/settings.json: Claude Code deny rules and sandbox.protected-data skill and AGENTS.md: read only the reviewed simulated copy; stay out of raw data.data_dir setting that a person changes from "simulated" to "raw" without AI.AI-Powered Coding and Data Analysis