Construct a 2-d random variable

Assignment Help MATLAB Programming
Reference no: EM131221887

PROBLEM 1: The two foremost aerospace companies in the USA are Lockheed and Boeing. They often compete for government contracts. A major factor in awarding a contract is the claimed reliability of the given system to be built. Suppose that a particular space shuttle system health has three levels: (i) good, (ii) bad, but fixable, and (iii) bad.

(a) Construct a 2-D random variable, call it (X, Y), where X relates to the company and Y relates to the system health. Recall that this random variable is not well-defined unless its sample space is also given.

(b) Let A denote the event that the system is bad but fixable. Give this event in (i) standard notation and (ii) as a subset of your sample space in (a).

(c) Let B denote the event that the system was built by Boeing. Give this event in (i) standard notation and (ii) as a subset of your sample space in (a).

(d) Let C denote the event that that Boeing built the system, given that it has bad, but is fixable. Give this event in (i) standard notation and (ii) as a subset of your sample space in (a).

(e) Let D denote the event that that Boeing built the system, and that it has bad, but is fixable. It should be clear that there is a difference between the events C and D. Explain this difference in relation to the concept of a sample space.

(f) Let E denote the event that that the system is not good, given that it was built by Lockheed. Give this event in (i) standard notation and (ii) as a subset of the associated constrained sample space.

PROBLEM 2: In an effort to quantify the likelihood that a given manufactured part will or will not meet a given specification, a sample of n=10 parts will be randomly selected and measured for conformance. The guiding random variable, X, is the act of noting whether or not any selected part conforms to the specification, with the events [X = 0] ∼ conforms and [X = 1] ∼ does not conforms. Let Pr[X = 1] =Δ Px. Let X = (X1, X2, · · ·, X10) denote the 10-D data collection variable associated with X.

(a) How many elements are in the sample space SX?

(b) Let Y = k-110Xk denote the act of recording the number of sampled parts that do not conform. Give SY.

Remark. Because the elements of X = (X1, X2, · · ·, X10) are data collection variables in relation to X, each element is identically distributed (id), having the same distribution as X. Furthermore, because the elements are selected randomly, it is reasonable to assume that they are mutually independent (i). In other words, the elements of X are iid random variables. It should be clear that k-110Xk =Δ Y∼ binomial (n=10, p) and1408_Figure.png.

(c) Even though the goal of the study is to estimate px, assume in this part that, in truth, Px = 0.1. Use the Matlab command 'binomd' to run nsim = 15 simulations of P^x = Y/10 = X-. Include your code in the Appendix @ 2(c), and copy/paste your results below. [Give each number to only ONE decimal place.]

(d) Even though, in truth, px = 0.1, you should have found in (c) that some of your 15 simulations yielded estimates p^x ≠ px. This should be expected, since the estimator p^x is, after all, a random variable. Use the command 'binopdf' to compute Pr[p^x  = 0]. Copy/paste the command and result HERE.

(e) In view of your answer in (d), explain why you think (or do not think) your simulation results in (c) are reasonable.

(f) Use the command 'binopdf' to search for the value of the smallest sample size, n, that would yield Pr[p^x  = 0] ≤ 0.05. Give the value of the associated probability, as well as the probability for sample size n-1.

(g) To verify your answer in (f), use the pdf expression559_Figure1.pngto solve for the numerical value of n (it will not be an integer), such that Pr[p^x  = 0] ≤ 0.05.

PROBLEM 3: Suppose that a given system has n=10 critical components. Let (X1, X2, · · ·, X10) denote the states of these components, where. Let [Xk = 0] and [Xk = 1] denote the events that the kth component is good and bad, respectively. Let k-110Xk denote the number of bad components.

(a) Assume, as is the case in most textbooks on the subject, that these ten random variables are mutually independent and identically distributed (iid), and for each k ∈{1, 2, · · · , 10} we have pk =Δ[Xk = 1] = p. It should be clear that, in this case, Y ∼ binomial (n = 10, p). For p=0.05 use the Matlab command 'binopdf' to ultimately arrive at a stem plot of fY(y) over the range y ∈ {0, 1, · · · , 10}.

(b) Use your plot in (a) to visually estimate Pr[Y ≤ 2].

(c) Use the appropriate Matlab command to obtain the value of Pr[Y > 4]. Include your command HERE.

(d) The above parts related to TRUE probabilities. However, often those probabilities are not known, and must be estimated from data. Use the Matlab command 'binornd' to simulate measurements of the data collection variables {Yk}k-15. (i) Include your command and the resulting 5 measurements {yk}k-15 HERE.

(e) (i) Use your data in (d) to estimate Pr[Y = 0]. Then (ii) discuss how your estimate compares to the true value of Pr[Y = 0].

(f) Denote your estimator in (e) as Pr^[Y = 0]. To better understand this estimator, begin by using the 'binornd' command to simulate 104 estimates of Pr^[Y = 0]. Then use the Matlab commands 'mean' and 'std' to arrive at simulation-based approximate values for the mean and standard deviation of Pr^[Y = 0]. Give these numbers here. Include your code @ 2(f) in the Appendix.

PROBLEM 4: There are many endeavors in life that must be repeated again and again, until you 'get it right'. Let [Xk = 0] and [Xk = 1] denote the events that you get it wrong, or right, respectively, on the kth attempt, and let Pr[Xk=1]=Δ pk. Let the event [Y = y] denote the event that you finally get it right on the yth attempt.

