En este video, demostraremos cómo construir una o más caminos de simulación, calcular un valor (ej. mediana) para el camino de simulación, luego ejecutar la simulación varias veces y recoger el valor calculado para cada ejecución. Finalmente, usando los valores recolectados, llevaremos a cabo un pequeño resumen de estadísticas (ej. Historiograma, prueba de normalidad, etc.) para entender mejor la propiedad estadística de este valor.
Hello and welcome to the NumXL simulation tutorial. In this video we will demonstrate the steps to construct one simulation path using an ARIMA model then run the simulation several times and collect the target value or statistics. For our example we will use an ARIMA 511 model for monthly sales process, recent monthly sales figures, and estimate the median of monthly sales for the following year. We'll do the whole tutorial using only NumXL 1.63 and Microsoft Excel functionality.
Select the cell that heads our ARIMA model in column E, then locate and click on the simulation icon in the NumXL toolbar.
The simulation wizard pops up. Notice that the model field references the current active cell in your worksheet. Now, select the latest observations in your sample data. Change the horizon to 12, leave the number of simulation paths to 1, and the seed to 100. Select an empty cell in your worksheet where you wish the simulation path to be displayed. Click OK when you're done.
The simulation path is generated in your workbook, note you add one more simulation path by simply copying the formula to the adjacent columns. For now one simulation path is sufficient.
Next, we wish to calculate the median of the monthly sales for the next 12 months. To get meaningful statistics for the median value we need to run the simulation multiple times. Select an empty cell where you wish to display the median value of the different simulation runs. Locate the Run icon on the NumXL toolbar.
The simulation run wizard pops up, note that the output field references the current active cell in your worksheet.
Next, in the target cell select the cell that has the median formula F30. For the calculation range select active worksheet. By doing so, the wizard will evaluate all of the cells on the current worksheet during each simulation run. You can further fine-tune it by selecting a cells range, but for our tutorial we will select current worksheet.
Now set the number of simulations to 100, then click OK.
The simulation run wizard generated the median for each of the 100 independent simulation runs. Now we may wish to run any type of summary statistics to better understand this value, in other words the median.
Let's plot the histogram for those values. Select an empty cell in your worksheet, locate the summary statistics icon, and click on the histogram item.
Select the simulation runs output as the input data and then click OK.
And here's the histogram table along with a reference gaussian distribution. Now let's examine the normality assumption of the value.
Select an empty cell in your workbook, locate the statistical test icon, and select the normality test item.
Again, select the simulation run output and then click OK.
And here we go! The normality tests for the median value of the monthly sales in the next 12 months.
That's it for now, thank you for watching!