常態分配
Author: 藍邦偉  老師

(μ,0)

(μ+σ,0)

(μ-σ,0)

(μ+2σ,0)

(μ+3σ,0)

(μ-3σ,0)

()

(μ-2σ)

68%

95%

99.7%

常態分配

μ = 0 (slider from -5 to 5, step 0.5)
σ = 1 (slider from 0 to 10, step 0.5)
f(x) = 1.0 / ((2.0 * 3.141592653589793)^(1.0 / 2.0) * σ) * exp(-(x - μ)^(2.0) / 2.0 * σ^(2.0))
F_0: (μ, f(μ))
F_1: (μ, 0.0)
n = Segment(F_0, F_1)
F_2: (μ + σ, f(μ + σ))
F_3: (μ + σ, 0.0)
F_4: (μ - σ, f(μ - σ))
F_5: (μ - σ, 0.0)
F_6: (μ + 2.0 * σ, f(μ + 2.0 * σ))
F_7: (μ + 2.0 * σ, 0.0)
F_8: (μ + 3.0 * σ, f(μ + 3.0 * σ))
F_9: (μ + 3.0 * σ, 0.0)
F_11: (μ - 3.0 * σ, 0.0)
F_10: (μ - 3.0 * σ, f(μ - 3.0 * σ))
F_12: (μ - 2.0 * σ, f(μ - 2.0 * σ))
F_13: (μ - 2.0 * σ, 0.0)
a = Segment(F_4, F_5)
b = Segment(F_12, F_13)
c = Segment(F_2, F_3)
d = Segment(F_6, F_7)
e = Integral(f, μ - σ, μ + σ)
g = true
h = Integral(f, μ - 2.0 * σ, μ + 2.0 * σ)
i = false
j = Integral(f, μ - 3.0 * σ, μ + 3.0 * σ)
k = false
u = Vector((x(Corner[1.0]), 0.0), (x(Corner[3.0]), 0.0))
v = Vector((0.0, y(Corner[1.0])), (0.0, y(Corner[3.0])))