GET /api/v1/predictions/
Get predictive analytics including score forecasts, goal tracking, and study recommendations.
Request
Unique identifier for the student
Query Parameters
Response
Current Reading/Writing score
predicted_math_in_30_days
Predicted Math score in 30 days
Predicted Reading/Writing score in 30 days
predicted_total_in_30_days
Predicted total score in 30 days
Estimated days to reach goal
Current progress as percentage
Whether trajectory reaches goal
Example Request
predictions = await engine.get_predictions("student_123")
Example Response
{
"success": true,
"data": {
"current_math": 620,
"current_rw": 580,
"current_total": 1200,
"predicted_math_in_30_days": 680,
"predicted_rw_in_30_days": 640,
"predicted_total_in_30_days": 1320,
"confidence_intervals": {
"math": {"low": 660, "high": 700},
"rw": {"low": 620, "high": 660},
"total": {"low": 1290, "high": 1350}
},
"goal_tracking": {
"target_score": 1400,
"days_to_goal": 45,
"progress_percent": 75,
"on_track": true
},
"recommendations": [
"Focus on Reading/Writing fundamentals",
"Increase practice frequency by 20%"
]
}
}
Status Codes