Page 287 - Data Science class 11
P. 287

Practical Questions




                                                                                                      Interdisciplinary



               1.  Find the mean of the following data:
                  a. 9,7,11,13,2,4,5,5
              Ans.  Mean = Sum of the elements/number of elements
                  =    (9+7+11+13+2+4+5+5)
                                8
                  = 7
                  b. 16,18,19,21,23,23,27,29,29,35
              Ans.  Mean = Sum of the elements/number of elements
                      (16+18+19+21+23+23+27+29+29+35)
                  =
                                     10
                  = 24
                  c. 2.2.10.2,14.7,5.9,4.9,11.1,10.5

              Ans.  Mean = Sum of the elements/number of elements
                      (2.2+10.2+14.7+5.9+4.9+11.1+10.5)
                  =
                                     7
                  =8.5
               2.  Find the mean of first ten whole numbers.
              Ans.  Mean = Sum of the elements/number of elements
                      (0+1+2+3+4+5+6+7+8+9)
                  =
                                 10
                  =4.5

               3.  Find the mean of first 5 prime numbers.
              Ans.  (2+3+5+7+11)/5=5.6

               4.  The mean of 8,11,6,14,x,13 is 66. Find the value of x.
              Ans.  Mean=(Sum of numbers)/total number of values
                  66=(8+11+6+14+x+13)/6
                  66=52+x/6
                  66*6=52+x

                  x=396-52
                  x=344
               5.  Declare the following variables and find their datatypes using class() function using R Studio.

                  a.  x<-10
              Ans.   class(x)

                  Output
                  [1]  “numeric”






                                                                                          Practical Questions  285
   282   283   284   285   286   287   288   289   290   291   292