Skip to main content

it is a packgae that does bass modeling

Project description

Bass Model Package

Overview

The Bass Model Package provides various functions for analyzing and predicting the diffusion of innovative products using the Bass Model. This package is based on the paper “Forecasting the Diffusion of Innovative Products Using the Bass Model at the Takeoff Stage” by Suddhachit Mitra and Professor Hovhanissyan lectures.

Features

  • Calculate diffusion using the Bass Model.

  • Estimate parameters using the bass_f function.

  • Generate cumulative adoption curve using the bass_F function.

  • Predict future adoption using the predict_bass_model function.

  • Plot the predicted adoption curve.

Installation

You can install the Bass Model Package from PyPI using pip:

$ pip install mybassm

Usage

The package provides the following main functions:

  • diffusion: Calculate the diffusion of the product based on the Bass Model.

  • bass_f: Calculates the fraction of the total market that has adopters at time t using the Bass diffusion model.

  • bass_F: Calculates the fraction of the total market that has adopted up to and including time t using the Bass diffusion model.

  • predict_bass_model: Predicts future adoption rates based on a given set of time periods and the estimated Bass model parameters.

Examples

Here’s a simple example to demonstrate the usage of the Bass Model Package:

from mybassm.mybassm import diffusion, bass_f, bass_F, predict_bass_model

# Calculate diffusion
diffusion_rate = diffusion(sales, t)

# Estimate Bass Model parameters
p, q = bass_f(t, p, q)

# Generate cumulative adoption curve
t_values, cumulative_adoption = bass_F(t, p, q)

# Predict future adoption
params= p,q,m
predicted_adoption = predict_bass_model(params, t)

#Plots the bass model
plot_bass_model(params, y_pred)
plot_bass(p, q, title)

License

The Bass Model Package is released under the MIT License. For more information, see the LICENSE

References

  • Suddhachit Mitra, “Forecasting the Diffusion of Innovative Products Using the Bass Model at the Takeoff Stage.”

  • Professor Hovhanissyan lectures.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on the Github

Authors

Anahit Zakaryan

History

0.1.1 (2023-05-17)

0.1.0 (2023-05-17)

  • First release on PyPI.

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

mybassm-0.1.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mybassm-0.1.1-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mybassm-0.1.1.tar.gz.

File metadata

  • Download URL: mybassm-0.1.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for mybassm-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c021ed8d9cb8933f9807016432eff4149ff430f659c158c6b4105767dad174ba
MD5 d4bcd534fdd05b100959acafbe4155fa
BLAKE2b-256 022a3c9e81948c30d28e254be45f1a943ac4e7dcd6c012acf4c4a8b1e76f0659

See more details on using hashes here.

File details

Details for the file mybassm-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: mybassm-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for mybassm-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 81db67e0632461454dc9fa191de740b109c7a2796c3256451abea7c56936218d
MD5 54ac1decfebbeeadca7700fedffcdc6a
BLAKE2b-256 8c096c75904ac4c9d7263537639092b1e302f29d46209918ffa78fbb58afcb0b

See more details on using hashes here.

Supported by

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