Thefirstnumberfromthefirstrowcorrespondstothefirstprobabilityfromthefirstrowofthe X matrix, thesecondelementtothesecondprobabilityasshowninthe X matrixandsoon.
Great.
Thewholeexpressioncorrespondingto Z willbeofthetypenormPPFopenparenthesis, numbpie, randomranopenanotherparenthesis 10 andtocloseallparentheses.
I willattributethevalueof 10 whichmeans I willaskthecomputertoproduceTinSiri's offuturestockpricepredictions.
Okay, thevariabledailyreturnswillshowuswhatwillequal e tothepowerofourWediscussedthisinthetheoreticallesson.
Remember, wewillneednumbpies, e x p function, whichmeanswearecalculatingOilersnumber E raisedtothepoweroftheexpressionwrittenbetweentheparenthesesintheparentheses.
Wewillhavethevalueofthedriftintheproductof a standarddeviationandtherandomcomponentcreatedwiththehelpofthenormmodule.
It's percentagevalueisgeneratedwithnumbpies, randfunctionusingtimeintervalsandgenerationsspecifyingthedimensionsofthearrayfilledwithvaluesfrom 0 to 1.
Great.
Sotheformulaweusedinthepreviouscellwouldallowustoobtain a 1000 by 10 arraywithdailyreturnvalues 10 setsof 1000 randomfuturestockprices.
Great.
Weare a singlestepawayfromcompletingthisexercisewilldothatinournextlecture.