Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use R to complete this asap. Do this carefully and clearly. The aim of this assignment is to implement the equation of the probability

image text in transcribedplease use R to complete this asap. Do this carefully and clearly.
The aim of this assignment is to implement the equation of the probability of finding a pair of people that share the same birthday described in the slide 15 of topic Basic Probability. For that purpose, your first task is to perform four implementations of the following equation |A| P(A) = 1 - P(A) = 1 - 121 = 1 365 364 x ... (365 n +1) 3651 in Julia, Python, R, and Octave. The second task will be to illustrate how does the number n of guests influence the probability of having guests with identical birthday. For that aim, you have to draw a curve to illustrate it using with each previous programming languages. II. Hint You need to use a loop for each programming language to compute P(A). In addition, since you will use different values of n to see its influence for P(A), you have to create a method that takes into parameter the number guests and returns the probability P(A)

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

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

1. Select the job or jobs to be analyzed.

Answered: 1 week ago