Skip to content

Instantly share code, notes, and snippets.

@michelkana
Created June 30, 2021 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michelkana/d01e53f51a92db7d4f30ebd41a5fd163 to your computer and use it in GitHub Desktop.
Save michelkana/d01e53f51a92db7d4f30ebd41a5fd163 to your computer and use it in GitHub Desktop.
# akaike information criterion
aic_A = 2*5 - 2*math.log(ml_A)
aic_B = 2*5 - 2*math.log(ml_B)
print("AIC for Product A: {:.2f}".format(aic_A))
print("AIC for Product B: {:.2f}".format(aic_B))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment