Question: How to create loops for this question in Maple?

Suppose that (x1, x2, . . . , xn) is a sequence of real numbers. The mean μ and the standard deviation σ are defined as
μ= n(x1 +x2 +...+xn);

σ=√[(1/2)n[(x1 −μ) +(x2 −μ) +...+(xn −μ) ]]


1. Suppose that n = 20 and xk = k for all k. Write for loops to determine the mean and the standard deviation of the sequence.

2. Suppose that n = 30 and xk = k3 for all k. Write for loops to determine the mean and the standard deviation of the sequence.

Please Wait...