Positius certs

Falsos positius

Negatius certs

Falsos negatius

Incidència de la infecció

Índex de falsos negatius

Índex de falsos positius

identifica les zones "infectada"  i  "sana"

identifica la zona "falsos positius"

Falsos positius

Positius certs

Falsos negatius

Negatius certs

identifica la zona "negatius certs"

identifica la zona "falsos negatius"

identifica la zona "positius certs"

Mostra els càlculs de les 4 zones

Mostra la suma de les dues zones "prova positiva"

Mostra les probabilitats si la prova ha sortit positiva

falseneg = 0.12 (slider from 0.01 to 0.99, step 0.01)
falsepos = 0.2 (slider from 0.01 to 0.99, step 0.01)
incidence = 0.15 (slider from 0.01 to 0.99, step 0.01)
A = Intersect(xAxis, yAxis)
B = Point(xAxis)
poly1, a, b, c, d, C, D = Polygon(A, B, 4)
E: (0, incidence)
F: (1, y(E))
G: (falseneg, 0)
I: (x(G), y(E))
H: (falsepos, 1)
J: (x(H), y(E))
poly2, g, b_1, f, i = Polygon(G, B, F, I)
poly3, e, j, h, d_1 = Polygon(E, J, H, D)
k_2 = Segment(E, F)
p: poly2 / (poly2 + poly3)
poly4, j_1, f_1, c_1, h_1 = Polygon(J, F, C, H)
poly5, a_1, g_1, i_1, e_1 = Polygon(A, G, I, E)
inputBox1 = Textfield(incidence)
inputBox3 = Textfield(falseneg)
inputBox2 = Textfield(falsepos)
K = (-0.543546683908323, -0.3336473089141602)
q = Circle(K, 0.2)
L: K + (0.2, 0)
M: K + (0.2 * cos(360° * p), 0.2 * sin(360° * p))
r_1 = CircleSector(K, L, M)
s = CircleSector(K, M, L)
T_1: (0.5, incidence * 0.7)
T_2: (0.5, incidence * 0.3 + 0.7)
text5: "PERSONES INFECTADES " + (incidence * 100) + "%"
ps, l, m, e_2, f_2 = Polygon((1, 1), (0, 1), E, F)
PI, a_2, b_2, f_3, e_3 = Polygon(A, B, F, E)
text4: "PERSONES SANES " + ((1 - incidence) * 100) + "%"
text6: "" + (incidence * 100) + "%"
text3: "= " + (1 - incidence) + "·" + falsepos + " = " + (falsepos * (1 - incidence)) + ""
text3_1: "= " + (1 - incidence) + "·" + (1 - falsepos) + " = " + ((1 - falsepos) * (1 - incidence)) + ""
text3_4: "= " + incidence + "·" + falseneg + " = " + (incidence * falseneg) + ""
T_3: (E + G) / 2
T_4: (I + B) / 2
T_5: (H + F) / 2
T_6: (H + E) / 2
n = false
o = false
t_1 = false
u = false
v = false
w = false
text3_2: "= " + incidence + "·" + (1 - falseneg) + " = " + ((1 - falseneg) * incidence) + ""
z = false
text11: "" + (LaTeX[poly2]) + "+ " + (LaTeX[poly3]) + "= " + (LaTeX[poly2 + poly3]) + ""
k = false
text1: "\frac{" + (LaTeX[poly2]) + "}{" + (LaTeX[poly2 + poly3]) + "}=" + (LaTeX[p]) + " "
text2: "\frac{" + (LaTeX[poly3]) + "}{" + (LaTeX[poly2 + poly3]) + "}=" + (LaTeX[1 - p]) + ""
r: "Si una persona es fa la prova i li surt positiu, 
llavors té una probabilitat del " + (100 * p) + "% d'estar
           infectada."
A1 = 0.08333333333333333
B1: 1 / A1