Question: Write python codes for these. 1. The scores from a class test are as follows: five students scored 12, three students scored 60, four students

Write python codes for these.

1. The scores from a class test are as follows: five students scored 12, three students scored 60, four students scored 72, six students scored 100 marks. Write a Python program to print the Mean, Median, Variance and Standard deviation of the scores.

2. Following table represents the frequency of the weights of 25 students in a team: -

Weight (lbs)

Number of students

88

4

76

3

65

5

96

2

52

5

98

2

102

4

Write a python program to create a histogram (using pyplot) for the above table.

3. For the data given in question 2, write a Python program to create a dictionary, which maps the values to their frequencies and calculates the probability of each weight using their frequencies.

4. Write a Python program using only numpy functions that creates a matrix of 3 columns and 8 rows with sequential integers from 0-23.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!