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

  Index of the largest fibonacci number

What is the index of the largest Fibonacci number that can be represented exactly as a MATLAB double-precision quantity without roundoff error

  Viewing the guided solutions for stormy attaway''s intro

I subscribed for a 7 day study membership trial 2 days ago. I have been viewing the Guided solutions for Stormy Attaway's Intro to programming in Matlab 2nd edition

  Develop a well-structured function

Develop a well-structured function to compute v as a function of t. Then use this function to generate a table of v versus t for t = -5 to 50 at increments of 0.5.

  Finds the value of a using a numerical method

Finds the value of a using a numerical method

  write a function under the name "write2"

a)Write a function under the name "write2" so that it will save the diagonal component of the given matrix...

  Compute and flote 4 average temperature profiles

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

  Design and fir filter in matlab

What does the pole-zero diagram tells you about the filter

  Dimensional plot of the free surface charge

Include a qualitative dispersion curve sketch thatdemonstrates the operating point at which your Matlab plot applies.

  Prepare a program to enter a scalar value of temperature

Create a program that prompts the user to enter a scalar value of temperature. If the temperature is greater than 98.6°F, send a message to the command window telling the user that he or she has a fever.

  Cell array named carray that will hold numbers and text

In MATLAB, write a program to create a cell array named CArray that will hold numbers and text. Create a loop that first asks for an 'n' to be entered for a number or an 's' to be entered for a text string. If neither an n nor an s is entered, end..

  Generate by means data.m an array

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

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