# enchi521-ops/econometrics-notes architecture

> Architecture diagram of the GitHub repository enchi521-ops/econometrics-notes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/enchi521-ops/econometrics-notes
- Repository: https://github.com/enchi521-ops/econometrics-notes

## Overview

Ch06-07 is a small set of Python companion scripts for econometrics review notes: one replicates textbook regressions and prints summaries, while the other generates explanatory figures. The scripts independently load Wooldridge datasets and use statsmodels; the figure script also uses NumPy and Matplotlib. The excerpts show examples spanning model fit, dummy variables, interactions, Chow tests, linear probability models, and program evaluation. README content was not provided, so the map reflects only the sampled source; Ch15 has no source files shown.

Main entry points: [`Ch06-07/code/make_figures.py`](https://github.com/enchi521-ops/econometrics-notes/blob/main/Ch06-07/code/make_figures.py) (Generate figures), [`Ch06-07/code/replicate.py`](https://github.com/enchi521-ops/econometrics-notes/blob/main/Ch06-07/code/replicate.py) (Replicate examples), [`Ch06-07/figures`](https://github.com/enchi521-ops/econometrics-notes/tree/main/Ch06-07/figures) (Generated plots)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Econometric examples"]
  node_replicate["Replicate examples<br/>[replicate.py]"]
  node_printed["Printed summaries"]
end

subgraph group_visuals["Explanatory figures"]
  node_figuregen["Generate figures<br/>[make_figures.py]"]
  node_figures["Generated plots"]
end

node_user(("Learner"))
node_wooldridge[("Wooldridge datasets")]
node_statsmodels["Statsmodels"]
node_numpy["NumPy"]
node_matplotlib["Matplotlib"]

node_user -->|"runs"| node_replicate
node_user -->|"runs"| node_figuregen
node_replicate -->|"loads datasets"| node_wooldridge
node_replicate -->|"fits models"| node_statsmodels
node_replicate -->|"prints results"| node_printed
node_figuregen -->|"loads datasets"| node_wooldridge
node_figuregen -->|"fits models"| node_statsmodels
node_figuregen -->|"uses arrays"| node_numpy
node_figuregen -->|"creates plots"| node_matplotlib
node_figuregen -->|"saves plots"| node_figures

click node_replicate "https://github.com/enchi521-ops/econometrics-notes/blob/main/Ch06-07/code/replicate.py"
click node_figuregen "https://github.com/enchi521-ops/econometrics-notes/blob/main/Ch06-07/code/make_figures.py"
click node_figures "https://github.com/enchi521-ops/econometrics-notes/tree/main/Ch06-07/figures"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_replicate,node_printed toneBlue
class node_figuregen,node_figures,node_wooldridge toneAmber
class node_user,node_statsmodels,node_numpy,node_matplotlib toneIndigo
```

## Components

### Econometric examples

- [Replicate examples](https://github.com/enchi521-ops/econometrics-notes/blob/main/Ch06-07/code/replicate.py): `Ch06-07/code/replicate.py`
- **Printed summaries**

### Explanatory figures

- [Generate figures](https://github.com/enchi521-ops/econometrics-notes/blob/main/Ch06-07/code/make_figures.py): `Ch06-07/code/make_figures.py`
- [Generated plots](https://github.com/enchi521-ops/econometrics-notes/tree/main/Ch06-07/figures): `Ch06-07/figures`

### Other components

- **Learner**
- **Wooldridge datasets**
- **Statsmodels**
- **NumPy**
- **Matplotlib**

## Connections

- Learner → Replicate examples: runs (evidence: `Ch06-07/code/replicate.py`)
- Learner → Generate figures: runs (evidence: `Ch06-07/code/make_figures.py`)
- Replicate examples → Wooldridge datasets: loads datasets (evidence: `Ch06-07/code/replicate.py`)
- Replicate examples → Statsmodels: fits models (evidence: `Ch06-07/code/replicate.py`)
- Replicate examples → Printed summaries: prints results (evidence: `Ch06-07/code/replicate.py`)
- Generate figures → Wooldridge datasets: loads datasets (evidence: `Ch06-07/code/make_figures.py`)
- Generate figures → Statsmodels: fits models (evidence: `Ch06-07/code/make_figures.py`)
- Generate figures → NumPy: uses arrays (evidence: `Ch06-07/code/make_figures.py`)
- Generate figures → Matplotlib: creates plots (evidence: `Ch06-07/code/make_figures.py`)
- Generate figures → Generated plots: saves plots (evidence: `Ch06-07/code/make_figures.py`)
