Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

32. (a) The MatLab exercise from week 1 asked you to simulate an experiment in which a fair dice is thrown N times and the

image text in transcribed

image text in transcribed

32. (a) The MatLab exercise from week 1 asked you to simulate an experiment in which a fair dice is thrown N times and the sample mean is calculated, and this experiment is then repeated 10,000 times. The objective of the exercise was to estimate how large N must be for the sample mean to be within 0.2 of the expected value for 95% of the experiments. A solution is as follows (some of the comments have been removed) 1 E=10000; % E is the number of experiments 2 N = 200; % N is the number of throws per experiment 3 e=0.2; %e is the error 4 A=randi ([1 6], E,N); 5 B=mean (A, 2); 6 Y=sum (B (abs (B-3.5)

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_2

Step: 3

blur-text-image_3

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 Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

How am I communicating feedback and learnings back to my team?

Answered: 1 week ago