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

  Design and synthesis of continuous time controllers

Design and synthesis of continuous time controllers - A graphical user interface (GUI) is a human-computer interface that uses menus, dialogue box, and button which can be manipulated by a mouse

  Determine the specular component

Reparemeterizing each pixel point using spherical coordinates and rotation RGB color space to SUV color space in the paper

  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].

  Rearranging preceding relationship between moles and mass

Create a function M-file called mass that requires two vector inputs-the number of moles and the molecular weight-and returns the corresponding mass. Because you are providing vector input, it will be necessary to use the meshgrid func..

  Use the definition for the laplacian in the discrete case

Show that subtracting the Laplacian from an image is proportional to unsharp masking. Use the definition for the Laplacian in the discrete case to derive the equivalence relation, constant weighting factors should not affect your conclusion.

  Write mass balance equations for the remaining reactors

Write mass balance equations for the remaining 4 reactors. Put the known values in the 5 equations and convert each equation into a form where left hand side contains all the variables and the right hand side the constant term.

  Consider a cstr with a feed stream

Consider a CSTR with a feed stream containing only A at a concentration of cA and the reactions A?B?C taking place in the CSTR. Both reactions are first order in the reactant

  T prints out, on a clear screen, a table of temperatures

Create a MATLAB program (utilizing a temp-conversion function) that prints out, on a clear screen, a table of temperatures.

  Division by zero is not possible

You must also ensure that division by zero is not possible. If the user tries to divide by zero, the calculation should not be attempted, and an error message should appear in the Result text box.

  Write a function that takes a list of integers

Using ML write a function that takes a list of integers as argument and returns a pair consisting of the sum of the even position and the sum of the odd positions of the list.

  Write a matlab function that takes a matrix

Write a MATLAB function that takes a matrix, a row number and a column number. Beginning with the row number passed to the function, scan down the column passed to the function and return the row number that contains the largest absolute value in ..

  Calculate an approximation to the energy consumed

Calculate an approximation to the energy consumed over the period and calculate an approximation to the energy consumed over the period t = a to t = b.

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