If I have a Weibull distribution with a CDF of: $P_\theta (\lambda ,k) = (\frac{k}{\lambda })(\frac{x_i}{\lambda})e^{-(\frac{x_i}{\lambda})^k}$ for $x_i > 0$
And a MSE of:
$J_{\lambda ,k}(x) = \frac{1}{2m}\Sigma^{m}_{i = 1}(P_{\lambda ,k}(x_i) - y_i)^2$
I was wondering if my $x_i$ values should be the data I have and $y_i$ should be given by $y_i = \frac{x_i}{m}$, am I thinking about this correctly?
I need to know these values for the MSE function so that I can try to optimize the parameters $k, \lambda$.