Statistics Practical No. 1



Basics of R Studio From Practical 1

Here, you can find the Practical 1 PDF for Download

Click here!!

Learning Data Input, Arithmetic Operators, Vectors Operation, Matrix Operations, Data Frames, Built-In-Functions, Frequency Distribution, Grouped Frequency Distributions, Diagrams and Graphs.

    
    h=c(150, 160, 175, 145, 130)
    sort(h)
    sort(h decreasing = T)
    max(h)
    min(h)
    length(h)
    mean(h)
    median(h)

Now we will find out the Mean, Median, Mode, Max and Min Values,
and Will sortout it in ascending and descending order also range .

    h = c (11, 8, 12, 25, 22, 16, 6)
    sort(h)
    sort(h, decreasing  = T)
    max(h)
    min(h)
    mean(h)
    median(h)
    range(h)
    sd(h)
    var(h)
    sqrt(h)
    lrg(h)
    exp(h)

   
    The Sample Values Are X =(1, 0, 3, 2, 1, 5, 6, 2, 2, 1 ,0 ,
    1, 0, 3, 2, 1, 5, 6, 2, 2, 1 ,0)
    x = c(put here the values)
    t = table(x)
	transform(t)

Post a Comment

Previous Post Next Post