Skip to main content

# 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).

Metadata

Release files for markbassmodel 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for markbassmodel 0.1.1
File Size Uploaded
markbassmodel-0.1.1.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for markbassmodel 0.1.1
File Interpreter ABI Platform
markbassmodel-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 17.2 kB

Release files / markbassmodel-0.1.1.tar.gz

Download URL markbassmodel-0.1.1.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4c2c112aa0b9176605ecd61a63b2d988859d455dcf734a75a203a4dfa5c75725
BLAKE2b-256 checksum
How to use checksums
704cf274554018cf1b143172e9b7f5ddcad39e859e554a38e796fa3a0a2131e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / markbassmodel-0.1.1-py2.py3-none-any.whl

Download URL markbassmodel-0.1.1-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e06618be076250621e97b39401f0f46f2afd2635e209226e94bfced62fec0f27
BLAKE2b-256 checksum
How to use checksums
d4349cfce58a76aafb3a05383f1fac519e10ce41da45e2fd26c0d102a82972f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page