The variation of the average price of a product over a longer period is generally lower than a shorter period. I am interested to capture both uncertainties as to the input of the stochastic programming problem. Let's say the average price of oil in a week has a mean of $\overline{\lambda}_{w}$ and std of $\sigma_{w}$. Thus, the N samples representing the weakly average price of oil can be shown by $\lambda_{wi}, \ wi=1...N$.
On the other hand, let's represent the daily variations of oil price regarding each above mentioned generated sample with M other samples, e.g. $\lambda_{wi}^{dj},\ j=1:M$. Specifically, for each $wi$, the uncertainty around the daily price, despite having the same mean as the weekly sample, i.e. $\overline{\lambda_{wi}}^{dj=1:M} = \lambda_{wi}$, has a larger standard deviation, $\text{i.e } \sigma_{d}$.
To better illustrate, lets say we have N=2
samples regarding the average oil price during one week with the mean of $\overline{\lambda}_{w} = 100 \\\$$ and $\sigma_{w} = 20 \\\$$. Also, for each weakly sample, we have M=3
samples discirbing the daily variation of the price with $\overline{\lambda_{wi}}^{dj=1:M} = \lambda_{wi}$ and $ \sigma_{d} = 30$.
$\text{for } \lambda_{w1} = 80, \ \lambda_{d1}^{w1} = 50,\lambda_{d1}^{w1} =80,\lambda_{d1}^{w1}=110 \\ \text{for } \lambda_{w2} = 120, \ \lambda_{d1}^{w2} = 90,\lambda_{d1}^{w2} = 120,\lambda_{d1}^{w2}=150$
Assume that the uncertainty in both time periods can be modeled as a Gaussian distribution function.
Q1) How can I generate N
samples with a mean of $\overline{\lambda}_{w}$ and std of $\sigma_{w}$ as well as M
other samples with mean of $\overline{\lambda_{wi}}^{dj=1:M} = \lambda_{wi}$ and $\sigma_{d} $
Q2) How can I generate the above samples while considering the std of the daily price variations as a function of weekly average sample: e.g. $\sigma_{di} = \lambda_{wi}/10$
If possible please give some hints for Matlab or Python implementation of such a sampling method.