Professional Documents
Culture Documents
SLOT L25+L26: Embedded Lab - R Statistical Software FALL SEMESTER - 2021
SLOT L25+L26: Embedded Lab - R Statistical Software FALL SEMESTER - 2021
SLOT L25+L26
E-RECORD
Experiment No.: 1
Name-Ananya Panda
Registration Number-20BEC0205
Ananya Panda- 20BEC0205
AIM to determine the mean, median, mode, variance, standard deviation, co-
efficient of variation, first four moments about the mean and Pearson’s co-efficient
β1 &β2.
CODE
Mean
> mean(x)
[1] 73.33333
Median
Ananya Panda- 20BEC0205
> median(x)
[1] 72.5
Mode
+ uniqv[which.max(tabulate(match(v, uniqv)))]}
[1] 75
Variance
var(x)
[1] 119.697
Standard Deviation
sd=sqrt(var(x))
sd
[1] 10.94061
Ananya Panda- 20BEC0205
Coefficient of Variance:
> coeff_of_var=sd*100/mean(x)
> coeff_of_var
[1] 14.91902
Moments
> n=10
> m2=sum((x-mean(x))**2)/n
> m2
[1] 131.6667
Third Moment=sum((x-mean(x))**3)/n
Ananya Panda- 20BEC0205
> #Code for determining third moment
> M3=sum((x-mean(x))**3)/n
> M3
[1] 913.8889
Fourth Moment=sum((x-mean(x))**4)/n
> M4=sum((x-mean(x))**4)/n
> M4
[1] 37263.89
β1 β2
β1=m3^2/m2^3
β2=m4/m2^2
> b1=M3**2/m2**3
> b1
[1] 0.3658974
> b2=M4/m2**2
> b2
[1] 2.149495
Ananya Panda- 20BEC0205
AIM to determine the mean, median, mode, variance, standard deviation, co-
efficient of variation, first four moments about the mean and Pearson’s co-efficient
β1 &β2.
CODE
Mean
Median
Mode
Ananya Panda- 20BEC0205
Variance
Standard Deviation
Co-efficient of Variation
Moments
Second Moment
Third Moment
Fourth Moment
Ananya Panda- 20BEC0205
β1 β2.
AIM To determine the mean, median, mode, variance, standard deviation, co-
efficient of variation, first four moments about the mean and Pearson’s co-efficient
β1 &β2.
CODE
Mean
Median
Ananya Panda- 20BEC0205
Mode
Variance
Standard Deviation
Coefficient of Variation
Moments
Second Moment
Ananya Panda- 20BEC0205
Third Moment
Fourth Moment
β1 β2