{{ block title }} Newsvendor Game - Round {{ round_number }} (Day {{ day_number }}) {{ endblock }} {{ block content }}

Backstory

{{ backstory }}

Historical Demand

Below is a record of demand from similar past scenarios, plus the actual demand from your own completed rounds.

{% for row in historical_demand_table %} {% endfor %}
Interval Demand
{{ row.interval }} {{ row.demand }}
{% if show_demand_forecast and history_stats %}
Summary statistics: Mean: {{ history_stats.mean }}, Std Dev: {{ history_stats.std }}, Min: {{ history_stats.min }}, Max: {{ history_stats.max }}, Count: {{ history_stats.n }}
{% endif %}

Digital Tools Access

{% if tool_count == 1 %}No Digital Tools {% elif tool_count == 2 %}Demand Forecasting + Feedback {% elif tool_count == 3 %}Demand Forecasting + Feedback + Performance Assistant {% else %}All Digital Tools {% endif %}
What is the Newsvendor Game? (Click to expand)

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.

The Core Trade-Off

Finding the Optimal Order Quantity (Q*)

Critical Fractile = Cu / (Cu + Co)
Digital tools available to you. Click a tool title to expand it.
{% if show_demand_forecast %}
Demand Forecasting Tool

This tool visualizes the distribution of all demand observed so far.

Observed Demand Distribution
Demand Distribution
Demand Distribution (PDF/CDF)
{% if demand_stats_table.headers %}

Based on {{ history_stats.n }} observations. PDF: probability of demand in that interval. CDF: cumulative probability up to that interval.

{% for header in demand_stats_table.headers %} {% endfor %} {% for val in demand_stats_table.pdf %} {% endfor %} {% for val in demand_stats_table.cdf %} {% endfor %}
Value{{ header }}
PDF{{ val }}
CDF{{ val }}
{% else %}

The PDF/CDF table will populate once demand data is available.

{% endif %}
{% endif %} {% if show_performance %}
Performance Assistant

Formula: profit = min(Q, D)×p + max(0, Q−D)×s − Q×c

{% endif %} {% if show_dashboard %}
Dashboard
{% if round_number == 1 %}

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:

Orders vs Demand
Orders vs Demand
Profit by Round
Profit per Round
Sales vs Leftovers
Sales vs Leftovers
{% endif %}
{% endif %} {% if show_recommendation %}
Decision Recommendation Engine

Suggested Order Quantity (Q*)

{{ recommended_order }}

Based on the demand distribution and today's profit equation.

{% endif %} {% if show_feedback and last_feedback %}
Feedback on Round {{ last_feedback.round }}
Why this score?

{{ last_feedback.feedback_reason|safe }}

How to improve?

{{ 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 }}

{% elif show_feedback %}
Feedback

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).

{% endif %}
{{ formfields }} {{ next_button }} {{ endblock }}