Consumer Price Index: Difference between revisions
More actions
Audit corrections from locked spec |
Redact exact basket weights and manipulation-defense thresholds (keep page substance) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 5: | Line 5: | ||
A rising CPI means inflation. A falling CPI means deflation. A stable CPI means equilibrium. | A rising CPI means inflation. A falling CPI means deflation. A stable CPI means equilibrium. | ||
Since 2026-06-09 the system tracks '''two baskets''': the ''policy basket'' of curated staples described below (the cautious signal used for policy decisions), and an ''observed market basket'' built from what players actually trade, which adapts to real market activity. | |||
== Basket composition == | == Basket composition == | ||
| Line 11: | Line 13: | ||
{| class="wikitable" style="width:100%;" | {| class="wikitable" style="width:100%;" | ||
|- | |- | ||
! Category | ! Category !! Key items | ||
|- | |- | ||
| Building materials | | Building materials || Cobblestone, stone, deepslate, logs, planks, sand, glass | ||
|- | |- | ||
| Basic inputs | | Basic inputs || Iron ingot, coal, copper, gold, redstone | ||
|- | |- | ||
| Food and farming | | Food and farming || Wheat, potato, carrot, cooked meats, sugar cane | ||
|- | |- | ||
| Utility consumables | | Utility consumables || Arrow, torch, firework rocket, lapis lazuli | ||
|- | |- | ||
| Premium commodities | | Premium commodities || Diamond, emerald, netherite scrap | ||
|} | |} | ||
Premium items carry deliberately modest weights — the basket is tilted toward staples so a few large trades cannot distort the signal. The exact weights are internal. | |||
== Index formula == | == Index formula == | ||
| Line 31: | Line 33: | ||
: '''P = exp( SUM of weight_i x ln(price_i_trimmed) )''' | : '''P = exp( SUM of weight_i x ln(price_i_trimmed) )''' | ||
Each item's observed unit prices are sorted, then the | Each item's observed unit prices are sorted, then the extreme tails are clamped (winsorized) before the geometric mean is computed. This prevents a single outlier trade from skewing the index. | ||
== Data source == | == Data source == | ||
| Line 45: | Line 47: | ||
=== Depth gates === | === Depth gates === | ||
An item is excluded from the policy basket unless it | An item is excluded from the policy basket unless it clears minimum thresholds for transaction depth and for the number of unique buyers and sellers in the window. The exact gates are internal. | ||
Items below these thresholds still appear in <code>/market</code> with a low-confidence flag but do not influence the engine. | Items below these thresholds still appear in <code>/market</code> with a low-confidence flag but do not influence the engine. | ||
=== Rate-of-change clamp === | === Rate-of-change clamp === | ||
No single item can move | No single item can move faster than an internal weekly limit. Excess movement is dampened. | ||
=== Manipulation risk score === | === Manipulation risk score === | ||
| Line 60: | Line 59: | ||
# Low buyer diversity | # Low buyer diversity | ||
# Low seller diversity | # Low seller diversity | ||
# Account concentration ( | # Account concentration (volume dominated by a single account) | ||
# Category outlier ( | # Category outlier (a price moving far out of line with its category) | ||
When risk | When risk is high, upward price moves are partially dampened while downward moves are trusted. This reflects that most MC economy manipulation is bullish. | ||
=== Median lag === | === Median lag === | ||
The [[Simulated ChestShop]] reads a | The [[Simulated ChestShop]] reads a '''lagged''' CPI snapshot, not current prices, so short-lived price spikes never reach it. | ||
== Per-item confidence == | == Per-item confidence == | ||
Latest revision as of 12:11, 21 July 2026
The Consumer Price Index (CPI) is a custom-built price tracking system on Prosperity SMP. It measures the cost of a fixed basket of goods using real player-to-player trade data, producing a single index number that represents the overall price level. The CPI feeds directly into the Monetary policy engine and is reported weekly via Discord.
What it measures
The CPI tracks the price of a weighted basket of 27 common items. It answers: are things getting more or less expensive?
A rising CPI means inflation. A falling CPI means deflation. A stable CPI means equilibrium.
Since 2026-06-09 the system tracks two baskets: the policy basket of curated staples described below (the cautious signal used for policy decisions), and an observed market basket built from what players actually trade, which adapts to real market activity.
Basket composition
The policy basket is weighted toward everyday staples, not luxury items:
| Category | Key items |
|---|---|
| Building materials | Cobblestone, stone, deepslate, logs, planks, sand, glass |
| Basic inputs | Iron ingot, coal, copper, gold, redstone |
| Food and farming | Wheat, potato, carrot, cooked meats, sugar cane |
| Utility consumables | Arrow, torch, firework rocket, lapis lazuli |
| Premium commodities | Diamond, emerald, netherite scrap |
Premium items carry deliberately modest weights — the basket is tilted toward staples so a few large trades cannot distort the signal. The exact weights are internal.
Index formula
The CPI uses a winsorized geometric mean, the same approach used by real-world national statistics offices:
- P = exp( SUM of weight_i x ln(price_i_trimmed) )
Each item's observed unit prices are sorted, then the extreme tails are clamped (winsorized) before the geometric mean is computed. This prevents a single outlier trade from skewing the index.
Data source
The CPI is computed from completed, non-simulated, player-to-player ChestShop transactions only:
- Only real trades count. Simulated ChestShop activity is tagged
simulated: trueand excluded. - Only completed sales count, not listed prices.
- Rolling 7-day window.
This separation prevents a feedback loop where Sim Shop activity inflates CPI, which causes the Sim Shop to adjust prices upward, which inflates CPI further.
Manipulation defenses
Depth gates
An item is excluded from the policy basket unless it clears minimum thresholds for transaction depth and for the number of unique buyers and sellers in the window. The exact gates are internal.
Items below these thresholds still appear in /market with a low-confidence flag but do not influence the engine.
Rate-of-change clamp
No single item can move faster than an internal weekly limit. Excess movement is dampened.
Manipulation risk score
Each item receives a composite score from five equally-weighted factors:
- Low transaction count
- Low buyer diversity
- Low seller diversity
- Account concentration (volume dominated by a single account)
- Category outlier (a price moving far out of line with its category)
When risk is high, upward price moves are partially dampened while downward moves are trusted. This reflects that most MC economy manipulation is bullish.
Median lag
The Simulated ChestShop reads a lagged CPI snapshot, not current prices, so short-lived price spikes never reach it.
Per-item confidence
Each basket item receives its own confidence score based on transaction depth and participant diversity:
- confidence = sqrt(depth_score x diversity_score)
Items with low confidence contribute less to the overall index.
Player-facing: /market
| Command | Shows |
|---|---|
/market |
Top 10 items by 7-day trading volume |
/market <item> |
Median price, fair range (25th-75th percentile), volume, category |
The /market command shows real player data only. It does not reveal Sim Shop buy prices, CentralBank balance, or engine state.
Weekly Discord report
Every Monday, an automated report posts to Discord showing total turnover, top items by value, and per-item medians. Same data pipeline as the policy CPI but formatted as a public summary.
Commodity index
Separately from the policy CPI, the system computes a commodity index tracking premium items (diamond, gold, netherite, emerald). This is dashboard-only and does not influence the Monetary policy engine.
See also
- Monetary policy engine — consumes the CPI for recommendations
- Economy — how money flows through the server
- Simulated ChestShop — excluded from CPI by design
- Trading — how trading works
- ChestShop — the shop system generating CPI data