P(A) =

P(B|A) =

P(B|noA) =

Ver con enteros

N =

B = (-4, 6)
a = 0.25 (slider from 0 to 1, step 0.001)
ba = 0.92 (slider from 0 to 1, step 0.001)
CasillaDeEntradaA = Textfield(a)
CasillaDeEntradaBA = Textfield(ba)
bnoa = 0.7 (slider from 0 to 1, step 0.001)
CasillaDeEntradaBnoA = Textfield(bnoa)
textoPAB: "" + ba + ""
textoPAB': "" + (1 - ba)
textoPA'B': "" + (1 - bnoa)
textoPA'B: "" + bnoa
r = 0.8 (slider from 0 to 5, step 0.1)
f = true
n = 1000
campoDeTexto1 = Textfield(n)
textonB: "" + ((a * n))
textonB': "" + (((1 - a) * n))
textonC': "" + (((a * (1 - ba)) * n))
textonC: "" + (((a * ba) * n))
textonC''': "" + ((((1 - a) * (1 - bnoa)) * n))
textonC'': "" + ((((1 - a) * bnoa) * n))
textoBayes: "P(A|B)=\frac{ " + (LaTeX[(a * ba)]) + "}{" + (LaTeX[(a * ba)]) + "+" + (LaTeX[(bnoa * (1 - a))]) + "}=" + (LaTeX[(a * ba / ((a * ba) + ((1 - a) * bnoa)))]) + ""
textoBayes2: "P(A|B)=\frac{ " + (LaTeX[((n * a) * ba)]) + " }{" + (LaTeX[((n * a) * ba)]) + " + " + (LaTeX[((n * (1 - a)) * bnoa)]) + "}=" + (LaTeX[(a * ba / ((a * ba) + ((1 - a) * bnoa)))]) + " "
A: B + (10, 0)
polígono1, b, c, d, e, C, D = Polygon(A, B, 4)
E: A + (0, (-10 * a))
F: B + (0, (-10 * a))
g = Segment(F, E)
G: B + ((10 * ba), 0)
H: F + ((10 * ba), 0)
polígono2, b_1, g_1, h, f_1 = Polygon(B, G, H, F)
polígono3, g_2, h_1, e_1, a_1 = Polygon(G, H, E, A)
I: C + ((10 * bnoa), 0)
J: F + ((10 * bnoa), 0)
polígono4, f_2, j, i, c_1 = Polygon(F, J, I, C)
polígono5, j_1, e_2, d_1, i_1 = Polygon(J, E, D, I)
textoPA: "P(A)=" + (LaTeX[a]) + ""
textoPA': "P(\bar{A})=" + (LaTeX[1 - a]) + ""
textoPAyB: "P(A \cap B)  \\ = " + (LaTeX[a]) + "· " + (LaTeX[ba]) + " \\ =" + (LaTeX[(a * ba)]) + "  "
textoPAyB': " P(A\cap \bar{B})  \\ =" + (LaTeX[a]) + " ·" + (LaTeX[1 - ba]) + "\\ =" + (LaTeX[(a * (1 - ba))]) + " "
textoPA'yB': "P(\bar{A} \cap \bar{B})  \\ =" + (LaTeX[1 - a]) + " ·" + (LaTeX[1 - bnoa]) + "\\ =" + (LaTeX[((1 - a) * (1 - bnoa))]) + "  "
textoPA'yB: "P(\overline{A}\cap B)  \\ =" + (LaTeX[1 - a]) + " ·" + (LaTeX[bnoa]) + "\\ =" + (LaTeX[((1 - a) * bnoa)]) + " "