Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Define and measure service productivity.

Answered: 1 week ago