Friday, 7 September 2018

Statistical Function-Boxplots, Skewness and Kurtosis in R Language

Summary of observation

In R, quartiles, minimum and maximum values can be easily obtained by the summary command

summary (x)    x: data vector
It gives information on
  • minimum
  • maximum
  • first quartile
  • second quartile (median) and
  • third quartile.


Boxplot is a graph which summarizes the distribution of a variable by using its median, quartiles, minimum and maximum values.

boxplot ( ) draws a box plot

Descriptive Statistics:

First hand tools which gives first hand information.
  • Structure and shape of data tendency (symmetricity, skewness, kurtosis etc.)
  • Relationship study (correlation coefficient, rank correlation, correlation ratio, regression etc.)


Measures the shift of the hump of frequency curve.
Coefficient of skewness based on values x1,x2,....,xn.


Measures the peakedness of the frequency curve.
Coefficient of kurtosis based on values x1,x2,...,xn.

Skewness and Kurtosis

First we need to install a package 'moments'
> install.packages ("moments")
> library (moments)
skewness  ( )  :  computes coefficient of skewness
kurtosis    ( )   :  computes coefficient of kurtosis


Post a Comment

Codecademy Code Foundations

Popular Posts


Android (23) AngularJS (1) Assembly Language (2) Books (11) C (75) C# (12) C++ (81) Course (3) Data Science (1) Data Strucures (4) Downloads (1) Engineering (13) flutter (1) FPL (17) Hadoop (1) HTML&CSS (40) IS (25) Java (89) Leet Code (4) Pandas (2) PHP (20) Projects (19) Python (435) R (69) Selenium Webdriver (2) Software (14) SQL (27)