diff -r 223044cf254f -r 2e49b1b72996 statistics/questions.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/statistics/questions.rst Wed Oct 13 17:26:45 2010 +0530 @@ -0,0 +1,54 @@ +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