Question

You are to design and execute an experiment to compare a random number generator (RNG) from...

You are to design and execute an experiment to compare a random number generator (RNG) from a computer program to a real life probabilistic event using matlab. The design can be about anything. Appreciate it!

using MATLAB please

Homework Answers

Answer #1

Using MATLAB, generate a random number uniformly between 0 and 1 and round off to 0 or 1, which ever is the nearest. Note the frequency of each.

Flip a fair coin a lot of times and let heads be 1 and tails be 0. Denote frequency of each.

In the above two experiments, ideally when experiment is repeated a lot of times, frequencies should converge to 0.5(weak law of large numbers). So we can study the rate of convergence in real life random variables and computer generated random variables.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Lottery Number generator page 335 #2. Design a program that generates a 7 digit lottery number....
Lottery Number generator page 335 #2. Design a program that generates a 7 digit lottery number. The program should have an Integer array with 7 elements. Write a loop that steps through the array, randomly generating a number in the range of 0 through 9. Use the random number generator function. Then write another loop that displays the contents of the array. Create a flowchart using FLOWGORITHM. Please provide screen shot of flowchart using ONLY FLOWGORITHM and a sample output.
1. A random number generator is used to select a number from 1 to 500 ?(inclusively)....
1. A random number generator is used to select a number from 1 to 500 ?(inclusively). What is the probability of selecting the number 595 ? What is the probability? 2.Identify the sample space of the probability experiment and determine the number of outcomes in the sample space. -Randomly choosing an even number between 10 and 20, inclusive The sample space is? (Use a comma to separate answers) There are _____ outcomes in the sample space 3. Determine the number...
The typical computer random number generator yields numbers from a uniform distribution of values between 0...
The typical computer random number generator yields numbers from a uniform distribution of values between 0 and 1, with a mean of 0.500 and a standard deviation of 0.289. If random numbers are generated, find the probability that their mean is between 0.6 and 0.7.
Random number generator 1: Search for algorithms generating pseudo-random numbers. Select one of them for generating...
Random number generator 1: Search for algorithms generating pseudo-random numbers. Select one of them for generating a pseudo-random sequence. Original sample can be generated in any form: binary, decimal, etc. But submitted sample must be in the form of uniform random numbers on [0,1][0,1]. The sample should not be generated by any function, like runif(), sample(), etc. Instead it must be some algorithm that you code yourselves. For example, mid-square algorithm, Fibonacci-based algorithm, etc. Random number generator 2: Find some...
In this module you learned about making decisions. You learned about the syntax and rules used...
In this module you learned about making decisions. You learned about the syntax and rules used to develop programs containing decisions and how the logic can make your programs more robust. Draw a flowchart for a program that shows the logic for a program that generates a random number. The program will simulate tossing coin. The program should generate a random number(0 and 1). If the random number is 0, then it should display the word "Heads". If the random...
You were given a sputum sample from a patient. Design an experiment on how you would...
You were given a sputum sample from a patient. Design an experiment on how you would undergo the identification of the possible microbiological agent. You can use any previous laboratories or even outside reliable references. Be sure to include any medias, testing, characteristics that would be useful. But before you are able to identify - what must to obtain from the sputum (hint some type of culture - but what type?
1. A random number generator is used to select a number from 1 to 500 ?(inclusively)....
1. A random number generator is used to select a number from 1 to 500 ?(inclusively). What is the probability of selecting the number 595 ? What is the probability? 2.Identify the sample space of the probability experiment and determine the number of outcomes in the sample space. -Randomly choosing an even number between 10 and 20, inclusive The sample space is? (Use a comma to separate answers) There are _____ outcomes in the sample space 3. Determine the number...
Create a C++ program that generates a random number from 1 to 100 using the rand()...
Create a C++ program that generates a random number from 1 to 100 using the rand() function. Give the user a total 5 chances to guess the number. Stop the program and indicate the user guessed the correct number and should be applauded. Also, please find out which guess was the closest to the actual number. For example, if the rand() produces 57 and the user guessed 10, 80, 52, 33 and 44 in their respective turns then print out...
For this homework, you will be filtering noise from a sound recording. The assignment is broken...
For this homework, you will be filtering noise from a sound recording. The assignment is broken into simple steps you can follow. Please follow instructions carefully and remember that you will only upload one workspace (*.mat) file. Make sure to name the clean_speech variable correctly. 1) Download the Matlab workspace from the link provided in Canvas. Move the downloaded file to the same folder as your script to make things simpler. 2) Load the downloaded workspace into Matlab. You can...
A six-sided die is rolled, and the number N on the uppermost face is recorded. From...
A six-sided die is rolled, and the number N on the uppermost face is recorded. From a jar containing 10 tags numbered 1,2,...,10 we then select N tags at random without replacement. Let X be the smallest number on the drawn tags. Determine Pr{X=2}and E[X]. Please solve it step by step especially the expectation part. appreciate it. You can draw some intuition graph and picture to help you explain
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT