Generate birthdays using randbetween function

Assignment Help Basic Computer Science
Reference no: EM131644524

Question: It is surprising (but true) that if 23 people are in the same room, there is about a 50% chance that at least two people will have the same birthday. Suppose you want to estimate the probability that if 30 people are in the same room, at least two of them will have the same birthday. You can proceed as follows.

a. Generate random birthdays for 30 different people. Ignoring the possibility of a leap year, each person has a 1/365 chance of having a given birthday (label the days of the year 1 to 365). You can use the RANDBETWEEN function to generate birthdays.

b. Once you have generated 30 people's birthdays, how can you tell whether at least two people have the same birthday? One way is to use Excel's RANK function. (You can learn how to use this function in Excel's online help.) This function returns the rank of a number relative to a given group of numbers. In the case of a tie, two numbers are given the same rank. For example, if the set of numbers is 4, 3, 2, 5, the RANK function returns 2, 3, 4, 1. (By default, RANK gives 1 to the largest number.) If the set of numbers is 4, 3, 2, 4, the RANK function returns 1, 3, 4, 1.

c. After using the RANK function, you should be able to determine whether at least two of the 30 people have the same birthday. What is the (estimated) probability that this occurs?

Reference no: EM131644524

Questions Cloud

How many t-shirts the company should order : Dilbert's Department Store is trying to determine how many Hanson T-shirts to order. Currently the shirts are sold for $21, but at later dates the shirts.
Race and ethnicity are interconnected : Race and ethnicity are interconnected, but separate concepts that are often used interchangeably. In this assignment, write -a short essay that compares.
What affirmative defenses can johnny raise : Are the elements of embezzlement present in this fact pattern? What affirmative defenses can Johnny raise? Can Johnny get letter seized by police suppressed?
What is the priority nursing diagnosis for this patient : Explain the high potassium in this patient Review history and correlate those symptoms to why his potassium is high
Generate birthdays using randbetween function : Generate random birthdays for 30 different people. Ignoring the possibility of a leap year, each person has a 1/365 chance of having a given birthday.
Achieve the company strategic goal : What strategic initiatives did HR implement to resolve the organizational issue or achieve the company's strategic goal?
Prepare a paper explaining the purpose of erp : Prepare a paper explaining the purpose of ERP and describing some of the key considerations and risks that are associated with ERP implementation
What role for the united nations in us foreign policy : Should "Nation-building" and the promotion of democracy be a major component of U.S. foreign policy? What should the US strategy be in Iraq?
Discuss when inflammation resolves and healing begins : What is the cause of the sprain and swelling. what can JL expect in the days to come as inflammation resolves and healing begins

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Find the decimal integer that corresponds to interpretation

Each of these 8-bit bytes can be interpreted as either a 2's complement number or an unsigned number. Find the decimal integer that corresponds to the each interpretation.

  Software architecture fundamentals

The Lamborghini car company is considering adding a robot to its assembly process. To do so requires additional resources. The firms involved in the financing, parts suppliers, manufacturing hardware suppliers, design consultants, and the labor un..

  Write an algorithm to compute a student average grade

Weight is 20, maximum score is 75 iii. Final exam - Weight is 30, maximum score is 100 As an example, if a student scores 100 on the Homework Assignments, 55 on the Midterm exam and 85 on the Final exam, then their average grade is rounded to 82.

  Discuss the protection mechanisms

Discuss the protection mechanisms you consider best suited for the technological innovation you have selected for your final project and how those mechanisms fit within the control continuum

  Difference between a column constraint

What is the difference between a column constraint and a table constraint and briefly discuss what "referential" constraints actions are. Provide at least one example. Please be detailed. No one sentence answer please.

  Identity before the third message was received

o what attack might a server be exposed if it trusted the client's identity before the third message was received?

  Create a if function formula to determatine

Create a if function formula to determatine which boats include a stove with galley. Boats must be able to seat 8 or more people to have stove in the galley.

  In what way does this affect their operation

Outline the procedure followed to create a tag when you want to use a counter.

  What is its average distance from the sun

If it takes Mars 687 days to orbit the sun, what is its average distance from the sun?

  How can this problem be solved

What is the source of the problem of generalizing to other experimenters? How can this problem be solved?

  Contrast a business case and a business plan

Compare and contrast a Business Case and a Business Plan. Include definitions and applications.

  Solve for the optimal investment decision

Solve for the optimal investment decision by constructing a decision tree.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd