← 返回题库
中级

福利经济学定理

未完成
中级参考 代码结构已给出,请填写 ____ 处
def solve(____):
    a1, b1, a2, b2 = preferences
    x1, y1 = allocation[____]
    x2, y2 = allocation[____]
    mrs1 = (____) * (____)
    mrs2 = (____) * (____)
    pareto_optimal = abs(____) < ____
    theorem1 = "____" if pareto_optimal else "____"
    theorem2 = "____"
    return {"____": allocation, "____": round(____), "____": round(____), "____": pareto_optimal, "____": theorem1, "____": theorem2}

示例

输入
solve([[7.5, 7.5], [7.5, 7.5]], [[10, 5], [5, 10]], [0.5, 0.5, 0.5, 0.5])
期望输出
{'配置': [[7.5, 7.5], [7.5, 7.5]], 'MRS1': 1.0, 'MRS2': 1.0, '帕累托最优': True, '第一定理': '竞争均衡是帕累托最优', '第二定理': '可通过禀赋再分配实现'}
Python 代码 🔒 登录后使用
🔒

登录后即可练习

注册免费账号,在浏览器中直接运行 Python 代码