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
History
0.1.1 (2023-05-17)
0.1.0 (2023-05-17)
First release on PyPI.
Metadata
Release files for mybassm 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mybassm-0.1.1.tar.gz | 11.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mybassm-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 17.0 kB
Release files / mybassm-0.1.1.tar.gz
| Download URL | mybassm-0.1.1.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c021ed8d9cb8933f9807016432eff4149ff430f659c158c6b4105767dad174ba
|
|
BLAKE2b-256 checksum How to use checksums |
022a3c9e81948c30d28e254be45f1a943ac4e7dcd6c012acf4c4a8b1e76f0659
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / mybassm-0.1.1-py2.py3-none-any.whl
| Download URL | mybassm-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
81db67e0632461454dc9fa191de740b109c7a2796c3256451abea7c56936218d
|
|
BLAKE2b-256 checksum How to use checksums |
8c096c75904ac4c9d7263537639092b1e302f29d46209918ffa78fbb58afcb0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|