GithubHelp home page GithubHelp logo

market-models's Introduction

Fisher-market

Fisher markets and associated solvers. A market is built in market.py. You can declare parameters of the market in fisherExample.py and solve for market prices depending on the type of utility function you would like to use using the structure in fisherExample.py.

The project currently supports "linear" and "quasi-linear" utilities. You can solve the market with the function solveMarket() and passing it as argument the utility structure you desire as a string:

# Matrix of valuations: |buyers| x |goods|
valuations = np.array([[1,3,5,1,2], [2,5,6,2,6],
    [6,3,5,1,4], [3,3,4,2,6]])

# Budgets of buyers: |buyers|
budgets = np.array([20, 23, 54, 12])

# Vector with quantity of goods: |goods|
numGoodsVec = np.array([1,2,6,4,3])

# Create Market
market1 = m.Market(valuations, budgets, numGoodsVec)

# Solve for market prices and allocations for
# desired utility function structure.

# Current Options are 'quasi-linear' and 'linear'
market1.solveMarket("quasi-linear")
market1.solveMarket("linear")

Note, the linear program is formulated, assuming that there is only one unit of each good in the market. In order to get around this, for each copy of a good, an extra column with the exact same preference for the good is added to the valuations matrix. Then, the original convex program can be solved to find the optimal prices and allocation.

Arrow debreu model with functions but that has demand side that takes wages as input, prove that model has equilibrium ans discuss the conseqences of the shape of the curves on model. Because for instance supply side curve takes prices and outputs wages, this is basically a measure of corpoarte profit, so it basically means inequality

the cycle thing also can explain how you can lose money on equilibrium even if you start with budget

market-models's People

Contributors

denizalp avatar eareyan avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.