I need to write a function that computes the mean, standard deviation, minimum & maximum values and range of a ten element vector, without using the std function. Instead i've been given the equation (last x is meant to be x-bar but couldn't work out how to write it):
σ =√((1/N)(∑_(i=1)^n)▒(xᵢ-x) )
N is the number of data points (10 in this case) and x-bar is the mean value of x.
I can use any other functions except std.
Best Answer