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

Objective Questions
-------------------

.. A mininum of 8 questions here (along with answers)

1. What is the function for calculating sum of a list?
   
   sum

2. Calcutate the mean of the given list?
   
   student_marks=[74,78,56,87,91,82]
   
   mean(student_marks) 


3. Given a two dimensional list,::
   two_dimensional_list=[[3,5,8,2,1],[4,3,6,2,1]]
   
   how do we calculate the mean  of each row?
   

   mean(two_dimensinal_list,1)

4. What is the function for calculating standard deviation of a list?

   std

5. Calcutate the median of the given list?
   
   student_marks=[74,78,56,87,91,82]

   median(age_list)

6. How do you calculate median along the columns of two dimensional array?
       
    median(two_dimensional_list,0)
       
   
7. What is the name of the function to load text from an external file? 

   loadtxt

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?

   Using the parameter usecols=(2,3,4,5)

Larger Questions
----------------

.. A minimum of 2 questions here (along with answers)

1. Question 1
2. Question 2