# 2. AI-Powered Score Prediction — Test Cases

User Type: **Student**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: ai_score_prediction.md — every feature, sub-feature, and rule covered

---

## Test Execution Policy
- Zero tolerance: any deviation from documented behavior = FAILED = bug
- Every bug is immediately logged/reported (Bug ID, feature, sub-feature, expected vs actual, severity) and fixed 100% before the group passes
- Feature group passes only at 100% test pass rate

## Coverage Matrix
| Feature | Sub-feature / Rule | Test IDs |
|---------|--------------------|----------|
| 2.1 Score Prediction Engine | Predicted score for each target exam | TC-ST-06-02-001 |
| 2.1 Score Prediction Engine | Prediction based on historical exam performance and practice scores | TC-ST-06-02-002 |
| 2.1 Score Prediction Engine | Factors in video completion rates and time spent per topic | TC-ST-06-02-003 |
| 2.1 Score Prediction Engine | Factors in assessment accuracy trends and study consistency | TC-ST-06-02-004 |
| 2.1 Score Prediction Engine | Factors in current mastery level of topics | TC-ST-06-02-005 |
| 2.1 Score Prediction Engine | Considers the difficulty level of the target exam | TC-ST-06-02-006 |
| 2.1 Score Prediction Engine | Factors in the time remaining until the exam | TC-ST-06-02-007 |
| 2.1 Score Prediction Engine | Prediction updates in real time as the Student progresses | TC-ST-06-02-008 |
| 2.1 Score Prediction Engine | Confidence interval for the prediction | TC-ST-06-02-009 |
| 2.1 Score Prediction Engine | Prediction event logging (computed, updated) | TC-ST-06-02-010 |
| 2.1 Score Prediction Engine | Audit logging of the score prediction engine | TC-ST-06-02-011 |
| 2.1 Score Prediction Engine | Rule: The prediction is computed from the Student's historical data and current mastery. | TC-ST-06-02-001 |
| 2.1 Score Prediction Engine | Rule: The prediction updates in real time as the Student progresses. | TC-ST-06-02-002 |
| 2.1 Score Prediction Engine | Rule: The confidence interval reflects the amount and quality of available data. | TC-ST-06-02-003 |
| 2.1 Score Prediction Engine | Rule: The prediction considers the exam's difficulty and the time remaining. | TC-ST-06-02-004 |
| 2.1 Score Prediction Engine | Rule: Prediction events (computed, updated) are logged with the exam and the timestamp. | TC-ST-06-02-005 |
| 2.1 Score Prediction Engine | Rule: The score prediction engine is audit-logged with the account, the exam, and the timestamp. | TC-ST-06-02-006 |
| 2.2 Prediction Dashboard | Current predicted score with confidence range | TC-ST-06-02-012 |
| 2.2 Prediction Dashboard | Gap analysis (predicted vs. target score) | TC-ST-06-02-013 |
| 2.2 Prediction Dashboard | Subject-wise score breakdown | TC-ST-06-02-014 |
| 2.2 Prediction Dashboard | Trend graph (prediction improvement over time) | TC-ST-06-02-015 |
| 2.2 Prediction Dashboard | "What-if" scenarios (e.g., "If I improve Math by 10%…") | TC-ST-06-02-016 |
| 2.2 Prediction Dashboard | Dashboard per target exam | TC-ST-06-02-017 |
| 2.2 Prediction Dashboard | Dashboard available on web and mobile | TC-ST-06-02-018 |
| 2.2 Prediction Dashboard | Dashboard event logging (viewed, scenario run) | TC-ST-06-02-019 |
| 2.2 Prediction Dashboard | Audit logging of the prediction dashboard | TC-ST-06-02-020 |
| 2.2 Prediction Dashboard | Rule: The gap analysis compares the predicted score with the target score. | TC-ST-06-02-012 |
| 2.2 Prediction Dashboard | Rule: The subject-wise breakdown shows the predicted contribution per subject. | TC-ST-06-02-013 |
| 2.2 Prediction Dashboard | Rule: The trend graph plots the prediction over time. | TC-ST-06-02-014 |
| 2.2 Prediction Dashboard | Rule: A "what-if" scenario shows the effect of a hypothetical improvement. | TC-ST-06-02-015 |
| 2.2 Prediction Dashboard | Rule: Dashboard events (viewed, scenario run) are logged with the exam and the timestamp. | TC-ST-06-02-016 |
| 2.2 Prediction Dashboard | Rule: The prediction dashboard is audit-logged with the account, the exam, and the timestamp. | TC-ST-06-02-017 |
| 2.3 Prediction Accuracy and Feedback | Compare predicted score with actual result after an exam | TC-ST-06-02-021 |
| 2.3 Prediction Accuracy and Feedback | Prediction accuracy history per exam | TC-ST-06-02-022 |
| 2.3 Prediction Accuracy and Feedback | Feedback on what drove the prediction (key factors) | TC-ST-06-02-023 |
| 2.3 Prediction Accuracy and Feedback | Platform refines predictions using actual outcomes | TC-ST-06-02-024 |
| 2.3 Prediction Accuracy and Feedback | Accuracy trend over time | TC-ST-06-02-025 |
| 2.3 Prediction Accuracy and Feedback | "Prediction was high/low by X" indicator | TC-ST-06-02-026 |
| 2.3 Prediction Accuracy and Feedback | Accuracy event logging (actual recorded, accuracy computed) | TC-ST-06-02-027 |
| 2.3 Prediction Accuracy and Feedback | Audit logging of the prediction accuracy and feedback | TC-ST-06-02-028 |
| 2.3 Prediction Accuracy and Feedback | Rule: The accuracy is computed as the difference between the predicted and actual score. | TC-ST-06-02-021 |
| 2.3 Prediction Accuracy and Feedback | Rule: The accuracy history is kept per exam. | TC-ST-06-02-022 |
| 2.3 Prediction Accuracy and Feedback | Rule: Actual outcomes are used to refine future predictions. | TC-ST-06-02-023 |
| 2.3 Prediction Accuracy and Feedback | Rule: The "high/low by X" indicator shows the direction and size of the error. | TC-ST-06-02-024 |
| 2.3 Prediction Accuracy and Feedback | Rule: Accuracy events (actual recorded, accuracy computed) are logged with the exam and the timestamp. | TC-ST-06-02-025 |
| 2.3 Prediction Accuracy and Feedback | Rule: The prediction accuracy and feedback is audit-logged with the account, the exam, and the timestamp. | TC-ST-06-02-026 |

