# eziokwuche/nc-campaign-analysis architecture

> Architecture diagram of the GitHub repository eziokwuche/nc-campaign-analysis, 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/eziokwuche/nc-campaign-analysis
- Repository: https://github.com/eziokwuche/nc-campaign-analysis

## Overview

This repository is a notebook-based exploratory analysis of North Carolina campaign finance records, examining whether campaign spending predicts electoral outcomes. The documented workflow covers financial-data cleaning, exploratory visualizations, and hypothesis testing, with the polished notebook presenting the complete analysis and conclusions. Supporting notebooks capture earlier exploration, assignment work, and a methodological reflection. The README is the only available evidence here; notebook contents and direct runtime relationships were not inspected, so the graph shows documented scope rather than inferred code-level calls.

Main entry points: [`Final_Notebook.ipynb`](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Final_Notebook.ipynb) (Final Analysis), [`Hypothesis_Assignment.ipynb`](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Hypothesis_Assignment.ipynb) (Hypothesis Testing), [`Draft_Notebook.ipynb`](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Draft_Notebook.ipynb) (Early Exploration), [`Outline_Notebook.ipynb`](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Outline_Notebook.ipynb) (Project Outline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Campaign Analysis"]
  node_pipeline["Final Analysis"]
  node_cleaning["Data Cleaning"]
  node_eda["EDA Visualizations"]
  node_hypothesis["Hypothesis Testing"]
  node_conclusions["Final Conclusions"]
end

subgraph group_support["Project Notebooks"]
  node_drafts["Early Exploration"]
  node_outline["Project Outline"]
  node_reflection["Methods Reflection"]
end

node_analyst(("Analyst"))
node_records["Disclosure CSVs"]

node_analyst -->|"opens"| node_pipeline
node_analyst -->|"opens"| node_hypothesis
node_analyst -->|"explores in"| node_drafts
node_analyst -->|"plans in"| node_outline
node_analyst -->|"reflects in"| node_reflection
node_records -->|"ingests"| node_cleaning
node_pipeline -->|"includes"| node_cleaning
node_pipeline -->|"includes"| node_eda
node_pipeline -->|"presents"| node_conclusions
node_hypothesis -->|"tests"| node_hypothesis

click node_pipeline "https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Final_Notebook.ipynb"
click node_cleaning "https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Final_Notebook.ipynb"
click node_eda "https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Final_Notebook.ipynb"
click node_hypothesis "https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Hypothesis_Assignment.ipynb"
click node_conclusions "https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Final_Notebook.ipynb"
click node_drafts "https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Draft_Notebook.ipynb"
click node_outline "https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Outline_Notebook.ipynb"
click node_reflection "https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Data_Sensemaking_Reflection.ipynb"

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_pipeline,node_cleaning,node_eda,node_hypothesis,node_conclusions toneBlue
class node_drafts,node_outline,node_reflection toneAmber
class node_analyst,node_records toneIndigo
```

## Components

### Campaign Analysis

- [Final Analysis](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Final_Notebook.ipynb): `Final_Notebook.ipynb`
- [Data Cleaning](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Final_Notebook.ipynb): `Final_Notebook.ipynb`
- [EDA Visualizations](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Final_Notebook.ipynb): `Final_Notebook.ipynb`
- [Hypothesis Testing](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Hypothesis_Assignment.ipynb): `Hypothesis_Assignment.ipynb`
- [Final Conclusions](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Final_Notebook.ipynb): `Final_Notebook.ipynb`

### Project Notebooks

- [Early Exploration](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Draft_Notebook.ipynb): `Draft_Notebook.ipynb`
- [Project Outline](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Outline_Notebook.ipynb): `Outline_Notebook.ipynb`
- [Methods Reflection](https://github.com/eziokwuche/nc-campaign-analysis/blob/main/Data_Sensemaking_Reflection.ipynb): `Data_Sensemaking_Reflection.ipynb`

### Other components

- **Analyst**
- **Disclosure CSVs**

## Connections

- Analyst → Final Analysis: opens (evidence: `README.md`)
- Analyst → Hypothesis Testing: opens (evidence: `README.md`)
- Analyst → Early Exploration: explores in (evidence: `README.md`)
- Analyst → Project Outline: plans in (evidence: `README.md`)
- Analyst → Methods Reflection: reflects in (evidence: `README.md`)
- Disclosure CSVs → Data Cleaning: ingests (evidence: `README.md`)
- Final Analysis → Data Cleaning: includes (evidence: `README.md`)
- Final Analysis → EDA Visualizations: includes (evidence: `README.md`)
- Final Analysis → Final Conclusions: presents (evidence: `README.md`)
- Hypothesis Testing → Hypothesis Testing: tests (evidence: `README.md`)
