Git Product home page Git Product logo

de-centralized-pricing's Introduction

Centralized vs Decentralized Pricing Controls for Dynamic Matching Platforms: Simulation and Analysis Code

This repository contains the simulation and analysis code for the paper "Centralized Versus Decentralized Pricing Controls for Dynamic Matching Platforms." The paper examines the effects of centralized and decentralized pricing controls on online service platforms using a fluid model of dynamic two-sided matching. Our simulations and analysis compare various degrees of centralization and their impact on social welfare.

The simulations were implemented in Mathematica and Python, and the data analysis and plotting were done in R. In this repository, you'll find the necessary files to replicate our simulations.

Dependencies

The following software and package versions were used in this project:

Mathematica

  • Mathematica 11.2.0 for Microsoft Windows (64-bit)

Python

  • Python 3.7.3
  • NumPy 1.16.2
  • pandas 0.24.2
  • scipy 1.2.1
  • matplotlib 3.0.3

R

  • R version 4.1.0 (2021-05-18)
  • ggplot2 3.3.6
  • data.table 1.14.0
  • gridExtra 2.3
  • latex2exp 0.5.0
  • ggnewscale 0.4.7
  • plyr 1.8.6
  • paletteer 1.5.0.9000
  • grDevices 4.1.0
  • ggpubr 0.4.0

Directory Structure

  • mathematica/: Folder containing Mathematica notebooks for the simulations
  • python/: Folder containing Python scripts for the simulations
  • r/: Folder containing R scripts for data analysis and plotting
  • data/: Folder containing simulation results to generate the figures in the paper

Usage

Running Mathematica for solving Piecewise Polynomial System

  1. Open the desired Mathematica notebook in the mathematica/ folder.
  2. Run the notebook MathematicaRunFile to replicate the main results in Section 6 of the paper. For detailed analysis of the underlying code, go to the notebook SystemOfPolynomialsOnly.

Running Python Simulations

  1. Navigate to the python/ folder.
  2. Replicate the simulation results in the paper that are used for robustness check using the Jupyter notebook SimulationCodeForSubmission.ipynb.

Analyzing and Plotting Results with R

  1. Navigate to the r/ folder in your terminal.
  2. Run the R script in the Jupyter notebooks Figures_RcodeForPiecewisePolynomials_Jupyter.ipynb and Figures_RcodeForSimulation_Jupyter.ipynb to create the figures in the paper.

License

This project is licensed under the terms of the MIT License.

Contact

For any questions, issues, or concerns, please contact the author at [email protected] .

de-centralized-pricing's People

Contributors

omersaritac avatar

Watchers

 avatar

Forkers

ma-aouad

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.