Jump to content

Test/RiskGraph Pregnancy

From RiskiPedia

This test page demonstrates multi-series graphing with the pregnancy risk example.

Pregnancy Risk Model

RiskModel: Test/RiskGraph Pregnancy:PregnancyRiskByDay
Sorted Parameters:
  pregnancy_risk = {{#expr: 100 * 0.33 * (2.718281828^(-0.5*(({timing_intercourse_day_x}-14)/2.5)^2)) * {age_multiplier} }}
Content: 
Calculates pregnancy risk based on day of menstrual cycle and age multiplier.
The formula models ovulation as a bell curve peaking at day 14.


Graph: Pregnancy Risk by Day of Cycle and Age

This graph shows how pregnancy probability varies across the menstrual cycle for different age groups.

Loading graph...

Expected Results

You should see:

  • Four colored lines (blue, orange, green, red) representing different age groups
  • All curves peak around day 14 (ovulation)
  • The "Under 25" line should be highest, "40+" should be lowest
  • Legend should be visible showing all four age groups
  • Graph should be interactive and responsive