testuser's avatar

Test User @testuser 1ca0b7d7

Bio: This is another demo account created by me to monitor changes as a non-admin account.

Location: Skyrim

Email: [email protected]

Recent Comments

  • On Rules of Probability Theory Explained:

    Example comment on the first article. This comment also demonstrates the ability to format text and insert code with auto-highlight like:

    class ProbabilityRules:
    def sum_rule(p_XY):
    p_X = {}
    for X, Y in p_XY:
    p_X[X] = p_X.get(X, 0) + p_XY[(X, Y)]
    return p_X

    def product_rule(p_Y_given_X, p_X):
    p_XY = {}
    for Y, X in p_Y_given_X:
    p_XY[(X, Y)] = p_Y_given_X[(Y, X)] * p_X[X]
    return p_XY

    def bayes_theorem(p_X_given_Y, p_Y, p_X):
    p_Y_given_X = {}
    for X, Y in p_X_given_Y:
    p_Y_given_X[(Y, X)] = (p_X_given_Y[(X, Y)] * p_Y[Y]) / p_X[X]
    return p_Y_given_X

    Also, I can add formulae by wrapping them in a single or double '$' symbols:
    $$p(X = x_i) = \sum_{j=1}^{L} p(X = x_i, Y = y_j)$$