Scenario
Consider a scenario where two individuals (Person $A$ and Person $B$) are dividing two resources: Resource X and Resource Y.
Each person has their utility function for the resources.
The goal is to identify the allocations that are Pareto efficient, meaning that no reallocation can make one person better off without making the other worse off.
Utility functions:
- Person $A$: $( U_A = x_A^{0.5} + y_A^{0.5} )$
- Person $B$: $( U_B = x_B^{0.5} + y_B^{0.5} )$
The total resources available are:
- $( X_{total} = 10 )$
- $( Y_{total} = 10 )$
We want to identify Pareto-efficient allocations of $ (x_A, y_A, x_B, y_B) $.
Python Implementation
Here is the $Python$ code to compute and visualize Pareto-efficient allocations:
1 | import numpy as np |
Explanation of the Code
- Utility Functions:
We defined the utility functions for both individuals based on their allocation of $( X )$ and $( Y )$. - Grid Search:
A grid of possible allocations for $( x_A )$ and $( y_A )$ is generated.
The remaining allocations for Person $B$ are calculated as $( x_B = X_{total} - x_A )$ and $( y_B = Y_{total} - y_A )$. - Pareto-Efficient Points:
For each valid allocation, we compute the utilities of both individuals and store them as Pareto-efficient points. - Visualization:
- The scatter plot shows the Pareto frontier, which represents the set of allocations where improving one individual’s utility would decrease the other’s.
Results and Graphical Representation

- Pareto Frontier:
- The blue points represent the possible Pareto-efficient allocations.
- Any point on this curve is Pareto efficient because moving away from it would reduce the utility of at least one individual.
- Utility Trade-off:
- The graph clearly shows the trade-off between the utilities of Person $A$ and Person $B$.
- Allocations can favor Person $A$ (higher $( U_A )$) or Person $B$ (higher $( U_B )$) depending on how the resources are distributed.
This approach demonstrates how Pareto efficiency can be visualized and used to evaluate resource allocation in economics or game theory.








