Simulate the repeated throwing of two random sixsided dice

Assignment Help Mechanical Engineering
Reference no: EM131113325

Submit a PDF of your homework write-up in the HW5 dropbox with all of your script files before the posted due date. The script files must be commented and run without errors. Each problem must have its own m file(s). All plots are to include complete axis labels.
Your write-up will be in a narrative form and written in a word processor (e.g. MS Word). Do not use the "publish" feature in Matlab to make your report. Explain (briefly) how you solved each problem, present the results (including all plots) and then the interpretation of the results. A plot is not the entire answer to a problem. You may include snippets of code in the write up as a reference, but do not paste the entirety of the m file in the report. The report should be self-contained and not require the reader to look at the m file to understand what you did. If a question asks you to show mathematical steps, you may use the equation editor or (neatly) scan in handwritten work and include it in the report.
1. The data contained in blood.csv contains the lifespans (in days) of human red blood cells from a clinical experiment
A. Show a relative-frequency histogram of the lifespan with the number of bins determined by Rice's formula
B. Make an assessment and justify if it is fair to treat the lifespans as a coming from normal distribution
C. Determine the median, 95th and 5th percentiles of the lifespan

2. Simulate the repeated throwing of two random six-sided dice.
A. Show a relative-frequency histogram of the sum of the dice with the number of bins set at eleven (one for each possible combination)
B. Make an assessment if it is fair to treat the sum as a normal distribution
C. Using the results of your simulation, what is the probability of rolling an 11
or 12?

3. The data contained in lobster.csv contains weights of lobsters (in ounces) caught in Massachusetts last year.
A. Show a relative-frequency histogram of the lobster weight with the number of bins determined by Sturges' formula
B. Determine the mean and standard deviation of the weights
C. Make an assessment and justify if it is fair to treat the lobster weights as normally distributed?
D. Lobstermen are able to sell lobsters that weigh over 24oz at an increased price. What percent of the shellfish they catch could they expect to fall into this category? Estimate using
i. The raw data
ii. NORMCDF assuming that the lobster weights are normally distributed


4. A shipping pallet holds ten boxes. Each box contains 255 pieces of part X and 160 pieces of part Y. The weight of part X is normally distributed with a mean of
lb and standard deviation of 0.15 lb. The weight of part Y is uniformly distributed between 1.1 lbs to 1.25 lbs. Using a Monte Carlo simulation:
A. Compute the mean and standard deviation of the weight loaded onto the
pallet.
B. Show a relative-frequency histogram of the weight on the pallet with the number of bins determined by Sturges' formula.
C. Verify that the number of simulations you are running is sufficient by graphically showing convergence in the mean of the weight on the pallet. Display in a plot with the horizontal in log-scale and the vertical in linear-scale. If you find it was not, redo parts (A) and (B).
D. Is it reasonable to treat the weight on the pallet as normally distributed? Explain.
E. A wooden pallet can safely hold a weight of up to 4950 lb. What percentage of the pallets can we expect to be overloaded based on
i. The simulation data
ii. A normal distribution using NORMCDF

5.A machine is being built out of two types of parts: A and B. Part A will work 98% of the time when turned on and part B works 90% of the time when turned on. The machine has 10 of part A and five of part B. For the machine to operate correctly when turned on, all 10 of part A must function and at least 3 of part B must function.
A. What is the probability that the machine will operate correctly when turned on
B. Verify that the number of simulations you are running is sufficient by graphically showing convergence in the probability of successful operation. Display in a plot with the horizontal in log-scale and the vertical in linear-scale. If you find it was not, redo part (A)
Hint: to simulate turning the machine on, you will want to have random numbers that determine the success or failure of each part. Then you will want to test if enough parts work for the machine to function. Repeat this simulation until convergence.

Reference no: EM131113325

Questions Cloud

Determining the current infrastructure : GAI is a new advertising firm, and they have hired staff, are established in two locations, and have a need to get their internal IT services configured. They have an IT staff, but they do not have the in-house expertise to address their current i..
How society views diabetes : Create a 350- to 700-word resource as a way to share this information. Examples include the following: A social media page, An information pamphlet and A presentation.
Calculate the new terminal voltage for same field current : If this alternator is to generate 60-Hz voltages, find the new synchronous speed, and calculate the new terminal voltage for the same field current.
What challenges are presented : What challenges are presented when different verbal communication styles are used? How can those challenges be resolved
Simulate the repeated throwing of two random sixsided dice : Submit a PDF of your homework write-up in the HW5 dropbox with all of your script files before the posted due date. The script files must be commented and run without errors. Each problem must have its own m file(s). All plots are to include complete..
How much has the bank liability changed : A foreign exchange with a U.S. bank took a short position of £5,000,000 when the $/£ exchange rate was 1.55. Subsequently, the exchange rate has changed to 1.61. Is this movement in the exchange rate good from the point of view of the position taken ..
Subsidiary total other comprehensive income : The subsidiary's total other comprehensive income is a gain of CU3,000 for the year ended 31 December 20X7 (20X6: a loss of CU2,000).
Notes receivable with unrealistic interest rate : Assume that Hurly Co. elects the fair value option for this note. Prepare the journal entry at December 31, 2010, if the fair value of the note is $320,000.
What are the patterns and channels of communication in film : What are the patterns and channels of communication in your film? What communication patterns are important? Why? What do they reveal about the issues in cultural context that you are investigating

Reviews

Write a Review

 

Mechanical Engineering Questions & Answers

  Milk enters the tank through a 005 m diameter pipe at a

a large storage tank contains 500000 l of milk. milk enters the tank through a 0.05 m diameter pipe at a velocity of 3

  What causes stall on an aircraft

What causes stall on an aircraft and why do different planes reach stall at different positions?

  Determine the power required to drive the pump

A water pump is required to pump 0.23ft3/sec of water at 60F at atm up to 100psi gage. of the pump has an estimated isentropic efficiency of 50%, determine the power required (HP) to drive the pump.

  In a rankine cycle with reheat steam at 500c expands in a

in a rankine cycle with reheat steam at 500c expands in a high pressure turbine until it reaches the saturated vapor

  If the orifice is suddenly opened coefficient of discharge

a tank 1.5m high stands on a trolley and is full of water. it has an orifice of diameter 0.1m at 0.3m from the bottom

  Estimate the pressure in kpa from a the ideal gas equation

it is desired to store 5 kg of o2 in a 30 liter tank at-106.5degc. to design the tank we need to determine the pressure

  For dynamic similarity between the two reynolds numbers

a capillary tube has an 8 mm diameter through which liquid fluorine refrigerant r-11 flows at a rate of 0.03 cm3s. the

  To avoid frequent replacement of the wear plate

We have only a water quench available to us. Design the plate, assuming that we only have the steels given in Figure 13-21 available to us.

  Estimate the design-stage uncertainty in determining the

estimate the design-stage uncertainty in determining the voltage drop across an electric heating element. the heater

  If the fluid is gasoline at 20 degrees celsius and the flow

a centrifugal pump has d1 6 inches d2 14 inches b1 5 inches b2 4 inches beta1 20 degrees beta2 45 degress and rotates

  The ice cap at the north pole may be 1000 m think with a

the ice cap at the north pole may be 1000 m think with a density of 920 kgm3. find the pressure at the bottom and the

  Stray heat transfer from the heat exchanger may be

consider an air-water heat exchanger. air flowing steadily at the rate of 0.5 kgs enters the heat exchanger at 100 kpa

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