Cobb-Douglas Consumer Demand
quantlib-economics
Cobb-Douglas Consumer Demand
Compute optimal consumption bundle, utility level, expenditure, and indirect utility for a consumer with Cobb-Douglas preferences U(x1, x2) = x1^alpha * x2^(1-alpha). Used in microeconomic analysis to determine consumer choice under budget constraints, analyze income and substitution effects, and derive demand functions. [Tier: STANDARD, Credits: 2]
POST
Cobb-Douglas Consumer Demand
Authorizations
API key for authentication. Get your key at https://api.fincept.in/auth/register
Body
application/json
Preference parameter for good 1 (must be between 0 and 1). Represents the share of income spent on good 1.
Required range:
0 <= x <= 1Example:
0.6
Consumer's total income or budget
Required range:
x >= 0Example:
1000
Prices of the two goods [p1, p2]
Required array length:
2 elementsRequired range:
x >= 0Example:
[10, 5]
