Malade

Non malade

Test positif

Test négatif

Total

Total

Nouveau

Solution

 vp 

 fn

 vn

 fp

Solution

Légende

Sensibilité

Spécificité

Valeur prédictive positive

Valeur prédictive négative

=

=

=

=

=

Vérifier

verif

AffBoutonVerif

f(x) = x^(3)
r(x) = (x^(2) * (3 - (2 * x)))
g(x) = x^(1 / 3)
A = (2, 6)
B = (2, 2)
h = Segment(A, B)
C = (0, 5)
D = (8, 5)
i = Segment(C, D)
E = (4, 6)
F = (6, 6)
Pop: (Random[10, 90] * 1000)
G = (0, 4)
H = (0, 3)
texte9: "" + Pop + ""
TotM = Random(1, (0.1 * Pop))
TotNM: Pop - TotM
VP = Random((0.75 * TotM), (0.99 * TotM))
VN = Random((0.75 * TotNM), TotNM)
FN: TotM - VP
FP: TotNM - VN
TotTP: VP + FP
TotTN: VN + FN
I = Point(h)
J = Intersect(h, i)
K = Point(i)
L = Point(i)
M = (6, 3)
N = (4, 3)
O = (4, 4)
P = (6, 4)
Q = Point(h)
texte10: "" + TotM + ""
texte11: "" + TotNM + ""
texte12: "" + VP + ""
texte13: "" + FP + ""
texte14: "" + TotTP + ""
texte15: "" + FN + ""
texte16: "" + VN + ""
texte17: "" + TotTN + ""
R = (1.5, 5.5)
S = (1.5, 2.5)
T = (7.5, 2.5)
U = (7.501901738750244, 5.511156042226351)
q1, r_1, s, t, u = Polygon(R, S, T, U)
W = Point(s)
V: (3.5, 6.5)
j = Segment(V, W)
Z = (5.5, 6.5)
A_1 = Point(s)
k = Segment(Z, A_1)
B_1 = (-0.5130999269011727, 4.507304778657718)
C_1 = Point(t)
l = Segment(B_1, C_1)
D_1 = (-0.5, 3.5)
E_1 = Point(t)
m = Segment(D_1, E_1)
F_1: (-0.5, 2.5)
p = Segment(F_1, T)
G_1 = (-0.5, 5.5)
q = Segment(G_1, U)
b = Segment(G_1, F_1)
d = Random(1, (0.1 * Pop))
H_1 = (1.5, 6.5)
I_1 = (7.5, 6.5)
q2, h_1, r_2, u_1, i_1 = Polygon(H_1, R, U, I_1)
q3, g_1, r_3, s_1, f_1 = Polygon(G_1, R, S, F_1)
J_1 = Intersect(r_1, m)
K_1 = Intersect(k, m)
L_1 = Intersect(u, k)
q4, r_4, j_1, k_1, l_1 = Polygon(R, J_1, K_1, L_1)
etapes = 12 (slider from 1 to 25, step 1)
e = false
M_1 = Intersect(r_1, l)
N_1 = Intersect(j, l)
O_1 = Intersect(j, m)
P_1 = (1, 2)
Q_1 = (3.5, 2)
R_1 = (8, 5.5)
S_1 = (8, 4.5)
Sensi: VP / TotM
Speci: VN / TotNM
VPP: VP / TotTP
VPN: VN / TotTN
texte24: "\approx" + (LaTeX[Sensi]) + ""
texte25: "\approx" + (LaTeX[Speci]) + ""
texte26: "\approx" + (LaTeX[VPP]) + ""
texte27: "\approx" + (LaTeX[VPN]) + ""
a = If(etapes > 10, true, false)
T_1 = Intersect(u, j)
U_1 = Intersect(k, l)
q5, r_5, m_1, n_1, t_1 = Polygon(R, M_1, N_1, T_1)
q6, n, s_2, w, o_1 = Polygon(J_1, S, W, O_1)
q7, c, p_1, q_1, a_1 = Polygon(N_1, O_1, K_1, U_1)
q8, b_1, w_1, c_1, d_1 = Polygon(O_1, W, A_1, K_1)
q9, r_6, e_1, f_2, g_2 = Polygon(R, M_1, N_1, T_1)
q10, h_2, i_2, j_2, u_2 = Polygon(L_1, U_1, C_1, U)
q11, k_2, l_2, m_2, n_2 = Polygon(N_1, O_1, E_1, C_1)
cadre = Translate({q2, q3}, (0, 0))
o: a
SensiT = 0
SpeciT = 0
VPPT = 0
VPNT = 0
ChampTexte1 = Textfield(SensiT)
ChampTexte2 = Textfield(SpeciT)
ChampTexte3 = Textfield(VPPT)
ChampTexte4 = Textfield(VPNT)
FPT = 0
FNT = 0
TotNMT = 0
TotTNT = 0
TotTPT = 0
ChampTexte5 = Textfield(TotTPT)
ChampTexte6 = Textfield(TotTNT)
ChampTexte7 = Textfield(FPT)
ChampTexte8 = Textfield(FNT)
ChampTexte9 = Textfield(TotNMT)
Points: 0
texte28: "Points : " + Points + " /9"
PointsTAB: Points
v: Sensi - 0.001 < SensiT < Sensi + 0.001
v_1 = false
a_2 = true
texte22: "\text{Valeur prédictive positive  :}\\
\frac{vp}{vp+fp}=\frac{" + (LaTeX[VP]) + " }{ " + (LaTeX[TotTP]) + "}"
texte23: "\text{Valeur prédictive négative  :}\\
\frac{vn}{vn+fn}=\frac{ " + (LaTeX[VN]) + " }{  " + (LaTeX[TotTN]) + "}"
texte1: "\text{Sensibilité :}\\
\frac{vp}{vp+fn}=\frac{" + (LaTeX[VP]) + "}{" + (LaTeX[TotM]) + "}"
texte2: "\text{Spécificité :}\\
\frac{vn}{fp+vn}=\frac{ " + (LaTeX[VN]) + "}{ " + (LaTeX[TotNM]) + "}"