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

  At what frequncy does the frequncy response drop

The woofer can be modeled as a series R-L low pass filter. Suppose that a given woofer has an inductance of 750 micron Hertz and a resistance of 4 Ohms. At what frequncy (in Hertz) does its frequncy response

  Determine value of c to ensure a unit energy constellation

S = {c(k + jl) | k = 3, 1, 1, 3 and l = 3, 1, 1, 3 and j = square root of -1, where c is a constant. Determine the value of c to ensure a unit energy constellation. Sketch this constellation. Find d^2 min and label the constellation points with bi..

  Find the probability of bit errors occurring in the frame

Let the probability of a bit error be p, and the length of a data frame be N. Find the probability of 1, 2, 3, and 4 bit errors occurring in the frame. a) Tabulate the results for N = 1000, 10000, and 100000 bits, for p = 10-6, 10-8, and 10-14

  What is the frequency at which the gain magnitude is unity

use an ideal op amp to design an inverting integrator with an input ressistanceof 10 kilo ohm and an integration time constant of 10^-3. What is the gain magnitude and phase angle of this circuit at 10rad/sand 1rad/s.

  Discuss the factors that determine transformer efficiency

Discuss the factors that determine transformer efficiency. What are some sources of transformer losses and how can these can be reduced

  What is the maximum possible power that generator can supply

A three-phase, 5kVA, 208 V, four-pole, 60Hz, Y-connected synchronous generator has negligible stator winding resistance and a synchronous reactance of 8 ohms per phase at rated terminal voltage.

  Describe the characteristics of the series rc filter circuit

Describe the characteristics of the series RC filter circuit with the output across the resistive component. Distinguish the pass and stop bands with reference to the cutoff frequency. Also, state what happens to the circuit complex impedance at t..

  Explain how does the carrier mobility depend on t

Which sample produces greater Hall voltage: long and narrow or short and wide Thickness (d) is same in both the cases. With little explanations please. 1) If the concentration of scattering centers increase in the semiconductor, would it increase o..

  Find f on side bc and find f on side ab

A rectangular loop of wire in free space joints point A(1,01,) to point B(3,0,1) to point C(3,0,4) to point D(1,0,4) to point A. The wire carries a current of 6mA, flowing the az direction from B to C. A filamentary curent of 15A flows

  Determine the period of a clock waveform at frequency

Determine the period of a clock waveform whose frequency is: a. 2 MHz b. 500 kHz c. 4.27 MHz d. 17 MHz. Write the VHDL text file (Entity and Architecture) for a 2-input NAND gate.  Write the VHDL text file for a 3-input NOR gate.

  Obtain the surface and contour plots for the temperature

A square metal plate is heated to 80 degrees celsius at the corner corresponding to x = y = 1. The temperature distribution in the plate is described by T = 80e^(-(x-1)^2)*e^(-3(y-1)^2) Obtain the surface and contour plots for the temperature.

  How many time constants are required for the current to drop

The current in a device varies with time according to the function: i(t)= 3e^(-t/T) A. Where T is the time constant. How many time constants are required for the current to drop to 250 mA

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