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

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

  Fingerprint watermarking techniques

Need to investigate the best method to embed watermark image into fingerprint image.

  Write a function that takes a list of integers as argument

Write a function that takes a list of integers as argument and returns a pair consisting of the sum of the even positions and the sum of the odd positions of the list. You should not use any auxiliary functions.

  Finds the largest integer in the list recursively

Write a program that, given a list of 20 integers, finds the largest integer in the list recursively

  Determine and explain cost function and decision variables

Determine and explain the cost function and decision variables and define a problem of your choice which can be tackled by Biologically Inspired Methods.

  The concentration of medication in the blood declines

After a dose, the concentration of medication in the blood declines due to metabolic processes. The half-life of a medication is the time required after an initial dosage for the concentration to be reduced by one-half.

  Finite difference method

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

  Time domain design and analysis

To design a "custom" controller to reduce the vibrations of the seat and a PID controller to reduce the vibration of the seat

  F data into matlab using only the textread function?

load the following type of data into mathlab using ONLY the textread funcion? Need to import it and plot it using boxplot.

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

  Design simple interface hardware

Evaluate the capability in selecting and configuring a microcontroller unit designing simple interface hardware and writing subroutines to operate those interfaces

  Write a function that collects integers from the user until

Write a function that collects integers from the user until a 0 is encountered and returns them in a list in the order they were input (ML only).

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