Standard deviation, MATLAB in Mathematics

Standard Deviation

The standard deviation is the square root of variance:

683_standard deviation.png

The built-in function in a MATLAB for the standard deviation is known as std; the standard deviation can be found either as the sqrt of the variance, or by using std:

>> shortx = [2 5 1 4];

>> myvar = var(shortx)

myvar =

    3.3333

>> sqrt(myvar)

ans =

    1.8257

>> std(shortx)

ans =

    1.8257

Posted Date: 10/22/2012 7:00:45 AM | Location : United States







Related Discussions:- Standard deviation, Assignment Help, Ask Question on Standard deviation, Get Answer, Expert's Help, Standard deviation Discussions

Write discussion on Standard deviation
Your posts are moderated
Related Questions
Illustration of Standard Deviation The less spread out the numbers are, therefore smaller the standard deviation will be, as it is a way of determining the spread of the data.

Print an imaginary number: To print an imaginary number, the function disp will show both parts automatically: >> disp(z1)    4.0000 + 2.0000i The function fprint

Functions to create special matrices: The MATLAB also has various functions which create special matrices. For illustration, the zeros function generates a matrix of all zeros

Creating Customized strings: There are many built-in functions which create customized strings, including blanks, char, and sprintf. We know that the char function can be u

Illustration of Writing to files: Here is the other illustration in which a matrix is written to a file. At First, an arbitrary 2 × 4 matrix is generated, and then it is writt

Strings as matrix: The matrix can be generated, that consists of strings in each row. Therefore, essentially it is created as a column vector of strings, but the final result

Illustration of Minimum and Maximum Value Both of these functions also return the index of the minimum or maximum value; when there is more than one occurrence, it returns the

Applications of Customized Strings: Labels, Prompts, Arguments to Functions: The one of very useful application of this is to involve numbers in strings that are used to plot

bar and barh functions: For a matrix, the bar and barh functions will group altogether the values in each and every row. The illustration is as shown: rm = randint(2,4,[1

Writing and Reading Spreadsheet Files: The MATLAB functions xlswrite & xlsread will write to and read from the spreadsheet files which have the extension .xls. For illustratio