Create 10000 gaussian random variables with m and s

Assignment Help Electrical Engineering
Reference no: EM13275926

Simulation of tossing a pair of fair dice can be done using the following two
MATLAB lines
X=ceil(6*rand(1,n));
Y=ceil(6*rand(1,n));
where n is the number of tosses.
1. Write a MATLAB script to determine the probability P[X+Y=7]. Use a "for" loop to run simulation fifty times with n = 10000. Plot the 100 estimated probability values along with the theoretical result of P[X+Y=7].

2. Write a MATLAB script to do the following
a. Create 10000 random variables uniformly distributed between 2 and 4.
b. Create a histogram to approximate the actual probability density function.
c. Superimpose the actual probability density function to the above histogram.

3. Write a MATLAB script to do the following
a. Create 10000 Gaussian random variables with m =2 and s = 3.
b. Create a histogram to approximate the actual probability density function.

Reference no: EM13275926

Questions Cloud

What is meant by hedging in the financial futures market : What is meant by "hedging in the financial futures market to offset interest rate risks"? How do firms engage in hedging activities? What knowledge is necessary to hedge the firm's risks?
Determine the conduction parameter and threshold voltage : Consider a GaAs MESFET. When the device is biased in the saturation region,Id=18.5 micrroamp,Vgs=.35 and Id=86.2 micro amp,Vgs=.5 determine the conduction parameter and k and threshold voltage Vth
Determine the power transmitted through the shaft of a car : Determine the power transmitted through the shaft of a car when the torque applied is 200 N · m and the shaft rotates at a rate of 4000 revolutions perminute (rpm).
Create random variables uniformly distributed between 2 nd 4 : a. Create 10000 random variables uniformly distributed between 2 and 4. b. Create a histogram to approximate the actual probability density function. c. Superimpose the actual probability density function to the above histogram.
Create 10000 gaussian random variables with m and s : Write a MATLAB script to determine the probability P[X+Y=7]. Use a "for" loop to run simulation fifty times with n = 10000. Plot the 100 estimated probability values along with the theoretical result of P[X+Y=7].
Prepare all necessary entries in general journal : Why is it stated that LIFO usually produces a lower gross profit than FIFO and prepare all necessary entries in general journal form for Sanford Corp.
Find the solution to the differential equation in part a : (a) Write down a differential equation modeling the current I(t) (b) Assume that V=0 and I(0)=Io. Find the solution to the differential equation in part a. (c) Assume that V>0 is a constant and I(0)=0. This corresponds to adding a switch to the circu..
Find maximum power is could deliver to a well chosen rl : A certain practical dc voltage source can provide a current of 5.5A when it is (momentarily) short-circuited, and can provide 28W to a 20Ω load. Find a.)The open-circuit voltage b.)The maximum power is could deliver to a well chosen RL
Estimate the coefficient of static friction : A 6.0-kg block is at rest on a horizontal floor. If you push horizontally on the 6.0-kg block with a force of 24.0 N, it just starts to move. What is the coefficient of static friction

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Write a function that takes inputs of quarts and pints

Use appropriate parameter passing and return mechanisms. Use appropriate datatypes. For example, with inputs of 4 quarts and 4 pints, the result would be 1.5 gallons. Use proper code formatting techniques. Do not write a main routine. Your functio..

  Write assembly code to put every byte in the proper order

Assume, the program is to start at $C000. The program is to sort a block of 8-bit data where the starting address of the data block is stored at location $8000/8001 and the 8-bit data where the starting address of the data block is stored at $8002..

  Design with proper sizing exclusive or circuit for two input

Assume that the basic inverter has (W/L)n = 0.5 um/0.25 um and (W/L)p = 2 um/0.25 um. What is the minimum area occupied by the circuit neglecting contact areas. Assume that the inputs A and B and their complements are available.

  Determine the transfer function of the filter

Convert the designed prototype filter to highpass filter with cutoff frequency f_C=10,000 Hz, with 30 db attenuation at f_S=1000 Hz. Determine the transfer function of the filter.

  What is the effective data rate

What is the effective data rate of this transfer (not counting the time for reading or writing the DVDs)?

  Compute and plot the 128 point fft of a 0.125hz cosine wave

Compare the differences in the FFT result. Explain why even though the inputs to both FFTs are the same cosine waves, the shapes of the FFTs are different.Compute and plot the 128 point FFT of a 0.125Hz cosine wave

  Find the beams divergence angle and depth of focus

A laser (wavelength fo = 633 nm) is generating a Gaussian beam with 0.1 mm beam waist (2wo). (1) Find the beam's divergence angle and depth of focus (2) What will be its diameter when it reaches Moon

  How a collection of cells can be arranged to deliver power

A single silicon photovoltaic cell is found to have an open-circuit voltage of 0.6 V and a short-circuit current of 15 mA in full sunlight. Show how a collection of these cells can be arranged to deliver 500mW at 9.0V into a load.

  Find the sample space for the experiment

Find the sample space for the  experiment: Drawing bolts from a lot of 20, containing one defective D, until D is drawn, one at a time and assuming sampling without replacement, that is, bolts drawn are not returned to the lot.

  Determine what is the average power of terminal

The voltage across the terminals of a certain circuit and the current entering into its (+) voltage terminal are given by: v = 4 + 12 Cos[377 t + 60 Degree] - 6 Cos[754 t - 30 Degree] i = 5 + 10 Cos[377 t + 45 Degree] + 2 Cos[754 t + 15 Degree] What ..

  Find the system-specific part of the response-output

Consider the first-order linear differential equation y(t) + 5 (dy(t) / dt) = x(t) Compute the zero-input response (general solution of the homogeneous equation) to find the system-specific part of the response

  Design a common emitter amplifier with no bypass capacitor

Design a Common Emitter amplifier with no bypass capacitor which has an overall gain of AV=-15 when the input voltage has a source impedance (Rsource) of 2k, and the amplifier itself has an Rin= 4k, Rload= 6k,VCC= 15V,VBE= 0.7V

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