This is a package containing several bass model functions that are useful for solving or evaluating marketing related problems
Project description
# MarkBassModel
The MarkBassModel package is a Python package that provides functions for fitting and predicting using the Bass diffusion model.
## Description
The Bass diffusion model is a popular method in marketing analytics used to forecast the rate of adoption of new products in a market. The MarkBassModel package offers functionality to assist with various tasks related to product marketing and adoption, including:
Forecasting product sales
Estimating market potential through diffusion analysis
Comparing the performance of different products
## Functions
The MarkBassModel package provides the following functions:
### diffusion(sales)
This function calculates the cumulative diffusion curve based on the sales data provided.
### adoption_rate(t, p, q, m, N)
This function calculates the adoption rate at a given time based on the Bass diffusion model’s parameters.
t: Time at which the adoption rate is calculated.
p: Coefficient of innovation.
q: Coefficient of imitation.
m: Total market potential.
N: Cumulative number of adopters at time t.
### bass_f(t, p, q)
This function calculates the Bass diffusion curve at a given time based on the Bass diffusion model’s parameters.
### bass_F(t, p, q)
This function calculates the cumulative Bass diffusion curve at a given time based on the Bass diffusion model’s parameters.
### predict_bass_model(params, m)
This function predicts the diffusion of a new product using the Bass diffusion model’s parameters (p and q) and the total market potential (m).
### plot_bass(p, q, title)
This function plots the Bass diffusion curve for the given parameters p and q. The title parameter specifies the title of the plot.
## Installation
You can install the MarkBassModel package using pip:
`shell pip install markbassmodel `
## Usage
To use the MarkBassModel package, start by importing it:
`python import markbassmodel `
To calculate the parameters:
`python markbassmodel.diffusion(sales) `
To plot the Bass diffusion curve:
`python markbassmodel.plot_bass(params['p'], params['q'], 'Bass diffusion curve') `
## Example Data
You can find a sample dataset of smartphone sales over a period of time [here](https://drive.google.com/drive/folders/1rtiKrg9xa2TMH8cTqN2l-eHWqQG1ZH6c?usp=sharing). You can use this dataset to test and experiment with the MarkBassModel package.
## License
The MarkBassModel package is released under the [MIT License](https://opensource.org/licenses/MIT).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markbassmodel-0.1.1.tar.gz.
File metadata
- Download URL: markbassmodel-0.1.1.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c2c112aa0b9176605ecd61a63b2d988859d455dcf734a75a203a4dfa5c75725
|
|
| MD5 |
ccc976d2cc7209e813298a3f4a7e8724
|
|
| BLAKE2b-256 |
704cf274554018cf1b143172e9b7f5ddcad39e859e554a38e796fa3a0a2131e5
|
File details
Details for the file markbassmodel-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: markbassmodel-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e06618be076250621e97b39401f0f46f2afd2635e209226e94bfced62fec0f27
|
|
| MD5 |
ad59c7806cc11283aa4ebdea3767ebc2
|
|
| BLAKE2b-256 |
d4349cfce58a76aafb3a05383f1fac519e10ce41da45e2fd26c0d102a82972f9
|