Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework 2 You and some friends decided to go play a round of disc golf up in Orchard Hill. The problems below will ask you

image text in transcribed

Homework 2 You and some friends decided to go play a round of disc golf up in Orchard Hill. The problems below will ask you to analyze the round. For your homework, turn in a single m file, called "hw2_yourinitials.m", where yourinitials is replaced by your actual initials. So my assignment would be hw2_mal.m. Your submission must be a function, with 1 input and 2 outputs. The input is N, and the outputs are a 1x9 vector "low_holes" and a scalar "low_round." N is the total number of players. Function syntax is: function [low_holes, low_round] = hw2_mal(N) - Create a N+1 by 10 matrix called "Hole_Scores" where the first N rows correspond to the N players, and the first 9 columns are the scores of each player on each of the first nine holes. The tenth column is each player's total score i.e. the sum of the 9 holes. - Initialize the matrix as all zeroes. - Then populate the first 9 columns and the first N rows of the matrix with random integers between 2 and 8 , with an equal probability of each score. - Finally calculate the appropriate value for the 10 th column. - Find the lowest score on every hole as well as the lowest total score and put that score in the N+1 row. The output "low_holes" is a 19 vector with the lowest scores from each of the 9 holes, and "low_round" is a scalar value corresponding to the lowest round of the N players. - Run your function several times for 4 players and keep an eye on the lowest round score. Now run it for 400 players. At the bottom of your function, write a few sentences in a comment that discusses the effect of increasing the number of players on the lowest round score. Also, discuss the effect of the number of players on both the expected value of the lowest round (i.e. the mean), as well as the variance in the lowest round score. If you increased the number to 4 billion, what scores do you think you would get for the lowest round

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

Develop grant applications

Answered: 1 week ago