algo-price-elasticity

Solid

"Calculate price elasticity of demand to quantify how price changes affect sales volume. Use this skill when the user needs to estimate demand sensitivity, set optimal prices, or evaluate the revenue impact of price changes — even if they say 'how sensitive are customers to price', 'will a price increase hurt sales', or 'elasticity calculation'.".

AI & Automation 22 stars 8 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
45
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Price Elasticity of Demand ## Overview Price elasticity measures the percentage change in quantity demanded for a 1% change in price. Ed = %ΔQ / %ΔP. |Ed| > 1 = elastic (price-sensitive), |Ed| < 1 = inelastic (price-insensitive). Critical for pricing decisions and revenue optimization. ## When to Use **Trigger conditions:** - Estimating how a price change will affect unit sales and revenue - Determining if demand is elastic or inelastic for a product - Optimizing price for maximum revenue or profit **When NOT to use:** - When you need consumer willingness-to-pay distribution (use Van Westendorp or conjoint) - When pricing multiple products together (use bundle pricing) ## Algorithm ``` IRON LAW: Elasticity Is NOT Constant Along a Linear Demand Curve It varies at every price point. At high prices, demand is elastic (small price increase → big volume drop). At low prices, demand is inelastic. Always calculate at the SPECIFIC price point of interest. Revenue-maximizing price is where Ed = -1 (unit elastic). ``` ### Phase 1: Input Validation Collect: price-quantity pairs over time (or across markets). Control for: seasonality, promotions, competitor actions, other confounders. **Gate:** Minimum 10 price-quantity observations, confounders identified. ### Phase 2: Core Algorithm **Point elasticity:** Ed = (dQ/dP) × (P/Q) at a specific price point **Arc elasticity:** Ed = ((Q₂-Q₁)/((Q₂+Q₁)/2)) / ((P₂-P₁)/((P₂+P₁)/2)) between two points **Regression method:** log(Q) = α + ...

Details

Author
charlieviettq
Repository
charlieviettq/awesome-agent-skill
Created
2 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category