Here's the procedure in excel:
In the formula bar for cell A1 (say), write:
=RAND()*2
This generates a random number between 0 and 2
In the formula bar for cell B1(say), write:
=RAND()*4
This generates a random number between 0 and 4
In the formula bar for cell D1(say), write:
=IF(A1*A1>B1,1,0)
and then drag for the 1000 entries in each column.
The number of 1s in D1 is the number of times x2>y
So to count the total let E1=SUM(D1;D1000)
Then our Monte-Carlo estimate for the area is 8*E1/1000.
The 8 is the area of the rectangle { (x,y) : 0<x<2,
0<y<4 }
4. Estimate f x2 dx between 0 and 2 using Monte Carlo Inte ratio on. Here's how: Generate 1,000 r...
Write a Java program that uses the Monte Carlo method to estimate the value of PI. This method uses the unit circle inscribed in a square with sides of length 2 and random numbers to perform the estimation. The estimation works as follows: • Two random numbers are generated during each iteration of a loop. • The random numbers are each in the range of -1 to 1. One random number is the x-coordinate and the other is the y-coordinate....
Exercise 2 (Monte Carlo integration). Let (Xk)kzl be i.i.d. Uniform([0, 1]) RVs and let f: [0,1] -- R be a continuous function. For each n2 1, let (f(X)f(X2).+f(Xn)) (3) In = -- .. + Sof(x) dx in probability. (i) Suppose o f (x)| dx (ii) Further assume that f lf(x)2 dx <o0. Use Chebyshef's inequality to show that :< oo. Show that In P (IIn-I2 alVnVar(f(X1)) a2 f(x)2 dx (4)
[20 points] Problem 2 - Monte Carlo Estimation of Definite Integrals One really cool application of random variables is using them to approximate integrals/area under a curve. This method of approximating integrals is used frequently in computational science to approximate really difficult integrals that we never want to do by hand. In this exercise you'll figure out how we can do this in practice and test your method on a relatively simple integral. Part A. Let X be a random...
3. In a Monte Carlo method to estimate T, we draw n points uniformly on the unit square [0, 1]2 and count how many points X fall inside the unit circle. We then multiply this number by 4 and divide by n to find an estimator of T (a) What is the probability distribution of X? b) What is the approximate distribution of 4X/n for large n? (c) For n- 1000, suppose we observed 756 points inside the unit circle....
10. Trapezoidal Rule is used to approximate the integral f(a) dx using 1- (yo +2y1 + 2y2 + x-na b-a + 2yn-1 +%),where Use this approximation technique to estimate the area under the curve y = sinx over。 a. π with n 4 partitions. x A 0 B: @ Δy B-A b. The error formula for the trapezoidal rule is RSL (12ba)1 where cischosen on the interval [a, b] to maximize lf" (c)l. Use this to compute the error bound...
8396 5101281 5 8 2 0 1 12 ( 4 2 1 ) ) ) 0000 f-000 0246802 (i) Defining fo-f(zo). Л that the quadratic f(x) and f2 f(x2), where Zo-x1-h and x2-xuth, show 2 , f2 - jo 2h2 2h is the quadratic interpolating function for fo, fı and f2 (i.e. show that p(x)-f) 4] (ii) Use the interpolating polynomial p(x) as defined above, with Zo-12, xỉ-1.4 and 22 -1.6 (and fo, fı and f2 given by the table...
please help with 1 through 6
vProbSet5a%20(2).pdf 1. Find the area between f(x) 2-x2 and f(x) x Concrete sections for a new building in meters are as shown. 2. 5.5S Find the area of the face of the concrete section where the right half of the curve is y-V5-x. Round to two decimal places. a) b) Find the volume of the concrete section. One cubic meter of concrete weighs 5000 Ibs. Find the weight of the concrete section. :1-Rev-Prob-Set53%20(2) pat...
FR2 (4+4+4 12 points) (a) Let XI, X2, X10 be a randoin sample from N(μι,σ?) and Yi, Y2, 10 , Y 15 be a random sample from N (μ2, σ2), where all parameters are unknown. Sup- pose Σ 1 (Xi X 2 0 321 (Y-Y )2-100. obtain a 99% confidence interval for σ of having the form b, 0o) for some number b (No derivation needed). (b) 60 random points are selected from the unit interval (r:0 . We want...
Chapter 4, Section 2, Exercise 079 Thirty students are asked to choose a random number between 0 and 9, inclusive, to create a data set of n 30 digits. If the numbers are truly random, we would expect about 3 zeros, 3 ones, 3 twos, and so on. If the data set includes 8 sevens, how unusual is that? If we look exclusively at the number of sevens, we expect the proportion of sevens to be 0.1 (since there are...
Titration: Acids and Bases
2. How can you determine which acid is diprotic?
3. using the answers to questions one and two, which acid is
diprotic?
4. Which base has more hydroxide ions per molecule?
Acid Volume Base Base Initial Volume (mL) Base Final Volume (mL) Volume of Base Used (mL) Acid: Base Ratio Acid 1 20 mL Base 1 50 mL 34.5 15.5 4:3 Acid 2 20 mL Base 1 Acid 1 20 mL Base 2 Acid 2 20...