{{ block title }} Newsvendor Game - Round {{ round_number }} (Day {{ day_number }}) {{ endblock }} {{ block content }}
{{ backstory }}
Below is a record of demand from similar past scenarios, plus the actual demand from your own completed rounds.
| Interval | Demand |
|---|---|
| {{ row.interval }} | {{ row.demand }} |
The Newsvendor model helps you make a one-time ordering decision when demand for a product is uncertain. The goal is to choose an order quantity that maximizes your expected profit by balancing the risks of ordering too much or too little.
This tool visualizes the distribution of all demand observed so far.
Based on {{ history_stats.n }} observations. PDF: probability of demand in that interval. CDF: cumulative probability up to that interval.
| Value | {% for header in demand_stats_table.headers %}{{ header }} | {% endfor %}
|---|---|
| {{ val }} | {% endfor %}|
| CDF | {% for val in demand_stats_table.cdf %}{{ val }} | {% endfor %}
The PDF/CDF table will populate once demand data is available.
{% endif %}Formula: profit = min(Q, D)×p + max(0, Q−D)×s − Q×c
The Dashboard will be available starting in Round 2.
You'll see three charts tracking your performance: Orders vs Demand, Profit by Round, and Sales vs Leftovers across all your completed rounds.
{% else %}Three quick views from previous rounds:
Suggested Order Quantity (Q*)
Based on the demand distribution and today's profit equation.
{{ last_feedback.feedback_reason|safe }}
{{ last_feedback.feedback_advice|safe }}
Target Critical Fractile: {{ last_feedback.critical_fractile }} — aim to satisfy demand {{ last_feedback.critical_fractile_percent }}% of the time.
{{ score_definition }}
Feedback will appear after your first round is complete.
You'll see last round's profit, max profit, your order, actual demand, and your score (your profit ÷ max profit × 100).