Spaces:
Sleeping
Sleeping
| title: Basic Econ Demo | |
| emoji: 💹 | |
| colorFrom: blue | |
| colorTo: green | |
| sdk: streamlit | |
| sdk_version: 1.33.0 | |
| app_file: app.py | |
| pinned: false | |
| license: mit | |
| # Basic Econ Demo (Supply & Demand Playground) | |
| An interactive Streamlit app to explore microeconomics fundamentals: | |
| - Adjustable linear or power-form supply and demand curves | |
| - Policies: per-unit tax, price ceiling, price floor, and quota (quantity cap) | |
| - Automatic calculation of equilibrium, consumer surplus, producer surplus, | |
| tax revenue / quota rent, total surplus, and deadweight loss | |
| - Interactive Plotly visualization with shaded areas (CS, PS, TR/QR, DWL) | |
| - Download buttons for metrics and curve data as CSV | |
| ## How to run locally | |
| ```bash | |
| pip install -r requirements.txt | |
| streamlit run app.py | |
| ``` | |
| ## Notes | |
| - Curves use: Demand P = α_d − β_d Q^γ_d, Supply P = α_s + β_s Q^γ_s | |
| - Power form exponents γ ∈ [0.5, 2] | |
| - For price controls, assumes efficient rationing | |
| - Quota rent computed as (Pc − Pp) × Q when binding | |