Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose you are an instructor and you want to design a coding question to ask students to estimate an area using the Monte Carlo method.

image text in transcribed

Suppose you are an instructor and you want to design a coding question to ask students to estimate an area using the Monte Carlo method. In the designed coding question, 100 samples are required. Also, 100 samples will be used in the reference code, and the autograder will use the result of reference code as the "correct" result. After testing, you found that after using 100 samples, the absolute error of the "correct" result is 8, and you decided to secretly use 100000 samples to generate the "correct" result. Student A still uses 100 samples to generate his running result, which has absolute error of 8 as well. Calculate reasonable upper and lower bound for the absolute differences between Student A's result and the "correct" result. Upper bound: number (rtol=0.01, atol=0.0001) Lower bound: number (rtol=0.01, atol=0.0001) Suppose you are an instructor and you want to design a coding question to ask students to estimate an area using the Monte Carlo method. In the designed coding question, 100 samples are required. Also, 100 samples will be used in the reference code, and the autograder will use the result of reference code as the "correct" result. After testing, you found that after using 100 samples, the absolute error of the "correct" result is 8, and you decided to secretly use 100000 samples to generate the "correct" result. Student A still uses 100 samples to generate his running result, which has absolute error of 8 as well. Calculate reasonable upper and lower bound for the absolute differences between Student A's result and the "correct" result. Upper bound: number (rtol=0.01, atol=0.0001) Lower bound: number (rtol=0.01, atol=0.0001)

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 Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions