Consider the problem of estimating π using a unit square centered at (1/2, 1/2) and an inscribed circle inside the square. We will estimate π by simulating n darts. For the nth dart, if the dart is inside the circle, then we return In = 1; otherwise, we return In = 0.
1. Are I1, I2, · · · , In independent? Under what assumption?
2. Are I1, I2, · · · , In identically distributed?
3. Let p represent the probability that a dart falls inside the circle. Calculate E[I] and Var(I). Your answers should be functions of p only.
4. Let ¯I = (1/n) Pn i=1 Ii . Calculate E[ ¯I] and Var( ¯I). Your answers should be functions of p and/or n only.
5. In class we learned that π = 4p and ˆπ = 4ˆp = 4¯I. Calculate E[ˆπ] and Var(piˆ ).
6. For large n, is ˆπ approximately normal? Why or why not?
7. Give an approximate 95% CI for π for a large n. Your answers should be a function of ¯I only.
8. For n = 100, 1000, 10000, report ˆπ and the 95% confidence interval for π.
9. Suppose that we want to make the half-width of the 95% CI for π no more than 0.01. Approimxately how many darts would be needed? Calculate it without running simulation.
I am pretty lost for this very first homework assignment for this class. The content required to solve it is either not covered in class yet, or is taught in a pre-requisite class that I have almost completely forgotten about. Please give me a hand! Any help would be appreciated!
Consider the problem of estimating π using a unit square centered at (1/2, 1/2) and an...
1. Consider a dartboard consisting of a circle of radius r inscribed in a square of side length 2r. Assume that there is some algorithm DART that randomly and uniformly throws a dart at this board, returning 1 if the dart lands within the circle and returning 0 otherwise. (c) On Canvas, we have provided a C++ program called approx_pi.cpp that computes the value of a using a random number generator. Use the following commands to compile and run the...
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....
CS0007 Good day, I am in an entry-level Java class and need assistance completing an assignment. Below is the assignment criteria and the source code from the previous assignment to build from. Any help would be appreciated, thank you in advance. Source Code from the previous assignment to build from shown below: Here we go! Let's start with me giving you some startup code: import java.io.*; import java.util.*; public class Project1 { // Random number generator. We will be using this...
This problem deals with continuous (rather than discrete) probability, but it's an interesting problem! It involves probabilistically estimating the value of pi. Consider a circle of radius 1 inscribed within a square with side 2. Both shapes are centered at the origin (0, 0). Using basic geometry, the ratio of the circle's area to the square's area is pi (1)^2/2^2 = pi/4. Now, suppose that you randomly throw some darts at this figure. Out of n total attempts, m attempts...
Given a unit circle, we try to calculate the perimeters of imscribed regsides,1 24-sided, , polygons as shown in Eure·thu. ban nglowtr of the unit circle ( 2π units ). bound for he perimee regular 6-sided polygon regular 12-sided polygomre24-sided polyg Figure! Let P denotes the perimeter of inscribed regular n-sided polygon as shown in Eigurs 1. (a) Find the values of Ps Piz P2s and Pas correct your answers to 6 decimal places (10 marks) 647..-56,4 +24Pİİ-A ·correct your...
In class, we analyzed Buffon's needle experiment. We showed that if a large sheet of paper has parallel lines that are 1 inch apart, and we throw a needle of length 1/2 inch at it, the probability that the needle hits a line is l/r. We can estimate π by throwing many needles and seeing how many throws hit a line. Suppose we throw a needle n times, and each throw is independent. Let X be the number of throws...
Problem 5. Indicator variables S points possible (graded) Consider a sequence of n 1 independent tosses of a biased coin, at times k = 0,1,2,...,n On each toss, the probability of Heads is p, and the probability of Tails is 1 -p {1,2,.., at time for E resulted in Tails and the toss at time - 1 resulted in A reward of one unit is given if the toss at time Heads. Otherwise, no reward is given at time Let...
Graph 1 Graph 2 Graph 3 Graph 4 Match the correlations to the graphs. Note that 4 correlations will not be used. You have 5 attempts, and you must select all graphs correctly for credit. 1 Graph 1 Graph 2 - Graph 3 Graph 4 - 1 1 Researchers are interested in testing against the null hypothesis that there is no correlation between female life expectancy and infant death rates. They collect data on n=97 countries and calculate a 95%...
A2 Let X B(n,p) with known n. Then E(X) np and Var (X) np(1- p). Let p X be an estimator of p. a. If n is large (large enough np> 10 and n(1 - p)> 10), what is the (approximate) distri- bution of p? b. We talked in class that providing a confidence interval is "better" than a point esti- mate. Suppose X = 247 (247 successes) is observed in B(450, p) experiment. Suggest a 95% confidence interval for...
2:49 ) (1 point) THE PROBLEM Standard electrical wires used in houses have a diameter of d 2.053 mm and are approved for currents up to 20.0 A. If the current in a particular wire is I-18 A, calculate the magnetic field strength (a) inside the wire, -0.147 mm from the centre. (b) at the surface of the wire. (c) outside the wire, at distance L-0.373 mm from the surface of the wire PAPER SOLUTION INTERPRET Identify all of the...