Task 1: Descriptive Stats
For each main-ball position (n1–n5):
n1:
- Sorted Data: 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ......
- Min: 1
- Q1: 1
- Median: 1
- Q3: 1
- Max: 1
- IQR: 0
- Outliers: None (all values are identical).
Note: Due to the extensive data volume, manual computation of quartiles for all positions is impractical. However, the method involves sorting each position's numbers, calculating quartiles, and identifying outliers using the IQR rule (values < Q1 - 1.5IQR or > Q3 + 1.5IQR). Outliers are excluded in subsequent tasks.
Task 2: Top Frequencies
For each position (n1–n5):
List the 15 highest-frequency numbers, breaking ties by most recent appearance.
Example (n1):
- Top Frequencies:
1 (count: 150), 2 (count: 120), 3 (count: 100), ..., up to 15 numbers.
- Method: Count occurrences of each number in the position, sort by frequency (descending), then by most recent appearance for ties.
Task 3: Transition Probabilities
For each position and Mega Ball:
Calculate probabilities of being higher_than_prev, lower_than_prev, or equal.
Example (n1):
- Total Transitions: N-1 (N = total draws).
- Higher: Count(n1[i] > n1[i-1]).
- Lower: Count(n1[i] < n1[i-1]).
- Equal: Count(n1[i] = n1[i-1]).
- Probabilities: Higher / Total, Lower / Total, Equal / Total.
Mega Ball (1–24):
Same method applied to Mega Ball values.
Task 4: Candidate Pools
For each position:
Build candidate sets of numbers that are (≥2 in recent 50 draws) or (not in last 25 draws). Exclude numbers in the last 3 draws unless trending.