Create a relative frequency histogram of YY

Assignment Help Other Subject
Reference no: EM132492305

Assignment -

Part 1 - R Studio code & Results for the following: Generate a set of 1000 pairs of standard Uniform Random values R1 & R2. Then perform the following algorithm for each of these 1000 pairs: Let the output of this algorithm be denoted by Y.

Step 1: Generate random values XX11 = -LLLL(rr11) and XX22 = -LLLL(rr22)

Step 2: Calculate kk = (xx11 - 11)22. If xx22 ≥ kk, then generate a random number rr.

If rr > 00.5522 accept xx11 as YY (that is, let YY = xx11); otherwise if rr ≤ 00.55, else accept -xx11 as YY (that is, let YY = -xx11).

If xx22 < kk, no result is obtained, and the algorithm returns to step 1. This means that the algorithm skips the pair rr11 and rr22 for which xx22 < KK without generating any result and moves to the next pair rr11 and rr22.

After repeating the above algorithm 1000 times, a number N of the Y values will be generated. Obviously NN ≤ 1100, 000000 since there will be instances when a pair rr11 and rr22 would not generate any result, and consequently that pair would be wasted.

Investigate the probability distribution of YY by doing the following:

1. Create a relative frequency histogram of YY.

2. Select a probability distribution that, in your judgement, is the best fit for YY.

3. Support your assertion above by creating a probability plot for YY.

4. Support your assertion above by performing a Chi-squared test of best fit with a 0.05 level of significance.

Part 2 - In the algorithm of Part 1, there are instances when the generated random values do not satisfy the condition xx22 ≥ kk In order to obtain an acceptable value for YY. In such cases, the algorithm returns to step 1 and generates another two values to check for acceptance. Let MM be the number of iterations needed to generate NN of the accepted YY values (MM ≥ NN). Let WW = MMNN.

(For example, suppose that the algorithm has produced 700 YY values (NN = 770000) after 1000 iterations (MM = 11000000). Then WW = 11000000 = 11.4433. This means that it takes the algorithm 770000 1.43 iterations to produce one output. In fact, WW itself is a random variable. Theoretically, EE(WW) - the expected value (i.e., average) of WW - of an algorithm is a measure of efficiency of that algorithm.)

Investigate WW by the following sequence of exploratory data analytic methods:

1. Estimate the expected value and the standard deviation of WW.

2. Select a probability distribution that, in your judgement, is the best fit for WW.

3. Support your assertion above by performing a Chi-squared test of best fit with a 0.05 level of significance.

4. As the number of iterations MM becomes larger, the values WW will approach a certain limiting value. Investigate this limiting value of WW by completing the following table and plotting WW versus MM. What value do you propose for the limiting value that WW approaches to?

M

W

10

 

20

 

30

 

40

 

50

 

60

 

70

 

80

 

90

 

100

 

200

 

300

 

400

 

500

 

600

 

700

 

800

 

900

 

1000

 

Note - No paper needed, just the R Studio code and results & explanation for each step. ONLY r code and results required.

Reference no: EM132492305

Questions Cloud

Find the equivalent future lump sum amount : You are paying $1,600 for 10 years with an interest rate of 9% compounded continuously, find the equivalent future lump sum amount at the end of 10 years?
Identify the target audiences for advertising images : Identify the target audiences for each of the advertising images above. Compare and contrast how each of these advertisement images uses color to strategically.
Identify and explain accounting principles : Mr Chan, one of the owners of Flyfli took $500 from the company's cash account and instructed the accountant to record it as an expense.
Which entities would form part of the tmhl group : Which entities (if any), would form part of the Traffic Management Holdings Ltd Group. Traffic Management Holdings Ltd (TMHL), a public company, commenced
Create a relative frequency histogram of YY : Create a relative frequency histogram of YY. Support your assertion above by performing a Chi-squared test of best fit with a 0.05 level of significance
How technology and social roles are connected : Since you have been looking at how technology and social roles are connected in this week's discussion you will take on the role of a debater on the side.
MMN221207 Project Management Assignment : MMN221207 Project Management Assignment help and solution, Glasgow Caledonian University - assessment writing service - Queen Street Redevelopment Project
What does it mean to be human : What Does it Mean to Be Human? Please prepare a paper of at least five pages in which you take and defend a position on the question of what it means to be.
How good was the teacher at supporting transition in class : How good was the teacher at supporting transition in the class? Do the questions demand the use of critical thinking and problem-solving skills?

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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