(a) Assume that the collection of random variables {Xk}k-1 are mutually independent and identically distributed (iid) random variables, and that pk = 0.1 (i.e. the endeavor is a relatively challenging one). Under these assumptions, it should be clear that Y ∼ geometrixc. Use the Matlab command 'geopdf' to arrive at a stem plot of fY(y) for the range of attempts y ∈ {1, 2, · · · , 50}. Include your code @ 4(a) in the Appendix.

(b) Use the Matlab command 'geocdf' to arrive at the value for Pr[Y > 5].

(c) Identify the equations in the book that give the mean and standard deviation for Y, and compute their numerical values.

(d) The gain some experience in simulating random variables, use the Matlab command 'geornd' to simulate a single measurement of the data collection variables {Yk}k-110. (i) Copy/paste the command and related 10 measurements {yk}k-110 HERE.

(e) Now, still assume that {Xk}k-1 are mutually independent, but that in the beginning stages, after any given failure you increase your determination such that the probability of success on the next attempt is 50% greater than that of the last attempt. Assume that p1 = 0.1. Arrive at Pr[Y > 5]. Show all equation development HERE, but give related code @ 4(e) in the Appendix.

Reference no: EM131221887

Questions Cloud

Origin of lean manufacturing and six sigma : Two Conditions in Japan lead to the origin of Lean Manufacturing and Six Sigma. Japan could not compete with other industrialized economies on costs, volume or quality using standard mass production approaches and their focus on low-tech, pull sys..
How many length-(k - 1) subsets do we need to check in : Let c be a candidate itemset in Ck generated by the Apriori algorithm. How many length-(k - 1) subsets do we need to check in the prune step? Per your previous answer, can you give an improved version of procedure has infrequent subset in Figure 6..
Describe and apply operation management principles : Define the major activities associated with defining, organizing, planning, monitoring, and controlling projects. Describe and apply operation management principles. Develop and assess project management techniques.
What happens to output and the real exchange rate : If the central bank holds the real interest rate constant, what happens to output and the real exchange rate? - should it raise or lower the interest rate?
Construct a 2-d random variable : Construct a 2-D random variable, call it (X, Y), where X relates to the company and Y relates to the system health. Recall that this random variable is not well-defined unless its sample space is also given
What are some of the possible causes of this anxiety : A new employee is likely to be anxious the first few days on the job. What are some of the possible causes of this anxiety? How may the anxiety be reduced?
Exhibit the relevant information in the balance sheet : ABC Lmited issued Rs 10,000, 12% debentures of Rs 100 each payable Rs 30 on application and remaining amount on allotment. The public applied for 9,000 debentures which were fully allotted, and all the relevant allotment money was duly received. Give..
Providing security for an organization : Providing security for an organization can be a costly venture. The cost of safeguarding our information and resources should never exceed the value of that information and resource.
Shares of common stock to a valued employee : The two original shareholders of a LLC issue 40,000 shares of common stock to a valued employee (vice-president of marketing) who was being wooed by a rival company. The employee pays nothing for the shares, but the employee is prohibited from sellin..

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Does the root directory have any subdirectories

Does the root directory have any subdirectories you cannot search as an ordinary user? Does the root directory have any subdirectories you cannot read as a regular user? Explain.

  Non-linear interpolation using polyfit function

Illustrate results of your interpolation by plotting a small piece of data before and after interpolation on the same graph using the "plot" and "hold on" commands. Submit the script and the plot in a single Word file.

  Use matlab to verify the central limit theorem

Use Matlab to verify the central limit theorem for the sum of N independent exponential RVs (with a=0 and b=2) for N= 10 and 20. Repeat for the sum of N independent Weibull RVs (with a=1 and b=4). Comment on the fit to the approximate Gaussian pdf..

  Write a script to integrate a function

Write a script to integrate a function in three different ways: by eyeballing it, by calling trapz with a list of points, and by calling quad with a function.

  The buffalo is running at 6 ms at 10 degrees south of east

while riding a horse at 8 ms at 25 degrees to the north of east a rider sees a buffalo he wants to shoot. the buffalo

  Create a linear best fit line

Write a program that imports the data from the first excel sheet and plot each data set on the same plot. Create another program that plots all the data on its own graph but in the same window. Remember to include titles, legends, and axes labels.

  Write a program that generates three random numbers

Write a program that generates three random numbers, each between 0 and 9. The three numbers are displayed and the message "You got Lucky Fours" will be displayed if at least two of the digits are 4.

  Write a driver script that runs the functions

Write a driver script that runs the functions above and using the least squares coefficients returned by the functions creates a single plot comparing the differences between the data and the two least squares fit.

  What is the numeric equivalent of the character five

Sometimes it is confusing to realize that numbers can be represented as both numeric data and character data. Use MATLAB to express the number 85 as a character array. How many elements are in this array?

  Write a matlab program for taking arbitrary number of inputs

Write a matlab program for taking arbitrary number of inputs and displaying the average & geometric mean.

  Plot an outcome of the proportion of successes

Simulate 2000 coin flip experiments with a biased coin with "success" probability (chance of 1) p = 1=5. Plot an outcome of the proportion of successes with respect to the number of coin flips. Supply your code.

  Calculate the value of the sum

Using matlab-Write the function [M.] = suma(x) that calculates the sum for the left(M) and right

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