p

A partir de l'IF de seconde

A partir de l'IF asymptotique

n = 1000 (slider from 30 to 2000, step 1)
f_2(x) = x + 1.96 * sqrt(x * (1 - x)) / sqrt(n)
f = 0.738 (slider from 0 to 1, step 0.0010)
p = 0.717 (slider from 0 to 1, step 0.0010)
f_1(x) = x - 1.96 * sqrt(x * (1 - x)) / sqrt(n)
A: (p, f_1(p))
B: (p, f_2(p))
a = OrthogonalLine(A, xAxis)
C = Intersect(xAxis, a)
b = Segment(B, C)
c = OrthogonalLine(B, yAxis)
d = OrthogonalLine(A, yAxis)
D = Intersect(yAxis, c)
E = Intersect(d, yAxis)
e = Segment(B, D)
h = Segment(A, E)
i = Segment(D, E)
j: y = f
g_1(x) = x - 1 / sqrt(n)
g_2(x) = x + 1 / sqrt(n)
texte1_1: "np=" + (n * p)
texte1: "n(1-p)=" + (n * (1 - p))
F: (-0.02, g_1(p))
G: (-0.02, g_2(p))
g = Segment(G, F)
H: (p, g_2(p))
I: (p, g_1(p))
k = Segment(G, H)
l = Segment(H, I)
m = Segment(I, F)
texte3: "" + (p * "-\frac{1}{\sqrt{") + n + "}}"
texte2: "" + (LaTeX[p]) + "+\frac{1}{\sqrt{" + (LaTeX[n]) + "}}"
texte4: "" + p + "-1.96 \frac{\sqrt{" + p + "(1-" + p + ")}}{\sqrt{" + n + "}}"
texte5: "" + p + "+1.96\frac{\sqrt{" + p + "(1-" + p + ")}}{\sqrt{" + n + "}}"
o = true
q = false
r = Segment(I, C)