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

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

### Write a Review

#### Find what is the time needed to complete the faster process

A p-type wafer has a diffused Phosphorous n-type junction with a junction depth of 0.15µm. a) If the wafer (no pre-existing oxide) is to be oxidized at 1000-oC for two hours to form a ‘dense, non-porous, high-quality' gate oxide.

#### Calculate the output power of the induction motor

a 400v induction motor runs with slip 3% and consumes 5800w from the supply. it the stator losses equal 500w and the mechanical losses are 100w. calculate the output power of the motor

#### What is the after-tax investment value of the machine

A corporation purchased a machine for \$60,000 five years ago. It had an estimated life of 10 years and an estimated salvage value of \$9,000. The current book value of this machine is \$22,500. If the current market value is \$40,000.

#### Verify loop analysis method by multisim simulation

Scenario/Summary: At least two of the following simulations must be attempted by the student. Verify Loop Analysis Method by MultiSim simulation Verify Superpposition Theorem Method by MultiSim simulation

#### Detrmine the phase angles of the two frequency components

The output/ input of a system is 30dB. detrmine the ratio Express x(t)=4*cos(100*t-45)+ 2*cos(250*t+30) in terms of exponential functions Then Detrmine the phase angles(in degrees) of the two frequency components of x(t).

#### What is the input impedance of the line if it is l km long

What is the propagation constant at 500 MHz. Use the fact that the velocity of an EM wave in a lossless air-filled line is the same as that of free-space propagation in air. That is, the propagation constant is the same.

#### What will be input resistance seen by the 2v input source

An inverting amplifier is built using an opamp that has a 2V internal offset voltage. (You may consider the opamp ideal otherwise). The circuit uses a feed-back resistor of 2K and an input resistor of 1K. If a 2V input is given to the amplifier

#### Determine min step size e necessary to avoid slope overload

consider a message signal m(t)= e^(-2t) cos(2000*pi*t) u(t) a) determine the minimum step size E necessary to avoid slope overload b) calculate the minimum avaerage quantazation noise power based on part a

#### Explain how a parity checker would also have detected error

Given 4 Bytes of hexadecimal data: 34H, 62H, 43H, and 17H. 1.Find the checksum byte. 2. Perform the checksum operation to ensure data integrity (add the 5 Bytes showing sum equal to zero). 3. If the second byte changes from 62H to 22H, show how the c..

#### Derive expression of hole diffusion velocity in the region

In a certain n-type region of a semiconductor in thermal equilibrium, there is a hole concentration with the following spatial distribution: po(x)=103(1 9×103x)cm 3 for0 x 10 4 withxincm Assume that in this region, the electron mobility and hole mob..

#### Draw circuit that implements parallel bit-slice parity check

Draw circuit that implements parallel bit-slice parity checker. Its input is X=xn-1xn-2...x1x0 and it should produce output F=1 iff input X has even parity. Make sure to label all signals and ports.

#### Determine the capacitance required in a half wave

Determine the capacitance required in a half wave rectifier to produce a ripple voltage less than 0.2V. Assume that the input is a 60Hz signal with maximum voltage VM=100V