statistics/questions.rst
author amit
Wed, 13 Oct 2010 17:26:45 +0530
changeset 321 2e49b1b72996
child 349 9ced58c5c3b6
permissions -rw-r--r--
adding questions for all other LO needs to be cleaned
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     1
Objective Questions
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     2
-------------------
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     3
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     4
.. A mininum of 8 questions here (along with answers)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     5
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     6
1. What is the function for calculating sum of a list?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     7
   
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     8
   sum
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     9
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    10
2. Calcutate the mean of the given list?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    11
   
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    12
   student_marks=[74,78,56,87,91,82]
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    13
   
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    14
   mean(student_marks) 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    15
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    16
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    17
3. Given a two dimensional list,::
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    18
   two_dimensional_list=[[3,5,8,2,1],[4,3,6,2,1]]
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    19
   
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    20
   how do we calculate the mean  of each row?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    21
   
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    22
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    23
   mean(two_dimensinal_list,1)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    24
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    25
4. What is the function for calculating standard deviation of a list?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    26
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    27
   std
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    28
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    29
5. Calcutate the median of the given list?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    30
   
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    31
   student_marks=[74,78,56,87,91,82]
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    32
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    33
   median(age_list)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    34
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    35
6. How do you calculate median along the columns of two dimensional array?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    36
       
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    37
    median(two_dimensional_list,0)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    38
       
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    39
   
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    40
7. What is the name of the function to load text from an external file? 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    41
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    42
   loadtxt
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    43
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    44
8. I have a file with 6 columns but I wish to load only text in column 2,3,4,5. How do I specify that?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    45
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    46
   Using the parameter usecols=(2,3,4,5)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    47
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    48
Larger Questions
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    49
----------------
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    50
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    51
.. A minimum of 2 questions here (along with answers)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    52
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    53
1. Question 1
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    54
2. Question 2