This commit is contained in:
rasbt 2014-04-24 16:22:15 -04:00
commit d7866ae8b5
2 changed files with 1 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -6,7 +6,7 @@ def comp_theta_mle(d):
dataset for a Rayleigh distribution.
"""
theta = len(d) / sum([x^2 for x in d])
theta = len(d) / sum([x**2 for x in d])
return theta
def likelihood_ray(x, theta):