# Technical Document Extraction: Transition Probabilities Heatmap
## 1. Document Overview
This image is a technical heatmap titled **"Transition Probabilities Heatmap"**. It visualizes the conditional probability of a "Next Action" (x-axis) occurring given a sequence of the "Previous 4 Actions" (y-axis). The data represents state transitions in a software development or command-line environment (likely involving Python coding and file navigation).
## 2. Component Isolation
### A. Header
* **Title:** Transition Probabilities Heatmap
### B. Main Chart (Heatmap Grid)
* **Y-Axis Label:** Previous 4 Actions
* **X-Axis Label:** Next Action
* **Data Representation:** A grid of 15 rows by 14 columns. Each cell contains a numerical probability value ranging from 0.00 to 1.00.
* **Color Encoding:** A sequential blue color scale where white/light blue represents low probability (0.0) and dark blue represents high probability (1.0).
* **Right-side Margin:** A column of integers representing the total count (sample size) for each row's sequence.
### C. Legend (Spatial Grounding: [x=right, y=center])
* **Type:** Vertical Color Bar.
* **Scale:** 0.0 (White) to 1.0 (Dark Blue), with markers at 0.0, 0.2, 0.4, 0.6, 0.8, and 1.0.
---
## 3. Data Extraction
### X-Axis Categories (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 Categories (Previous 4 Actions) and Row Data
The following table reconstructs the heatmap data. Each row represents a sequence of 4 actions, followed by the probability of the next action, and the total count of that sequence.
| Previous 4 Actions | <END> | create | edit | exit_cost | find_file | goto | open | pytest | python | scroll_down | scroll_up | search_dir | search_file | submit | Count |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| `<START>`, create, edit, python | 0.00 | 0.02 | 0.32 | 0.00 | 0.36 | 0.00 | 0.06 | 0.01 | 0.00 | 0.00 | 0.00 | 0.24 | 0.00 | 0.00 | 581 |
| create, edit, python, edit | 0.00 | 0.00 | 0.35 | 0.00 | 0.01 | 0.00 | 0.02 | 0.00 | 0.60 | 0.00 | 0.00 | 0.01 | 0.00 | 0.00 | 474 |
| create, edit, python, find_file | 0.00 | 0.00 | 0.01 | 0.00 | 0.17 | 0.00 | 0.74 | 0.00 | 0.00 | 0.00 | 0.00 | 0.08 | 0.00 | 0.00 | 547 |
| edit (2x), python, edit | 0.00 | 0.01 | 0.44 | 0.02 | 0.01 | 0.00 | 0.04 | 0.00 | 0.44 | 0.00 | 0.00 | 0.01 | 0.00 | 0.02 | 693 |
| edit (3x), python | 0.00 | 0.02 | 0.58 | 0.02 | 0.06 | 0.04 | 0.11 | 0.00 | 0.00 | 0.01 | 0.01 | 0.07 | 0.04 | 0.04 | 1123 |
| edit (4x) | 0.00 | 0.01 | 0.85 | 0.05 | 0.00 | 0.01 | 0.01 | 0.00 | 0.05 | 0.00 | 0.00 | 0.00 | 0.00 | 0.02 | 539 |
| edit, python, edit (2x) | 0.00 | 0.01 | 0.36 | 0.01 | 0.01 | 0.00 | 0.04 | 0.00 | 0.57 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 1059 |
| edit, python, edit, python | 0.00 | 0.01 | 0.64 | 0.01 | 0.12 | 0.01 | 0.07 | 0.00 | 0.00 | 0.00 | 0.00 | 0.09 | 0.00 | 0.03 | 679 |
| edit, python, find_file, open | 0.00 | 0.00 | 0.24 | 0.00 | 0.03 | 0.12 | 0.01 | 0.00 | 0.13 | 0.01 | 0.00 | 0.00 | 0.45 | 0.00 | 457 |
| edit, python, 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 | 419 |
| open, search_file, goto, edit | 0.00 | 0.09 | 0.39 | 0.00 | 0.01 | 0.03 | 0.04 | 0.00 | 0.27 | 0.01 | 0.00 | 0.01 | 0.02 | 0.12 | 520 |
| python, edit (2x), python | 0.00 | 0.02 | 0.64 | 0.01 | 0.12 | 0.01 | 0.03 | 0.00 | 0.00 | 0.00 | 0.00 | 0.09 | 0.01 | 0.03 | 363 |
| python, edit, python, edit | 0.00 | 0.00 | 0.27 | 0.01 | 0.00 | 0.00 | 0.02 | 0.00 | 0.68 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 336 |
| scroll_down (4x) | 0.00 | 0.01 | 0.07 | 0.04 | 0.02 | 0.04 | 0.02 | 0.00 | 0.00 | 0.72 | 0.01 | 0.03 | 0.03 | 0.01 | 1034 |
| search_dir, open, search_file, goto | 0.00 | 0.01 | 0.41 | 0.01 | 0.01 | 0.09 | 0.06 | 0.00 | 0.00 | 0.22 | 0.04 | 0.03 | 0.12 | 0.01 | 4564 |
---
## 4. Key Trends and Observations
### Deterministic Transitions
* **The "Submit" Sequence:** The sequence `edit, python, rm, submit` has a **1.00** probability of transitioning to `<END>`. This is the only perfectly deterministic transition in the dataset, indicated by the darkest blue cell.
### High-Probability Loops
* **Editing Persistence:** The sequence `edit (4x)` has an **0.85** probability of the next action being `edit` again, suggesting a high likelihood of continuous editing once a threshold is reached.
* **Scrolling Persistence:** `scroll_down (4x)` has a **0.72** probability of the next action being `scroll_down`.
* **Python/Edit Cycle:** Sequences ending in `edit` often lead to `python` (e.g., `python, edit, python, edit` -> `python` at **0.68**), and sequences ending in `python` often lead back to `edit` (e.g., `python, edit (2x), python` -> `edit` at **0.64**).
### Navigation Patterns
* **File Opening:** After `create, edit, python, find_file`, there is a **0.74** probability the user will `open` a file.
* **Search to Edit:** The sequence `search_dir, open, search_file, goto` leads to `edit` with a probability of **0.41**, which is the highest probability for that specific sequence, though it is more distributed across other actions like `scroll_down` (0.22).
### Sample Size (Counts)
* The most frequent sequence observed is `search_dir, open, search_file, goto` with **4,564** occurrences.
* The least frequent sequence shown is `python, edit, python, edit` with **336** occurrences.