mybassm


Namemybassm JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/anukzak22/mybassm
Summaryit is a packgae that does bass modeling
upload_time2023-05-17 10:37:13
maintainer
docs_urlNone
authorAnahit Zakaryan
requires_python>=3.6
licenseMIT license
keywords mybassm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==================
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:

.. code-block:: shell

    $ 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:

.. code-block:: python

        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 <https://github.com/anukzak22/mybassm>`_

Authors
-------

Anahit Zakaryan


=======
History
=======

0.1.1 (2023-05-17)
------------------

0.1.0 (2023-05-17)
------------------

* First release on PyPI.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/anukzak22/mybassm",
    "name": "mybassm",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "mybassm",
    "author": "Anahit Zakaryan",
    "author_email": "anukzak@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/02/2a/3c9e81948c30d28e254be45f1a943ac4e7dcd6c012acf4c4a8b1e76f0659/mybassm-0.1.1.tar.gz",
    "platform": null,
    "description": "==================\nBass Model Package\n==================\n\nOverview\n--------\n\nThe 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.\n\nFeatures\n--------\n\n- Calculate diffusion using the Bass Model.\n- Estimate parameters using the `bass_f` function.\n- Generate cumulative adoption curve using the `bass_F` function.\n- Predict future adoption using the `predict_bass_model` function.\n- Plot the predicted adoption curve.\n\nInstallation\n------------\n\nYou can install the Bass Model Package from PyPI using pip:\n\n.. code-block:: shell\n\n    $ pip install mybassm\n\n\nUsage\n-----\n\nThe package provides the following main functions:\n\n- diffusion: Calculate the diffusion of the product based on the Bass Model.\n- bass_f: Calculates the fraction of the total market that has adopters at time `t` using the Bass diffusion model.\n- bass_F: Calculates the fraction of the total market that has adopted up to and including time t using the Bass diffusion model.\n- predict_bass_model: Predicts future adoption rates based on a given set of time periods and the estimated Bass model parameters.\n\n\n\nExamples\n--------\n\nHere's a simple example to demonstrate the usage of the Bass Model Package:\n\n.. code-block:: python\n\n        from mybassm.mybassm import diffusion, bass_f, bass_F, predict_bass_model\n\n        # Calculate diffusion\n        diffusion_rate = diffusion(sales, t)\n\n        # Estimate Bass Model parameters\n        p, q = bass_f(t, p, q)\n\n        # Generate cumulative adoption curve\n        t_values, cumulative_adoption = bass_F(t, p, q)\n\n        # Predict future adoption\n        params= p,q,m\n        predicted_adoption = predict_bass_model(params, t)\n\n        #Plots the bass model \n        plot_bass_model(params, y_pred)\n        plot_bass(p, q, title)\n\n\nLicense\n-------\n\nThe Bass Model Package is released under the MIT License. For more information, see the LICENSE\n\nReferences\n----------\n\n- Suddhachit Mitra, \"Forecasting the Diffusion of Innovative Products Using the Bass Model at the Takeoff Stage.\"\n- Professor Hovhanissyan lectures.\n\nContributing\n------------\n\nContributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on the `Github <https://github.com/anukzak22/mybassm>`_\n\nAuthors\n-------\n\nAnahit Zakaryan\n\n\n=======\nHistory\n=======\n\n0.1.1 (2023-05-17)\n------------------\n\n0.1.0 (2023-05-17)\n------------------\n\n* First release on PyPI.\n",
    "bugtrack_url": null,
    "license": "MIT license",
    "summary": "it is a packgae that does bass modeling",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/anukzak22/mybassm"
    },
    "split_keywords": [
        "mybassm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8c096c75904ac4c9d7263537639092b1e302f29d46209918ffa78fbb58afcb0b",
                "md5": "54ac1decfebbeeadca7700fedffcdc6a",
                "sha256": "81db67e0632461454dc9fa191de740b109c7a2796c3256451abea7c56936218d"
            },
            "downloads": -1,
            "filename": "mybassm-0.1.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "54ac1decfebbeeadca7700fedffcdc6a",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6",
            "size": 5337,
            "upload_time": "2023-05-17T10:37:11",
            "upload_time_iso_8601": "2023-05-17T10:37:11.149103Z",
            "url": "https://files.pythonhosted.org/packages/8c/09/6c75904ac4c9d7263537639092b1e302f29d46209918ffa78fbb58afcb0b/mybassm-0.1.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "022a3c9e81948c30d28e254be45f1a943ac4e7dcd6c012acf4c4a8b1e76f0659",
                "md5": "d4bcd534fdd05b100959acafbe4155fa",
                "sha256": "c021ed8d9cb8933f9807016432eff4149ff430f659c158c6b4105767dad174ba"
            },
            "downloads": -1,
            "filename": "mybassm-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d4bcd534fdd05b100959acafbe4155fa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 11687,
            "upload_time": "2023-05-17T10:37:13",
            "upload_time_iso_8601": "2023-05-17T10:37:13.337821Z",
            "url": "https://files.pythonhosted.org/packages/02/2a/3c9e81948c30d28e254be45f1a943ac4e7dcd6c012acf4c4a8b1e76f0659/mybassm-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-17 10:37:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "anukzak22",
    "github_project": "mybassm",
    "github_not_found": true,
    "lcname": "mybassm"
}
        
Elapsed time: 0.09993s