Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

algo-price-elasticity算法价格弹性

Agent Skill

algo-price-elasticity 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

371

周安装

15

GitHub Stars

125

下载量

116
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:algo-price-elasticity(算法价格弹性)
来源仓库:https://github.com/asgard-ai-platform/skills
仓库路径:skills/algo-price-elasticity
安装命令:
npx skills add https://github.com/asgard-ai-platform/skills --skill algo-price-elasticity
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/asgard-ai-platform/skills --skill algo-price-elasticity

简介

algo-price-elasticity 用于分析价格变动对需求量的影响,判断商品需求的价格弹性。

  • 适用于评估调价策略对销量和收入的影响,识别价格敏感型产品。
  • 通过输入价格和销量数据计算弹性系数,支持快速定价决策优化。
  • 安装命令:npx skills add https://github.com/asgard-ai-platform/skills --skill algo-price-elasticity
  • 需确认数据来源可靠性及是否涉及财务或市场数据的读写权限

SKILL.md

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) = α + β×log(P) + controls → β is the elasticity (constant elasticity model)

Phase 3: Verification

Check: sign should be negative (price up → quantity down). Cross-validate with holdout periods. Gate: Elasticity is negative, confidence interval is reasonable.

Phase 4: Output

Return elasticity estimate with revenue impact projection.

Output Format

{
  "elasticity": -1.5,
  "interpretation": "elastic — 1% price increase → 1.5% quantity decrease",
  "revenue_impact": {"price_change_pct": 10, "quantity_change_pct": -15, "revenue_change_pct": -6.5},
  "metadata": {"method": "log-log regression", "r_squared": 0.82, "observations": 52}
}

Examples

Sample I/O

Input: Price increased 10% from $100 to $110, quantity dropped from 1000 to 850 Expected: Arc elasticity = ((-150/925) / (10/105)) = -1.70 (elastic)

Edge Cases

InputExpectedWhy
Luxury goodMay be positive (Veblen)Higher price → higher perceived value
Necessity (insulin)Near zeroDemand barely responds to price
Perfect substitute availableVery elastic (< -3)Customers switch immediately

Gotchas

  • Omitted variable bias: Without controlling for advertising, seasonality, and competitor prices, elasticity estimates are biased.
  • Short-run vs long-run: Short-run elasticity is typically lower (customers are locked in). Long-run gives them time to find substitutes.
  • Cross-price elasticity: Demand for product A may depend on product B's price. Ignoring this in a portfolio context leads to suboptimal pricing.
  • Asymmetric elasticity: Consumers may react differently to price increases vs decreases. Don't assume symmetry.
  • Small sample noise: With few observations, elasticity estimates have wide confidence intervals. Report intervals, not just point estimates.

Scripts

ScriptDescriptionUsage
scripts/arc_elasticity.pyCompute arc elasticity and revenue impactpython scripts/arc_elasticity.py --help

Run python scripts/arc_elasticity.py --verify to execute built-in sanity tests.

References

  • For regression-based elasticity estimation, see references/regression-estimation.md
  • For cross-price elasticity analysis, see references/cross-price.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.81%
按下载量换算39

Claude

30.04%
按下载量换算35

Cursor

19.6%
按下载量换算23

Gemini CLI

9.45%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills