Code Monkey home page Code Monkey logo

guadagni-little-1983-python's Introduction

Introduction

Date: March 15, 2015
Version: 1.0.0
Authors: Quentin ANDRE
[email protected]
Web site:https://github.com/QuentinAndre/Guadagni-Little-1983-Python
Copyright: This document has been placed in the public domain.
License:Guadagni-Little-1983-Python is released under the MIT license.

Purpose

Guadagni-Little-1983-Python provides a Python implementation of the mixed/conditional logit model of product choice outlined by Guadagni and Little in their 1983 article "A Logit Model of Brand Choice Calibrated on Scanner Data".

Content

  1. Dataset Recreation.py: A script to create from scratch a purchase history dataset of N consumers over T time periods for K options. All the parameters in the script can be changed to generate a different dataset. As in the original paper, the consumers are heterogenous in their loyalty to the brand and to the different sizes offered. The script outputs four files:
  • GuadagniLittle1983.csv, which contains the simulated scanner data
  • TrueBetas.csv, which contains the true parameters used to generate the data.
  • BrandShares.png, which plots the evolution of market shares for the brands over time.
  • SizeShares.png, which plots the evolution of market shares for the sizes over time.
  1. Mixed Logit Estimation.py: A script to recover the parameters used to generate the data. As in the original paper, the the utility of the first option is constrained to be 1 to allow identification of the (K-1) brand intercepts and of the J utility components for the attributes (which are common to all brands).
  2. Recreation and Estimation.ipynb: An IPython notebook combining the two aforementioned files, and describing in details the different steps of the data creation and data estimation process
  3. Recreation and Estimation.html: An HTML export of the aforementioned notebook.

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

Guadagni, P. M., & Little, J. D. (1983). A logit model of brand choice calibrated on scanner data. Marketing science, 2(3), 203-238.

guadagni-little-1983-python's People

Contributors

quentinandre 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.