Assessment Requirements: For this part of the project, you're required to simulate the birthday scenario: Call your func

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Assessment Requirements: For this part of the project, you're required to simulate the birthday scenario: Call your func

Post by answerhappygod »

Assessment Requirements For This Part Of The Project You Re Required To Simulate The Birthday Scenario Call Your Func 1
Assessment Requirements For This Part Of The Project You Re Required To Simulate The Birthday Scenario Call Your Func 1 (75.74 KiB) Viewed 21 times
Assessment Requirements For This Part Of The Project You Re Required To Simulate The Birthday Scenario Call Your Func 2
Assessment Requirements For This Part Of The Project You Re Required To Simulate The Birthday Scenario Call Your Func 2 (25.25 KiB) Viewed 21 times
Its MATLAB task.
Assessment Requirements: For this part of the project, you're required to simulate the birthday scenario: Call your function from module 2a to assign random birthdays to people in an increasingly large group of people (starting with a group size of 2 people and ending with a group size of 365). This function can be modified so it just generates whole numbers from 1 to 365 to represent each day (rather than the day/month format from module 2a), this will make the program less computationally complex but will still give you the same result. Use the function from module 2b to check these dates to see if there are any repeated birthdays in the groups. Keep a record of any matches discovered, Using the knowledge gained from module 1, you'll then plot a graph of the probabilities of a shared birthday from your simulation with a graph of the theoretical model overlayed (x-axis = group size, v-axis = probability). The graph must be displayed on your GUI (so you'll use app.UiAxes to display your results), To obtain a close statistical model to the theory, you'll need to repeat your simulation many times and take the average over the number of realisations (at least 10 times, but less than 500 times to ensure the simulation doesn't take too long) Other GUI Functionality and considerations: Your Gul must be able to obtain user input including: How many realisations does the user want in order to obtain an estimate of the probability of a shared birthday (allow user to select numbers between 10 and 500). This will allow the simulation to either be fast but less accurate (10 times) or slow and more accurate (500 times). The maximum group size the user wants simulated. This will truncate the graph to the maximum group size. The range of this must be a minimum of 2 people and a maximum of 365 people in a group. You'll need to think not only about the way your program calculates the output required to solve the problem (its functionality) but also how your GUI will look (its aesthetics) and how simple it is for a user to input and receive output from your program (its usability). Your graphical user interface (GUI) must be created in App Designer DO NOT use the menu () or dialog() functions or GUIDEILI). You must submit the .mlapp file and user- defined functions in.m file format for assessment.
N=randi(1000); m =randi(12,N,1); months days(:,1); m(:,1); for i=1:m if i = 1|| 1== 3||i==5||i7||18||1==10||i==12 days= randi (31,0,1); %months with 31 days, random rows with 1 interval dates=[days, m] elseif i = 4|| i==6||i==9||1==11 days =randi (30,0,1); months with 30 days, random rows with 1 interval dates=[days,m] elseif i=2 days=randi(28,N,1); %months with 28 days, random rows with 1 interval dates=[days,m] else disp('end) end end
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply