Ask MATLAB Expert

General Instructions:

•  Make sure results are clearly laid out and easy to understand
•  Clearly label all output values, and indicate answers to problems
•  Graphs should have titles and appropriate labels for their respective axes
•  Units for all values should be indicated

problem:

Suppose that x and y are independent and normally distributed random variables. The mean and variance of x are µx = 9 and σ2
x= 3.  The mean and variance of y are µy = 8 and σ2y = 4.

a)  The mean of the sum (or difference) of two independent random variables equals the sum (or difference) of their means, but the variance is always the sum of the two variances.

Use random number generation to verify this for the case z = x + y. Find the mean and variance of z by simulation, and compare the results with the theoretical prediction.  Do this with simulations of 100, 1000 and 10000 samples.

b)  If z = xy, find the mean and variance of z by simulation. Does µz = µxµy?  Simulate with 100, 1000, 10000 and 100000 samples.

c)  If z = x2, find the mean and variance of z by simulation.  Does µz = µx2? Simulate with 100, 1000, 10000 and 100000 samples.

problem:

Many board games require the player to roll two dice. The number on each dice can vary from 1 to 6.

a) Use the rand function to combinations with a rounding function to create a user defined function which returns a simulation of one roll of a dice.

b) Use the function developed in a) to create a simulation which returns the value obtained by roll two dice.

c) Run the simulation 100 times, and determine the mean and standard deviation of the 100 simulations. Plot a histogram of the 100 roll results.

problem:

The analysis of breaking strength of a certain material shows that It is normally distributed with a mean of 250 kg, and a standard deviation of 4.3 kg.

a) Estimate the percentage of material samples that will have a breaking strength of at least 247 kg.

b) Estimate the percentage of material samples that will have a breaking strength less than 245 kg.

c) Estimate the percentage of material samples that will have a breaking strength with 3.5 kg of the mean breaking strength.

problem:

Consider a gas in a piston-cylinder device in which the temperature is held constant. As the volume of the device is changed, the pressure was measured. The volume and pressure measurements are given in the following table, for two different temperatures:

876_voliume pressure table.jpg

a) Use both linear and cubic spline interpolation to estimate the pressure when the volume is 3.8 m3 (T = 300 K).

b) Use both linear and cubic spline interpolation to estimate the volume when the pressure is measured as 1000 kPa (T = 300 K).

c) Use both linear and cubic spline interpolation to create an expanded volume-pressure table with volume increments every 0.2 m3 (T = 300 K). Create two graphs (one for linear values, one for cubic spline values) and plot the find outd values on the same graph with the measured data.  Show the measured data as circles with no line, and the  find outd values as a solid line.

d) Use the interp2 function and the data in the table to approximate a pressure value when the volume is 5.2 m3 and the temperature is 425 K.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M9211

Have any Question? 


Related Questions in MATLAB

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Question 1 manipulate spectral imagehyperspectral images

Question 1. Manipulate spectral image Hyperspectral images can be seen as a generalisation of normal colour images such as RGB images. In a normal RGB colour image, there are 3 channels, i.e. channels for red colour, gre ...

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As