Python Statistics Intoduction














































Python Statistics Intoduction



            PYTHON STATISTICS MODULE

What is statistics module:

                     This module provides functions for calculating mathematical statistics of numeric  data.

How to use this module in python programs:

                            We can use any module in python by just simply importing that module.

                             1.import statistics as st

                                st.mean(d)

                         { Here we are importing statistics as st for easy use and above statement computes mean of data d }

What are the methods present in this module:

                                Averages and measures of central location

                            

mean()

Arithmetic mean (average) of data.

fmean()

Fast, floating point arithmetic mean.

geometric_mean()

Geometric mean of data.

harmonic_mean()

Harmonic mean of data.

median()

Median (middle value) of data.

median_low()

Low median of data.

median_high()

High median of data.

median_grouped()

Median, or 50th percentile, of grouped data.

mode()

Single mode (most common value) of discrete or nominal data.

multimode()

List of modes (most common values) of discrete or nomimal data.

quantiles()

Divide data into intervals with equal probability.

             Measures of spread

pstdev()

Population standard deviation of data.

pvariance()

Population variance of data.

stdev()

Sample standard deviation of data.

variance()

Sample variance of data.

         NOTE:

                           The detailed explanation for every method with input and output types and sample                                     programs   is to be presented in my next articles .


Comments