PPolySim OS
Use case · powered by Comparative Advantage

Comparative Advantage for a labor market

Simulate a labor market live in your browser. This runs the real Comparative Advantage solver — adjust the inputs, watch it respond instantly, and export the result. No install, no account.

Comparative AdvantageLive

Controls

Presets

David Ricardo's great insight: even if one country is worse at making everything, both still gain from trade. Each should specialize in the good it gives up the least to produce — its comparative advantage — measured by the slope of its production-possibility frontier. Trade then lets both consume beyond their own frontiers.

▶ Run in Python

Data Inspector

A opp. cost (wine)0.50 cloth
B opp. cost (wine)2.00 cloth
A should makewine
B should makecloth

Governing equation

Reading this result: Country A gives up 0.50 cloth per wine versus B at 2.00, so A specializes in wine and B in cloth — trade then lets both consume beyond their own frontiers.

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

or unlock everything with Pro →

About this simulation

The full Comparative Advantage tool models a labor market with the same numerics engineers and scientists use — running entirely client-side. Change any parameter and the result updates in real time, so you can build intuition, check a design, or teach the concept without spreadsheets or installs.

More you can do with Comparative Advantage

Other ways to simulate a labor market

Frequently asked questions

How do I simulate a labor market?
Open this page and use the live Comparative Advantage tool below — set your inputs and the simulation runs instantly in your browser using real numerics. No install, no account needed.
Is it free?
Yes. The simulation runs free in your browser. A one-time unlock or a Pro plan adds advanced parameters, saved presets, data import, and clean exports.
Can I use my own numbers?
Absolutely — every input is adjustable, and with data import you can drive a labor market from your own measurements.