Measure of spread

The measure of spread will describe the set of values for the data items and include range, and interquartile, variance and standard deviation. The python then characterize members of distribution from center and of each other. The function will calculate and measure the sample to deviate from the typical range values.

measures of spread

Measures of spread functions as follows:-


pstdev()

The population of the standard deviation of data

pvariance()

The population of variance of data

stdev()

The sample of standard deviation

varience()

The sample variance of data

The following functions show the description and the function of variance:-

  1. varience ():-

The module will provide the powerful tool and used to compute the statistics.
The varience () will help to calculate the variance from the sample of data.
The sample will need to calculate and return the value. The data is spread out and then the population data will be used.
Example:-
          st.varience (nums)
Output:-
7.43


2. pvariance():-
The function will return the variance of data is used to calculate variance from the entire population.
Example:-
st.pvarience (nums)
Output:-
6.69


3. stdev ():-
The standard deviation is also used to measure the statistics and variation of data values.
The standard deviation is similar to variance indicates that data are spread less.
It is also useful and expressed in same units as data.
The function will return the standard deviation for sample and equal to square root of sample variance.
Example:-
st.stdev (nums)
Output:-
2.72


4. pstdev():-
The pstdev is used to represent entire population and lightweight module that is added in python 3.
The pstdev () require the data that you have entire population and sample of group.
This function is used to return the population standard deviation and square root of population variance.
Example:-
             st.pstdev (nums)
Output:-
2.58

Additional Services : Refurbished Laptops Sales, Python Classes, Share Market Classes And SEO Freelancer in Pune, India