Skip to main content

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.

To forecast how quickly new items will be adopted in a market, the Bass model is a well-liked method in marketing analytics. The Bass model package can be used to aid with a number of issues relating to the marketing and adoption of new products, such as:

  • Forecasting product sales

  • Estimating the market potential with diffusion

  • Comparing the performance of different products

## Functions

‘diffusion(sales)’ This function calculates the cumulative diffusion curve for a given set of data’s slaes column.

‘adoption_rate(t, p, q, m, N)’ This function calculates the adoption rate for a given set of parameters and time.

‘bass_f(t, p, q)’ This function calculates the Bass diffusion curve for a given set of parameters and time.

‘bass_F(t, p, q)’ This function calculates the cumulative Bass diffusion curve for a given set of parameters and time.

‘predict_bass_model(params, m)’ This function predicts the diffusion of a new product using the parameters p and q and the total market potential m.

‘plot_bass(p, q, title)’ This function plots the Bass diffusion curve for a given set of parameters.

## Installation

To install the bassmodel package, you can use pip:

` pip install markbassmodel ` ## Usage

To use the markbassmodel package, first import it: ` import markbassmodel `

calculate the parameters

` diffusion(sales) `

plot the Bass diffusion curve: ` bassmodel.plot_bass(params['p'], params['q'], 'Bass diffusion curve') `

Sample data to check the package

[ https://drive.google.com/drive/folders/1rtiKrg9xa2TMH8cTqN2l-eHWqQG1ZH6c?usp=sharing ]

the data contain smartphones sales over some period git

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

markbassmodel-0.1.0-py2.py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 2 Python 3

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