Skip to main content

Python library providing NonParametric models for Value of Travel Time analysis

Project description

NP4VTT

NP4VTT is a Python package that enables researchers to estimate and compare nonparametric models in a fast and convenient way. It comprises five nonparametric models for estimating the VTT distribution from data coming from two-attribute-two-alternative stated choice experiments:

  • Local constant model (Fosgerau, 2006, 2007)
  • Local logit (Fosgerau, 2007)
  • Rouwendal model (Rouwendal et al., 2010)
  • Artificial Neural Network (ANN) based VTT model (van Cranenburgh & Kouwenhoven, 2021)
  • Logistic Regression based VTT model (van Cranenburgh & Kouwenhoven, 2021)

Additionally, a Random Valuation model (Ojeda-Cabral, 2006) is included for benchmarking purposes

Installation steps

  • Use pip to install the py-np4vtt library normally:
    • python3 -m pip install py-np4vtt

Examples

We provide Jupyter Notebooks that show how to configure and estimate each model included in NP4VTT:

  • Local constant model: link
  • Local logit: link
  • Rouwendal model: link
  • ANN-based VTT model: link
  • Logistic Regression-based VTT model: link

These examples guide the user through the process of loading a dataset, estimating a nonparametric model, and visualising the VTT distribution using scatter and histogram plots. We use the Norwegian 2009 VTT data to illustrate each example.

Take, for example, the VTT distribution from the Rouwendal model using NP4VTT:

VTT distribution from the Rouwendal model using NP4VTT

References

  • Fosgerau, M. (2006). Investigating the distribution of the value of travel time savings. Transportation Research Part B: Methodological, 40(8), 688–707. https://doi.org/10.1016/j.trb.2005.09.007
  • Fosgerau, M. (2007). Using nonparametrics to specify a model to measure the value of travel time. Transportation Research Part A: Policy and Practice, 41(9), 842–856. https://doi.org/10.1016/j.tra.2006.10.004
  • Rouwendal, J., de Blaeij, A., Rietveld, P., & Verhoef, E. (2010). The information content of a stated choice experiment: A new method and its application to the value of a statistical life. Transportation Research Part B: Methodological, 44(1), 136–151. https://doi.org/10.1016/j.trb.2009.04.006
  • Ojeda-Cabral, M., Batley, R., & Hess, S. (2016). The value of travel time: Random utility versus random valuation. Transportmetrica A: Transport Science, 12(3), 230–248. https://doi.org/10.1080/23249935.2015.1125398
  • van Cranenburgh, S., & Kouwenhoven, M. (2021). An artificial neural network based method to uncover the value-of-travel-time distribution. Transportation, 48(5), 2545–2583. https://doi.org/10.1007/s11116-020-10139-3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-np4vtt-1.0.5.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

py_np4vtt-1.0.5-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file py-np4vtt-1.0.5.tar.gz.

File metadata

  • Download URL: py-np4vtt-1.0.5.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Darwin/22.4.0

File hashes

Hashes for py-np4vtt-1.0.5.tar.gz
Algorithm Hash digest
SHA256 6004f50ae99347ec99bfd419bdf2ee047a4cd2336ee324496f2cda05f3e23387
MD5 158100742f2ebb202a668f957a675191
BLAKE2b-256 4c3d55a1a5a2d08fb7352cebe2baa2864ed863db9447741f704e72b62abc16ec

See more details on using hashes here.

File details

Details for the file py_np4vtt-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: py_np4vtt-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Darwin/22.4.0

File hashes

Hashes for py_np4vtt-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 571e7dd2b1770cb5a227ec40d6e25469b0fa540c3a2d5e861d662c71e81c8493
MD5 2423ba74d20379c81d4dfda5e24167ea
BLAKE2b-256 fe4d32f65a190e3f4a754f61cea00d5a245f7ee478a683ee27099c701d7fee4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page