# Technical Document Extraction: Transition Probabilities Heatmap
## 1. Document Overview
This image is a **Heatmap** titled **"Transition Probabilities Heatmap"**. It visualizes the conditional probability of a "Next Action" (x-axis) occurring given a sequence of "Previous 2 Actions" (y-axis). The data represents state transitions in a computational or workflow environment (likely software development or file management).
## 2. Component Isolation
### Header
* **Title:** Transition Probabilities Heatmap
### Main Chart Area
* **Type:** Heatmap / Transition Matrix.
* **Y-Axis Label:** Previous 2 Actions.
* **X-Axis Label:** Next Action.
* **Color Scale (Legend):** Located on the far right. A vertical gradient bar ranging from **0.0 (White)** to **1.0 (Dark Blue)**.
* **Right-side Margin:** Contains a column of integers representing the total count (N) for each row's history.
### Footer
* Contains the X-axis labels rotated at a 45-degree angle.
---
## 3. Data Extraction
### Axis Categories
**X-Axis (Next Action):**
1. `<END>`
2. `create`
3. `edit`
4. `exit_cost`
5. `find_file`
6. `goto`
7. `open`
8. `pytest`
9. `python`
10. `scroll_down`
11. `scroll_up`
12. `search_dir`
13. `search_file`
14. `submit`
**Y-Axis (Previous 2 Actions) & Row Totals:**
1. `<START>, create` (1384)
2. `create, edit` (1658)
3. `edit (2x)` (1880)
4. `edit, python` (1278)
5. `find_file, open` (7777)
6. `goto, edit` (1312)
7. `open, edit` (1438)
8. `open, scroll_down` (2217)
9. `open, search_file` (4298)
10. `python, edit` (2074)
11. `python, find_file` (825)
12. `rm, submit` (1169)
13. `scroll_down (2x)` (662)
14. `search_dir, open` (605)
15. `search_file, goto` (2334)
---
## 4. Transition Probability Matrix (Reconstructed Table)
Values represent the probability $P(\text{Next Action} | \text{Previous 2 Actions})$.
| Previous 2 Actions | <END> | create | edit | exit_cost | find_file | goto | open | pytest | python | scroll_down | scroll_up | search_dir | search_file | submit |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **<START>, create** | 0.00 | 0.00 | **1.00** | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| **create, edit** | 0.00 | 0.09 | 0.12 | 0.00 | 0.01 | 0.00 | 0.01 | 0.01 | **0.73** | 0.00 | 0.00 | 0.02 | 0.00 | 0.01 |
| **edit (2x)** | 0.00 | 0.02 | **0.72** | 0.03 | 0.00 | 0.01 | 0.02 | 0.00 | 0.15 | 0.00 | 0.00 | 0.01 | 0.01 | 0.03 |
| **edit, python** | 0.00 | 0.02 | **0.48** | 0.01 | 0.15 | 0.03 | 0.12 | 0.00 | 0.01 | 0.00 | 0.00 | 0.12 | 0.01 | 0.04 |
| **find_file, open** | 0.00 | 0.02 | 0.19 | 0.00 | 0.04 | 0.08 | 0.04 | 0.00 | 0.00 | 0.18 | 0.01 | 0.01 | **0.42** | 0.00 |
| **goto, edit** | 0.00 | 0.06 | **0.38** | 0.01 | 0.01 | 0.05 | 0.03 | 0.00 | **0.31** | 0.01 | 0.01 | 0.01 | 0.02 | 0.10 |
| **open, edit** | 0.00 | 0.06 | **0.32** | 0.01 | 0.02 | 0.01 | 0.08 | 0.01 | **0.41** | 0.00 | 0.00 | 0.02 | 0.01 | 0.06 |
| **open, scroll_down** | 0.00 | 0.00 | 0.19 | 0.01 | 0.02 | 0.05 | 0.07 | 0.00 | 0.00 | **0.57** | 0.02 | 0.02 | 0.03 | 0.00 |
| **open, search_file** | 0.00 | 0.00 | 0.02 | 0.01 | 0.02 | **0.74** | 0.05 | 0.00 | 0.01 | 0.00 | 0.00 | 0.02 | 0.11 | 0.00 |
| **python, edit** | 0.00 | 0.00 | **0.34** | 0.01 | 0.01 | 0.00 | 0.05 | 0.00 | **0.57** | 0.00 | 0.00 | 0.01 | 0.00 | 0.01 |
| **python, find_file** | 0.00 | 0.00 | 0.02 | 0.00 | 0.18 | 0.00 | **0.70** | 0.00 | 0.00 | 0.00 | 0.00 | 0.09 | 0.00 | 0.00 |
| **rm, submit** | **1.00** | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| **scroll_down (2x)** | 0.00 | 0.01 | 0.10 | 0.03 | 0.02 | 0.05 | 0.04 | 0.00 | 0.00 | **0.66** | 0.01 | 0.02 | 0.04 | 0.01 |
| **search_dir, open** | 0.00 | 0.01 | 0.11 | 0.01 | 0.01 | 0.04 | 0.05 | 0.00 | 0.00 | 0.23 | 0.00 | 0.02 | **0.53** | 0.00 |
| **search_file, goto** | 0.00 | 0.01 | **0.36** | 0.01 | 0.02 | 0.11 | 0.05 | 0.00 | 0.00 | 0.17 | 0.04 | 0.02 | 0.19 | 0.01 |
---
## 5. Key Trends and Observations
### Deterministic Transitions (Probability = 1.00)
* **Start Sequence:** After `<START>, create`, the next action is always `edit` (1.00).
* **End Sequence:** After `rm, submit`, the next action is always `<END>` (1.00).
### High Probability Clusters (Strong Trends)
* **Editing Loops:** If the previous actions were `edit (2x)`, there is a 0.72 probability the next action is `edit` again, suggesting a repetitive task.
* **Navigation Patterns:**
* `open, search_file` is followed by `goto` with a 0.74 probability.
* `python, find_file` is followed by `open` with a 0.70 probability.
* **Execution Patterns:**
* `create, edit` is followed by `python` (0.73), likely indicating a "create-edit-run" cycle.
* `python, edit` is followed by `python` (0.57), indicating a "fix-and-run" cycle.
### Low Probability / Sparse Areas
* The `<END>` action is almost never reached except through the `rm, submit` sequence.
* The `pytest` action has extremely low transition probabilities across all observed histories (mostly 0.00 or 0.01), suggesting it is a rare or specific terminal action not well-captured by these common histories.
* The `exit_cost` and `scroll_up` actions also show very low engagement across the board.