## 2.1 Score Prediction Engine

### TC-ST-06-02-001 — Predicted score for each target exam
**Type:** Positive
**Covers:** 2.1 → Predicted score for each target exam; Rule: The prediction is computed from the Student's historical data and current mastery.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Predicted score for each target exam.
2. Observe the result and verify the full behavior: Predicted score for each target exam.
**Expected Result:** Predicted score for each target exam — delivered exactly as documented.
**Priority:** Critical

### TC-ST-06-02-002 — Prediction based on historical exam performance and practice scores
**Type:** Positive
**Covers:** 2.1 → Prediction based on historical exam performance and practice scores; Rule: The prediction updates in real time as the Student progresses.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Prediction based on historical exam performance and practice scores.
2. Observe the result and verify the full behavior: Prediction based on historical exam performance and practice scores.
**Expected Result:** Prediction based on historical exam performance and practice scores — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-003 — Factors in video completion rates and time spent per topic
**Type:** Positive
**Covers:** 2.1 → Factors in video completion rates and time spent per topic; Rule: The confidence interval reflects the amount and quality of available data.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Factors in video completion rates and time spent per topic.
2. Observe the result and verify the full behavior: Factors in video completion rates and time spent per topic.
**Expected Result:** Factors in video completion rates and time spent per topic — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-004 — Factors in assessment accuracy trends and study consistency
**Type:** Positive
**Covers:** 2.1 → Factors in assessment accuracy trends and study consistency; Rule: The prediction considers the exam's difficulty and the time remaining.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Factors in assessment accuracy trends and study consistency.
2. Observe the result and verify the full behavior: Factors in assessment accuracy trends and study consistency.
**Expected Result:** Factors in assessment accuracy trends and study consistency — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-005 — Factors in current mastery level of topics
**Type:** Positive
**Covers:** 2.1 → Factors in current mastery level of topics; Rule: Prediction events (computed, updated) are logged with the exam and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Factors in current mastery level of topics.
2. Observe the result and verify the full behavior: Factors in current mastery level of topics.
**Expected Result:** Factors in current mastery level of topics — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-006 — Considers the difficulty level of the target exam
**Type:** Positive
**Covers:** 2.1 → Considers the difficulty level of the target exam; Rule: The score prediction engine is audit-logged with the account, the exam, and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Considers the difficulty level of the target exam.
2. Observe the result and verify the full behavior: Considers the difficulty level of the target exam.
**Expected Result:** Considers the difficulty level of the target exam — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-007 — Factors in the time remaining until the exam
**Type:** Positive
**Covers:** 2.1 → Factors in the time remaining until the exam
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Factors in the time remaining until the exam.
2. Observe the result and verify the full behavior: Factors in the time remaining until the exam.
**Expected Result:** Factors in the time remaining until the exam — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-008 — Prediction updates in real time as the Student progresses
**Type:** Positive
**Covers:** 2.1 → Prediction updates in real time as the Student progresses
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Prediction updates in real time as the Student progresses.
2. Observe the result and verify the full behavior: Prediction updates in real time as the Student progresses.
**Expected Result:** Prediction updates in real time as the Student progresses — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-009 — Confidence interval for the prediction
**Type:** Positive
**Covers:** 2.1 → Confidence interval for the prediction
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Confidence interval for the prediction.
2. Observe the result and verify the full behavior: Confidence interval for the prediction.
**Expected Result:** Confidence interval for the prediction — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-010 — Prediction event logging (computed, updated)
**Type:** Positive
**Covers:** 2.1 → Prediction event logging (computed, updated)
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Prediction event logging (computed.
2. Observe the result and verify the full behavior: Prediction event logging (computed, updated).
**Expected Result:** Prediction event logging (computed, updated) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-011 — Audit logging of the score prediction engine
**Type:** Positive
**Covers:** 2.1 → Audit logging of the score prediction engine
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, perform the action associated with: Audit logging of the score prediction engine.
2. Open the relevant activity / audit log and verify the event is recorded with the account, the action, and the timestamp.
**Expected Result:** The action is audit-logged — the account, the action, and the timestamp are recorded.
**Priority:** Critical

## 2.2 Prediction Dashboard

### TC-ST-06-02-012 — Current predicted score with confidence range
**Type:** Positive
**Covers:** 2.2 → Current predicted score with confidence range; Rule: The gap analysis compares the predicted score with the target score.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Current predicted score with confidence range.
2. Observe the result and verify the full behavior: Current predicted score with confidence range.
**Expected Result:** Current predicted score with confidence range — delivered exactly as documented.
**Priority:** Critical

### TC-ST-06-02-013 — Gap analysis (predicted vs. target score)
**Type:** Positive
**Covers:** 2.2 → Gap analysis (predicted vs. target score); Rule: The subject-wise breakdown shows the predicted contribution per subject.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Gap analysis (predicted vs. target score).
2. Observe the result and verify the full behavior: Gap analysis (predicted vs. target score).
**Expected Result:** Gap analysis (predicted vs. target score) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-014 — Subject-wise score breakdown
**Type:** Positive
**Covers:** 2.2 → Subject-wise score breakdown; Rule: The trend graph plots the prediction over time.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Subject-wise score breakdown.
2. Observe the result and verify the full behavior: Subject-wise score breakdown.
**Expected Result:** Subject-wise score breakdown — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-015 — Trend graph (prediction improvement over time)
**Type:** Positive
**Covers:** 2.2 → Trend graph (prediction improvement over time); Rule: A "what-if" scenario shows the effect of a hypothetical improvement.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Trend graph (prediction improvement over time).
2. Observe the result and verify the full behavior: Trend graph (prediction improvement over time).
**Expected Result:** Trend graph (prediction improvement over time) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-016 — "What-if" scenarios (e.g., "If I improve Math by 10%…")
**Type:** Positive
**Covers:** 2.2 → "What-if" scenarios (e.g., "If I improve Math by 10%…"); Rule: Dashboard events (viewed, scenario run) are logged with the exam and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: "What-if" scenarios (e.g..
2. Observe the result and verify the full behavior: "What-if" scenarios (e.g., "If I improve Math by 10%…").
**Expected Result:** "What-if" scenarios (e.g., "If I improve Math by 10%…") — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-017 — Dashboard per target exam
**Type:** Positive
**Covers:** 2.2 → Dashboard per target exam; Rule: The prediction dashboard is audit-logged with the account, the exam, and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Dashboard per target exam.
2. Observe the result and verify the full behavior: Dashboard per target exam.
**Expected Result:** Dashboard per target exam — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-018 — Dashboard available on web and mobile
**Type:** Positive
**Covers:** 2.2 → Dashboard available on web and mobile
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Dashboard available on web and mobile.
2. Observe the result and verify the full behavior: Dashboard available on web and mobile.
**Expected Result:** Dashboard available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-019 — Dashboard event logging (viewed, scenario run)
**Type:** Positive
**Covers:** 2.2 → Dashboard event logging (viewed, scenario run)
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Dashboard event logging (viewed.
2. Observe the result and verify the full behavior: Dashboard event logging (viewed, scenario run).
**Expected Result:** Dashboard event logging (viewed, scenario run) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-020 — Audit logging of the prediction dashboard
**Type:** Positive
**Covers:** 2.2 → Audit logging of the prediction dashboard
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, perform the action associated with: Audit logging of the prediction dashboard.
2. Open the relevant activity / audit log and verify the event is recorded with the account, the action, and the timestamp.
**Expected Result:** The action is audit-logged — the account, the action, and the timestamp are recorded.
**Priority:** Critical

## 2.3 Prediction Accuracy and Feedback

### TC-ST-06-02-021 — Compare predicted score with actual result after an exam
**Type:** Positive
**Covers:** 2.3 → Compare predicted score with actual result after an exam; Rule: The accuracy is computed as the difference between the predicted and actual score.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Compare predicted score with actual result after an exam.
2. Observe the result and verify the full behavior: Compare predicted score with actual result after an exam.
**Expected Result:** Compare predicted score with actual result after an exam — delivered exactly as documented.
**Priority:** Critical

### TC-ST-06-02-022 — Prediction accuracy history per exam
**Type:** Positive
**Covers:** 2.3 → Prediction accuracy history per exam; Rule: The accuracy history is kept per exam.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Prediction accuracy history per exam.
2. Observe the result and verify the full behavior: Prediction accuracy history per exam.
**Expected Result:** Prediction accuracy history per exam — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-023 — Feedback on what drove the prediction (key factors)
**Type:** Positive
**Covers:** 2.3 → Feedback on what drove the prediction (key factors); Rule: Actual outcomes are used to refine future predictions.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Feedback on what drove the prediction (key factors).
2. Observe the result and verify the full behavior: Feedback on what drove the prediction (key factors).
**Expected Result:** Feedback on what drove the prediction (key factors) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-024 — Platform refines predictions using actual outcomes
**Type:** Positive
**Covers:** 2.3 → Platform refines predictions using actual outcomes; Rule: The "high/low by X" indicator shows the direction and size of the error.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Platform refines predictions using actual outcomes.
2. Observe the result and verify the full behavior: Platform refines predictions using actual outcomes.
**Expected Result:** Platform refines predictions using actual outcomes — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-025 — Accuracy trend over time
**Type:** Positive
**Covers:** 2.3 → Accuracy trend over time; Rule: Accuracy events (actual recorded, accuracy computed) are logged with the exam and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Accuracy trend over time.
2. Observe the result and verify the full behavior: Accuracy trend over time.
**Expected Result:** Accuracy trend over time — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-026 — "Prediction was high/low by X" indicator
**Type:** Positive
**Covers:** 2.3 → "Prediction was high/low by X" indicator; Rule: The prediction accuracy and feedback is audit-logged with the account, the exam, and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: "Prediction was high/low by X" indicator.
2. Observe the result and verify the full behavior: "Prediction was high/low by X" indicator.
**Expected Result:** "Prediction was high/low by X" indicator — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-027 — Accuracy event logging (actual recorded, accuracy computed)
**Type:** Positive
**Covers:** 2.3 → Accuracy event logging (actual recorded, accuracy computed)
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Accuracy event logging (actual recorded.
2. Observe the result and verify the full behavior: Accuracy event logging (actual recorded, accuracy computed).
**Expected Result:** Accuracy event logging (actual recorded, accuracy computed) — delivered exactly as documented.
**Priority:** High

### TC-ST-06-02-028 — Audit logging of the prediction accuracy and feedback
**Type:** Positive
**Covers:** 2.3 → Audit logging of the prediction accuracy and feedback
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, perform the action associated with: Audit logging of the prediction accuracy and feedback.
2. Open the relevant activity / audit log and verify the event is recorded with the account, the action, and the timestamp.
**Expected Result:** The action is audit-logged — the account, the action, and the timestamp are recorded.
**Priority:** Critical
