Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write the python code for both part of this question. then I will definitely give you a like Suppose that we have a class

please write the python code for both part of this question. then I will definitely give you a like
image text in transcribed
Suppose that we have a class of n students. We assume that their birthdays are uniformly distributed over the days of the year. Question I:What is the probability that the class has two students having the same birthday? Write python code to simulate this. Question II: For what value of n (number of students in the class) the above probability is 0.5 ? Use the Python code you developed in question I, to find that value by trial and error (or a more sophisticated algorithm)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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