I am estimating the parameters (alpha, beta, gamma, delta) of a stable distribution from a list of numerical data. I used a package to generate data from one type of stable distribution, specifically the standard Levy distribution.
if (!require("stable")) {
install.packages("stable", repos = "http://R-Forge.R-project.org")
library(stable)
}
# Set seed for reproducibility
set.seed(123)
# Generate 100 points from a standard Lévy distribution
levy_data <- rstable(n = 100, alpha = 0.5, beta = 1, gamma = 1,
delta = 0, pm = 0)
After that, I used a simple MLE method to find the four parameters.
# Perform Maximum Likelihood Estimation (MLE) to estimate parameters
levy_fit <- stable.fit(levy_data, method = 1)
# Using method = 1 for MLE
# Print the estimated parameters
print(levy_fit)
Now since for a actual dataset, we would not have know the parameters before hand. So we need a way to measure the goodness of fit of the theoretical distribution we obtained to our data. My professor suggested using RMSE to assess the goodness of fit, similar to machine learning model evaluations. However, since there's no dependent variable and RMSE compares predicted versus actual observations, I'm questioning its suitability for this task.
I believe log-likelihood could be a better fit for assessing goodness in this context, and I am looking into other methods as well. I would appreciate any insights on:
- Why RMSE may not be suitable for probability distribution fitting.
- Alternative methods for measuring goodness of fit in stable distributions.