# jiwooroh/beyond-demographics-kr architecture

> Architecture diagram of the GitHub repository jiwooroh/beyond-demographics-kr, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jiwooroh/beyond-demographics-kr
- Repository: https://github.com/jiwooroh/beyond-demographics-kr

## Overview

This repository is a research workflow studying psychographic clustering of synthetic Korean personas. Its documented path runs from exploratory analysis through behavior-based and values-based clustering to a bias-propagation simulator. The standalone Section 6 script additionally compares simulated ratings with real ratings and reports statistical checks. Notebook implementation details were not sampled, so the notebook-stage links reflect the README pipeline; no connection to the plotting theme helper is asserted.

Main entry points: [`notebook/01_korean-persona-nlp-analysis.ipynb`](https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/01_korean-persona-nlp-analysis.ipynb) (Persona EDA), [`notebook/02_behavioral-clustering.ipynb`](https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/02_behavioral-clustering.ipynb) (Behavior Clustering), [`notebook/03_values-based-clustering.ipynb`](https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/03_values-based-clustering.ipynb) (Values Clustering), [`run_s6.py`](https://github.com/jiwooroh/beyond-demographics-kr/blob/main/run_s6.py) (Rating Validation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_persona_analysis["Persona Analysis"]
  node_eda["Persona EDA"]
end

subgraph group_clustering["Psychographic Clustering"]
  node_behavior_clusters["Behavior Clustering"]
  node_values_clusters["Values Clustering"]
end

subgraph group_simulation["Simulation &amp; Validation"]
  node_bias_simulator["Bias Simulator<br/>[04_simulator.ipynb]"]
  node_section6_validation["Rating Validation<br/>[run_s6.py]"]
end

subgraph group_visualization["Visualization Support"]
  node_theme_helpers["Plotting Theme<br/>[nemotron_theme.py]"]
end

node_persona_data[("Synthetic Persona Dataset")]
node_anthropic_api{{"Anthropic API"}}

node_persona_data -->|"analyzes"| node_eda
node_eda -->|"feeds"| node_behavior_clusters
node_behavior_clusters -->|"feeds"| node_values_clusters
node_values_clusters -->|"feeds"| node_bias_simulator
node_section6_validation -->|"requests simulations"| node_anthropic_api

click node_eda "https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/01_korean-persona-nlp-analysis.ipynb"
click node_behavior_clusters "https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/02_behavioral-clustering.ipynb"
click node_values_clusters "https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/03_values-based-clustering.ipynb"
click node_bias_simulator "https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/04_simulator.ipynb"
click node_section6_validation "https://github.com/jiwooroh/beyond-demographics-kr/blob/main/run_s6.py"
click node_theme_helpers "https://github.com/jiwooroh/beyond-demographics-kr/blob/main/src/nemotron_theme.py"

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_eda toneBlue
class node_behavior_clusters,node_values_clusters,node_persona_data toneAmber
class node_bias_simulator,node_section6_validation,node_anthropic_api toneMint
class node_theme_helpers toneRose
```

## Components

### Persona Analysis

- [Persona EDA](https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/01_korean-persona-nlp-analysis.ipynb): `notebook/01_korean-persona-nlp-analysis.ipynb`

### Psychographic Clustering

- [Behavior Clustering](https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/02_behavioral-clustering.ipynb): `notebook/02_behavioral-clustering.ipynb`
- [Values Clustering](https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/03_values-based-clustering.ipynb): `notebook/03_values-based-clustering.ipynb`

### Simulation & Validation

- [Bias Simulator](https://github.com/jiwooroh/beyond-demographics-kr/blob/main/notebook/04_simulator.ipynb): `notebook/04_simulator.ipynb`
- [Rating Validation](https://github.com/jiwooroh/beyond-demographics-kr/blob/main/run_s6.py): `run_s6.py`

### Visualization Support

- [Plotting Theme](https://github.com/jiwooroh/beyond-demographics-kr/blob/main/src/nemotron_theme.py): `src/nemotron_theme.py`

### Other components

- **Synthetic Persona Dataset**
- **Anthropic API**

## Connections

- Synthetic Persona Dataset → Persona EDA: analyzes (evidence: `README.md`)
- Persona EDA → Behavior Clustering: feeds (evidence: `README.md`)
- Behavior Clustering → Values Clustering: feeds (evidence: `README.md`)
- Values Clustering → Bias Simulator: feeds (evidence: `README.md`)
- Rating Validation → Anthropic API: requests simulations (evidence: `run_s6.py`)
