What is this simulation about?

Imagine you run a business that makes and sells a product. You want to figure out how many units to produce to maximize profit, but demand is uncertain. This simulation uses a method called Monte Carlo simulation — a way to test different demand scenarios using random sampling.

It runs your business virtually many times, each with a different demand guess, and helps you understand the range of possible outcomes.

How does it work?

  1. You enter some numbers:
    • How many products you plan to make
    • Cost to make each product
    • Selling price per unit
    • Salvage value of leftovers
    • Fixed costs
    • Expected demand (worst, average, best)
    • Demand uncertainty (standard deviation)
  2. The simulation runs many “what if” scenarios: Each one randomly selects a demand value based on your inputs.
  3. It calculates profits: Based on how many units are sold, left over, and at what price.
  4. It shows you the results: Average profit, volatility, and risk-adjusted return across all simulations.

Why is this useful?

This simulation helps you make smarter production decisions under uncertainty by showing the range of likely profit outcomes — not just one guess. It lets you weigh risk vs. reward before committing resources.

Explanation of Inputs

This simulation expects the following fields:

FieldDescription
productionQuantityNumber of units you plan to produce
unitCostCost to manufacture one unit
unitPriceSelling price per unit
salvagePriceRecovered value per unsold unit
fixedCostFixed costs (e.g., rent, salaries)
worstLikelyDemandEstimated 5th percentile demand (lower bound)
expectedDemandMean or expected average demand
bestLikelyDemandEstimated 95th percentile demand (upper bound)
demandStandardDeviationStandard deviation of demand uncertainty

Note: worstLikelyDemand < expectedDemand < bestLikelyDemand, and demandStandardDeviation must be positive.

Explanation of Outputs

The API returns the following fields after simulation:

FieldDescription
expectedProfitAverage profit across 1,000 simulations
volatilityStandard deviation of profit (risk level)
sharpeRatioRisk-adjusted profit (higher is better)
worstLikelyCase5th percentile profit (pessimistic scenario)
bestLikelyCase95th percentile profit (optimistic scenario)

These outputs help you evaluate trade-offs between expected return and risk, so you can make data-informed production decisions.