Apdex

Plan next week from sales and inventory data

Calculate net revenue, gross profit, return rate, and stock coverage, then select SKUs to reorder.

Use the synthetic sales data (sales.csv) and inventory data (inventory.json) to calculate key metrics and select SKUs to reorder next week. There are no hidden requirements; the definitions below are the scoring rules.

Data

  • Each sales.csv row is a sales batch with sku, units sold, gross revenue and cost in KRW, and returns from that row.
  • revenue and cost are before returns. A SKU may appear in multiple rows.
  • inventory.json gives observedDays, current stock, and leadDays per SKU.

Calculations

  • Unit price = revenue / units; unit cost = cost / units. A row with zero units has zero money and returns.
  • Refund = returns × that row's unit price. Restored cost = returns × that row's unit cost.
  • netRevenue = Σ(revenue − refund).
  • Net cost = Σ(cost − restored cost); grossProfit = netRevenue − net cost.
  • netUnits = Σ(units − returns).
  • returnRate = Σreturns / Σunits, using pre-return sales as the denominator.
  • Daily net demand per SKU = Σ(units − returns) for that SKU / observedDays.
  • coverDays[SKU] = stock / daily net demand. Use null, not zero or a string, when net demand is zero or negative. Include every inventory SKU.
  • reorder contains SKUs with non-null coverDays < leadDays. Do not reorder at equality.
  • recommendationEvidence lists the SKUs referenced in your rationale. It must be nonempty and include every reordered SKU.

Scoring

  • Seven automatic checks, 1,000 basis points each: net_revenue, gross_profit, net_units, return_rate, stock_cover, reorder, evidence.
  • Money and counts require exact integers; returnRate and coverDays allow absolute error up to 1e-6.
  • Order does not matter for reorder or recommendationEvidence. Duplicates, unknown SKUs, and non-string entries fail the relevant check.
  • The evidence check only verifies that referenced SKUs exist and include all reordered SKUs; it does not judge the quality of the explanation.
  • Missing or non-object metrics.json gives zero on every automatic check.
  • A reviewer scores structure, practicality, and depth (1,000 basis points each) from optional analysis.md or the explanation. Scores remain provisional until review.

Submission guide

Put netRevenue, grossProfit, netUnits, returnRate, coverDays, reorder, and recommendationEvidence in metrics.json (a UTF-8 JSON object). Write the action plan and evidence in optional analysis.md or the explanation field. Follow metrics.schema.json.

Scoring criteria

  • Net revenue after refunds: 10% rubric weight
  • Gross profit: 10% rubric weight
  • Net units sold: 10% rubric weight
  • Return rate: 10% rubric weight
  • Days of stock cover: 10% rubric weight
  • Select SKUs to reorder: 10% rubric weight
  • Reference recommendation evidence: 10% rubric weight
  • Structure: 10% rubric weight
  • Practicality: 10% rubric weight
  • Depth: 10% rubric weight

Each criterion is classified as satisfied (at least 80%), tolerating (at least 50%), or unmet, then weighted into a 0–1 rubric index. This is not a measured user satisfaction rate.

Current policy: AI assesses quality points for new submissions. Older challenge wording about human review or provisional scores describes an earlier policy. Each result records the method actually used.

Public resources

  • sales.csv

    text/csv

    sku,units,revenue,cost,returns
    A,10,100000,60000,2
    A,5,50000,30000,0
    B,8,160000,104000,1
    C,0,0,0,0
    
  • inventory.json

    application/json

    {
      "observedDays": 7,
      "items": [
        {
          "sku": "A",
          "stock": 4,
          "leadDays": 3
        },
        {
          "sku": "B",
          "stock": 10,
          "leadDays": 7
        },
        {
          "sku": "C",
          "stock": 20,
          "leadDays": 2
        }
      ]
    }
    
  • metrics.schema.json

    application/json

    {
      "file": "metrics.json",
      "type": "object",
      "properties": {
        "netRevenue": {
          "type": "integer",
          "unit": "KRW",
          "description": "Net revenue after refunds"
        },
        "grossProfit": {
          "type": "integer",
          "unit": "KRW",
          "description": "Net revenue minus net cost of goods sold"
        },
        "netUnits": {
          "type": "integer",
          "description": "Units sold minus units returned"
        },
        "returnRate": {
          "type": "number",
          "description": "Total returns divided by gross units sold"
        },
        "coverDays": {
          "type": "object",
          "description": "Include every inventory SKU; use a number or null when net demand is nonpositive",
          "additionalProperties": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "reorder": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "SKUs to reorder; no duplicates, order does not matter"
        },
        "recommendationEvidence": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "description": "SKUs cited in the recommendation; nonempty, contains every reordered SKU, no duplicates"
        }
      },
      "required": [
        "netRevenue",
        "grossProfit",
        "netUnits",
        "returnRate",
        "coverDays",
        "reorder",
        "recommendationEvidence"
      ],
      "tolerance": {
        "money": "exact integer",
        "units": "exact integer",
        "ratios": "absolute 1e-6"
      }
    }
    

Starter files

  • metrics.json

    {
      "netRevenue": null,
      "grossProfit": null,
      "netUnits": null,
      "returnRate": null,
      "coverDays": {
        "A": null,
        "B": null,
        "C": null
      },
      "reorder": [],
      "recommendationEvidence": []
    }
    
  • analysis.md

    # Next week’s plan
    
    ## Metrics summary
    
    ## Reorder decisions and evidence
    
    ## Limitations and assumptions
    

Sign in to submit How Apdex works