PPolySim OS
For Researchers · Consumer Choice

Consumer Choice for a comparative-advantage trade

Built for researchers prototyping or validating an idea. Prototype fast, reproduce exactly, and share a citable, interactive version of your model. Simulate a comparative-advantage trade live below — adjust the inputs and watch it respond, right in your browser.

Consumer ChoiceLive

Controls

Presets

A consumer maximizes utility subject to a budget. Indifference curves connect equally-satisfying bundles; the budget line shows what income affords. The best choice is where the budget line just touches the highest reachable indifference curve — the tangency where the marginal rate of substitution equals the price ratio. Change a price and watch the optimal bundle move.

▶ Run in Python

Data Inspector

Optimal X12.5
Optimal Y16.7
Utility14.4

Governing equation

Reading this result: With Cobb-Douglas preferences the optimal bundle spends a fixed income share on each good — here 50% of income (50) buys X and 50% buys Y, no matter how prices move; a price only changes how many units that fixed budget buys.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Consumer Choice

Frequently asked questions

Is this good for researchers?
Yes — this version of "Consumer Choice for a comparative-advantage trade" is framed for researchers prototyping or validating an idea. Prototype fast, reproduce exactly, and share a citable, interactive version of your model.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.