# gedeck/practical-statistics-for-data-scientists architecture

> Architecture diagram of the GitHub repository gedeck/practical-statistics-for-data-scientists, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gedeck/practical-statistics-for-data-scientists
- Repository: https://github.com/gedeck/practical-statistics-for-data-scientists

## Overview

This repository accompanies *Practical Statistics for Data Scientists* (2nd edition): readers run chapter examples or notebooks in Python or R and inspect statistical analyses and visualizations. The main subject areas progress from exploration and sampling through experiments, regression, classification, machine learning, and unsupervised learning. Python code shares a data-directory helper and uses the repository’s datasets. The README documents online notebooks and Binder execution. Some R and notebook internals were not sampled, so their links are limited to documented capabilities.

Main entry points: [`data`](https://github.com/gedeck/practical-statistics-for-data-scientists/tree/master/data) (Example datasets), [`python/code/Chapter 1 - Exploratory Data Analysis.py`](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%201%20-%20Exploratory%20Data%20Analysis.py) (Exploratory analysis), [`python/code/Chapter 2 - Data and sampling distributions.py`](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%202%20-%20Data%20and%20sampling%20distributions.py) (Sampling distributions), [`python/code/Chapter 3 - Statistical Experiments and Significance Testing.py`](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%203%20-%20Statistical%20Experiments%20and%20Significance%20Testing.py) (Experiments and tests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_materials["Learning materials"]
  node_python_notebooks["Python notebooks"]
  node_r_notebooks["R notebooks"]
  node_r_chapters["R chapter examples"]
end

subgraph group_foundations["Exploration and inference"]
  node_python_eda["Exploratory analysis"]
  node_python_sampling["Sampling distributions"]
  node_python_experiments["Experiments and tests"]
end

subgraph group_models["Predictive modeling"]
  node_python_regression["Regression and prediction"]
  node_python_classification["Classification"]
  node_python_ml["Statistical machine learning"]
end

subgraph group_discovery["Unsupervised analysis"]
  node_python_unsupervised["Unsupervised learning"]
end

subgraph group_shared["Shared resources"]
  node_data_helper["Data directory helper<br/>[common.py]"]
  node_datasets[("Example datasets")]
end

node_reader(("Reader"))

node_reader -.->|"runs examples"| node_python_notebooks
node_reader -.->|"runs examples"| node_r_notebooks
node_reader -.->|"runs examples"| node_r_chapters
node_reader -.->|"runs examples"| node_python_eda
node_reader -.->|"runs examples"| node_python_sampling
node_reader -.->|"runs examples"| node_python_experiments
node_reader -.->|"runs examples"| node_python_regression
node_reader -.->|"runs examples"| node_python_classification
node_reader -.->|"runs examples"| node_python_ml
node_reader -.->|"runs examples"| node_python_unsupervised
node_python_eda -->|"locates data"| node_data_helper
node_python_sampling -->|"locates data"| node_data_helper
node_python_eda -->|"reads datasets"| node_datasets
node_python_sampling -->|"reads datasets"| node_datasets
node_python_experiments -->|"reads datasets"| node_datasets
node_python_regression -->|"reads datasets"| node_datasets
node_python_classification -->|"reads datasets"| node_datasets
node_python_ml -->|"reads datasets"| node_datasets
node_python_unsupervised -.->|"reads datasets"| node_datasets

click node_python_notebooks "https://github.com/gedeck/practical-statistics-for-data-scientists/tree/master/python/notebooks"
click node_r_notebooks "https://github.com/gedeck/practical-statistics-for-data-scientists/tree/master/R/notebooks"
click node_python_eda "https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%201%20-%20Exploratory%20Data%20Analysis.py"
click node_python_sampling "https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%202%20-%20Data%20and%20sampling%20distributions.py"
click node_python_experiments "https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%203%20-%20Statistical%20Experiments%20and%20Significance%20Testing.py"
click node_python_regression "https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%204%20-%20Regression%20and%20Prediction.py"
click node_python_classification "https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%205%20-%20Classification.py"
click node_python_ml "https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%206%20-%20Statistical%20Machine%20Learning.py"
click node_python_unsupervised "https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%207%20-%20Unsupervised%20Learning.py"
click node_r_chapters "https://github.com/gedeck/practical-statistics-for-data-scientists/tree/master/R/code"
click node_data_helper "https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/common.py"
click node_datasets "https://github.com/gedeck/practical-statistics-for-data-scientists/tree/master/data"

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_python_notebooks,node_r_notebooks,node_r_chapters toneBlue
class node_python_eda,node_python_sampling,node_python_experiments toneAmber
class node_python_regression,node_python_classification,node_python_ml toneMint
class node_python_unsupervised toneRose
class node_data_helper,node_datasets,node_reader toneIndigo
```

## Components

### Learning materials

- [Python notebooks](https://github.com/gedeck/practical-statistics-for-data-scientists/tree/master/python/notebooks): `python/notebooks`
- [R notebooks](https://github.com/gedeck/practical-statistics-for-data-scientists/tree/master/R/notebooks): `R/notebooks`
- [R chapter examples](https://github.com/gedeck/practical-statistics-for-data-scientists/tree/master/R/code): `R/code`

### Exploration and inference

- [Exploratory analysis](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%201%20-%20Exploratory%20Data%20Analysis.py): `python/code/Chapter 1 - Exploratory Data Analysis.py`
- [Sampling distributions](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%202%20-%20Data%20and%20sampling%20distributions.py): `python/code/Chapter 2 - Data and sampling distributions.py`
- [Experiments and tests](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%203%20-%20Statistical%20Experiments%20and%20Significance%20Testing.py): `python/code/Chapter 3 - Statistical Experiments and Significance Testing.py`

### Predictive modeling

- [Regression and prediction](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%204%20-%20Regression%20and%20Prediction.py): `python/code/Chapter 4 - Regression and Prediction.py`
- [Classification](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%205%20-%20Classification.py): `python/code/Chapter 5 - Classification.py`
- [Statistical machine learning](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%206%20-%20Statistical%20Machine%20Learning.py): `python/code/Chapter 6 - Statistical Machine Learning.py`

### Unsupervised analysis

- [Unsupervised learning](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/Chapter%207%20-%20Unsupervised%20Learning.py): `python/code/Chapter 7 - Unsupervised Learning.py`

### Shared resources

- [Data directory helper](https://github.com/gedeck/practical-statistics-for-data-scientists/blob/master/python/code/common.py): `python/code/common.py`
- [Example datasets](https://github.com/gedeck/practical-statistics-for-data-scientists/tree/master/data): `data`

### Other components

- **Reader**

## Connections

- Reader → Python notebooks: runs examples (evidence: `README.md`)
- Reader → R notebooks: runs examples (evidence: `README.md`)
- Reader → R chapter examples: runs examples (evidence: `README.md`)
- Reader → Exploratory analysis: runs examples (evidence: `README.md`)
- Reader → Sampling distributions: runs examples (evidence: `README.md`)
- Reader → Experiments and tests: runs examples (evidence: `README.md`)
- Reader → Regression and prediction: runs examples (evidence: `README.md`)
- Reader → Classification: runs examples (evidence: `README.md`)
- Reader → Statistical machine learning: runs examples (evidence: `README.md`)
- Reader → Unsupervised learning: runs examples (evidence: `README.md`)
- Exploratory analysis → Data directory helper: locates data (evidence: `python/code/Chapter 1 - Exploratory Data Analysis.py`)
- Sampling distributions → Data directory helper: locates data (evidence: `python/code/Chapter 2 - Data and sampling distributions.py`)
- Exploratory analysis → Example datasets: reads datasets (evidence: `python/code/Chapter 1 - Exploratory Data Analysis.py`)
- Sampling distributions → Example datasets: reads datasets (evidence: `python/code/Chapter 2 - Data and sampling distributions.py`)
- Experiments and tests → Example datasets: reads datasets (evidence: `python/code/Chapter 3 - Statistical Experiments and Significance Testing.py`)
- Regression and prediction → Example datasets: reads datasets (evidence: `python/code/Chapter 4 - Regression and Prediction.py`)
- Classification → Example datasets: reads datasets (evidence: `python/code/Chapter 5 - Classification.py`)
- Statistical machine learning → Example datasets: reads datasets (evidence: `python/code/Chapter 6 - Statistical Machine Learning.py`)
- Unsupervised learning → Example datasets: reads datasets
