norm_fit: Fit Normal Distribution to a Vector/stock prices.
Description
This function takes a numeric vector and fits a normal distribution to it using the
fitdist function from the fitdistrplus package. It returns a list with the mean
and standard deviation parameters of the fitted normal distribution, as well as
the AIC and BIC values of the fitted distribution.
Usage
norm_fit(vec)
Value
A list with the following components:
par
a numeric vector with the estimated mean and standard deviation
parameters of the fitted normal distribution.
aic
a numeric value representing the Akaike information criterion (AIC)
of the fitted distribution.
bic
a numeric value representing the Bayesian information criterion (BIC)
of the fitted distribution.
Arguments
vec
a numeric vector to be fitted with a normal distribution.