Mitjana

Mediana

Des. estàndard

s1 = Ray((1, 0), (1, 20))
A = Point(s1)
LA = Sequence(1, i, y(A), 1, -1)
s2 = Ray((2, 0), (2, 20))
B = Point(s2)
LB = Sequence(2, i, y(B), 1, -1)
s3 = Ray((3, 0), (3, 20))
C = Point(s3)
LC = Sequence(3, i, y(C), 1, -1)
s4 = Ray((4, 0), (4, 20))
D = Point(s4)
LD = Sequence(4, i, y(D), 1, -1)
s5 = Ray((5, 0), (5, 20))
E = Point(s5)
LE = Sequence(5, i, y(E), 1, -1)
s6 = Ray((6, 0), (6, 20))
F = Point(s6)
LF = Sequence(6, i, y(F), 1, -1)
s7 = Ray((7, 0), (7, 20))
G = Point(s7)
LG = Sequence(7, i, y(G), 1, -1)
dad = Join({LA, LB, LC, LD, LE, LF, LG})
xx = Mean(dad)
T8: "Mitjana = " + xx
me = Median(dad)
ds = SD(dad)
PM: (me, 0)
o = BarChart(dad, 0.5)
PX: (xx, 0)
text1: "" + (y(A)) + ""
text2: "" + (y(B)) + ""
text3: "" + (y(C)) + ""
text4: "" + (y(D)) + ""
text5: "" + (y(E)) + ""
text6: "" + (y(F)) + ""
text7: "" + (y(G)) + ""
text8: "Mediana = " + me + ""
text9: "Desviació estàndard = " + ds + ""
H = (5, 16)
a = Line(H, xAxis)
c = Circle(H, ds)
I = Point(Circle[H, ds])
b = Segment(H, I)
d = true
e = true
f = true