Giter VIP home page Giter VIP logo

john-rust-1987-python's Introduction

sh

Introduction

Date

April 11, 2015

Version

0.9.0

Authors

Quentin ANDRE, [email protected]

Web site

https://github.com/QuentinAndre/John-Rust-1987-Python

Copyright

This document has been placed in the public domain.

License

John-Rust-1987-Python is released under the MIT license.

Purpose

John-Rust-1987-Python provides a Python implementation of the single agent dynamic choice model of bus engine replacement described by John Rust in his 1987 article "Optimal replacement of GMC bus engines: An empirical model of Harold Zurcher".

Content

1. Data Generation and Likelihood Fit.ipynb: An IPython notebook describing the different steps used to:
  • Generate the bus mileage data
  • Compute the forward-looking (dynamic) utility of the agent
* Generate four datasets of bus engine replacement:
  • One assuming a linear maintainance cost (Lin_Dataset.csv)
  • One assuming a quadratic maintainance cost (Quad_Dataset.csv)
  • One assuming an exponential maintainance cost (Exp_Dataset.csv)
  • One assuming a logarithmic maintainance cost (Log_Dataset.csv)
  • Estimate the parameters of this bus replacement pattern
  • Plot the results of this estimation against the true underlying parameters.
  1. dynamiclogit.py: A library containing a DynamicUtility class, which can be used as a statistical workbench to estimate single-agent dynamic choice models. The state transition probabilities of the buses and the form of the maintenance cost are supplied at the class initialization as an external parameters, which allows to test a wide range of specifications.

Installation

Dependencies

This code has been tested in Python 3.4, using the Anaconda distribution:

Download

* Using git:
* Download the master branch as a zip:

References

Rust, J. (1987). Optimal replacement of GMC bus engines: An empirical model of Harold Zurcher. Econometrica: Journal of the Econometric Society, 999-1033.

john-rust-1987-python's People

Contributors

alphagammamle avatar quentinandre avatar

Watchers

 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.