Thursday
April 17, 2014

Homework Help: Python programming

Posted by Anonymous on Sunday, January 13, 2013 at 2:51am.

1,000 students took an online course. 1/4th of them were from Africa, 1/4th from Europe , 1/4th from South America, and 1/4th from Asia. At the end of the course, the instructor observed that of the top 100 grades, 30 belonged to students from a single geographical area. He argued that since the expected number of students from each area in the top 100 was 25, this was unlikely to have happened by pure chance. Write a function that uses simulation to compute and return an estimate of the probability of at least 30 of the top 100 grades coming from a single geographical area purely by chance.


def test(numTrials):
"""
Uses simulation to compute and return an estimate of
the probability of at least 30 of the top 100 grades
coming from a single geographical area purely by chance
"""

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

python programming - Explain in python programming (x^n-1)/(x-1) = x^(n-1)+x^(n-...
Programming in Python - A customer in a store is purchasing five items. Design a...
probability - A survey of 850 students conducted in two schools showed the ...
Steve help! - 10,000 students took a math test. If there average score was 40 ...
information technology - Write a puesdocode to read the marks of a number of ...
information technology - Write a puesdocode to read the marks of a number of ...
cmc210 - When the change from sponsored programming to network programming took ...
math - There are 7 children who are 5ft long,their total length is 3ft longer ...
Math 4th gr - How do I write this in standard form 3,000,000+200,000+40,000+600+...
Statistics - Thirty-two students took a 50-item Biology test. The average score ...

Search
Members