Plot an outcome of the proportion of successes

Assignment Help MATLAB Programming
Reference no: EM13493086

1. Simulate 2000 coin flip experiments with a biased coin with "success" probability (chance of 1) p = 1=5. Plot an outcome of the proportion of successes with respect to the number of coin flips. Supply your code.

2. Simulate the total number of trials required to achieve first success, where success is rolling a pair of twelves on two fair twelve-sided die. Repeat this experiment 50000 times, and calculate the sample mean and sample standard deviation over these 50000 trials. Supply your code.

3. Simulate 3000 coin flip experiments with a biased coin with \success" probability (chance of 1) p = 7=8. Repeat this experiment 1000 times, and plot the overall average proportion of successes with respect to the number of coin flips, together with the maximum and minimum proportion of successes over these 1000 repeated experiments. Supply your code.

4. Using the inverse-transform method on uniform (0, 1) (pseudo)random variates, simulate one million outcomes from X ~ Exp(3), and compute the sample mean and sample variance of the indicator I(X>3) of the rare event l = P(X > 3). The sample mean is called the crude Monte Carlo estimator. Supply your code.

5. Using the inverse-transform method on uniform (0, 1) (pseudo)random variates, simulate one million outcomes from Y with Cauchy pdf f(y, μ, Τ) = Τ(Π(Τ2+(y - μ)2))-1, with μ = 3 + 1/6 and Τ= 1/6, and compute the sample mean and sample variance of

1835_Compute the sample mean and sample variance.png

The sample mean is called a likelihood ratio estimator of the rare event l = P(X > 3), with X ~ Exp(3). Supply your code.

6. Using the inverse-transform method on uniform (0, 1) (pseudo)random variates, simulate one million outcomes from Z with Cauchy pdf f(z, μ, Τ) = Τ(Π(Τ2+(z -μ)2))-1, with μ ranging over {3.00, 3.05, . . . , 3.50g and Τranging over {0.10, 0.11, . . . , 0.50}.

Plot (over the two-dimensional range of (μ, Τ)) the sample mean and sample variance of

1486_Compute the sample mean and sample variance1.png

Comment on the "best" value for the parameter pair (μ, Τ). Supply your code.

Reference no: EM13493086

Questions Cloud

Explain what is the initial cell potentials : A voltaic cell consist of a pb/pb2+ half cell and a cu/cu2+ half cell at 25 c the initial concentrations of pb2+ and cu2+ are 5.3*10^-2 M and 1.6M respectively. what is the initial cell potentials
Obtain the wavelength in vacuum for blue light : Obtain the wavelength in vacuum for blue light, whose frequency is 6.58 1014 Hz
Explain relative humidity is drawn into the drier : You are designing a drier that must evaporate 200 lb/h of H2O from sludge by using air. Air at 70°F and 50% relative humidity is drawn into the drier and it leaves at 140F and 70% relative humidity. How much volume of dry air needs to be used for ..
What the capacitance and the resistance : A series circuit with a resistor and a capacitor has a time constant of 0.41 ms. The circuit has an impedance of 419 O at a frequency of 1250 Hz. What the capacitance and the resistance
Plot an outcome of the proportion of successes : Simulate 2000 coin flip experiments with a biased coin with "success" probability (chance of 1) p = 1=5. Plot an outcome of the proportion of successes with respect to the number of coin flips. Supply your code.
Estimate the magnetic force on the particle : In a 1.31 T magnetic field directed vertically upward, a particle having a charge of magnitude 8.60 uC and initially moving northward at 4.72 km/s is deflected toward the east. Find the magnetic force on the particle
An edge-triggered d flip-flop circuit is used : Identify and discuss an application in which an Edge-Triggered D Flip-Flop circuit is used and discuss why is it used, what are the benefits of using that circuit, in this application, can improvements be made in this application
Define a radioactive spill and gives a reading : A Geiger counter is placed 1cm from a radioactive spill and gives a reading of 12,000 cpm. At what distance is the intensity of radiation 40 cpm
What controls must have been lacking : What controls must have been lacking at White Electric Supply to enable the bookkeeper to steal nearly $416,000 before being caught?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd