I have a sales data for few years, I want to distribute data for few quarters. I can simply divide a that sales number over four quarters, but I would like to have it like a gaussian distribution or sinusoidal distribution kind of using python code. Any idea would be of great help. Asking for the first time in stack overflow, forgive me if I there is some mistake in my presentation.
What I have
| Year | Sales |
|---|---|
| 2020 | 1400 |
| 2021 | 1800 |
What is required
| Quarter | Sales |
|---|---|
| 2020Q1 | 300 |
| 2020Q2 | 500 |
| 2020Q3 | 400 |
| 2020Q4 | 200 |
when I sum up all quarter values it sums up to 1400 as above.
I tried to check if there are few modules, I found there is a module called sympy but dont know how to fit my problem in that.
I don't think you need SymPy for this. The python
randommodule has the ability to generate random numbers in a Gauss distribution but this is going to be hard to see on only 4 bins. One approach would be to generate random numbers (with some distribution), scale them to get close to the answer, add any deficit, and then sort them and return them centered on the maximum value to get some peak symmetry:e.g.