Im using VaR to estimate parametric VaR. I have been able to do this using a Normal Distribution, however I want to also do this using a Student t-distribution and I'm unsure how to implement that in Matlab.
I have a dataset of portfolio values, I have log returns and returns as well as mean and standard deviation. The only suggested method I was able to find elsewhere was the following:
$\mu - t_\alpha * (sd/\sqrt{n})$
Where $\mu$ is the mean, sd is the standard deviation, t is the t stat at the alpha level and n is the number of returns. This would give the lower level of the alpha confidence interval.
Can anyone confirm if this is the correct or incorrect method to implement parametric VaR using a t-distribution. If it is incorrect, how would I be able to implement it?
Thanks