Compute the variance of your estimate

Assignment Help Basic Computer Science
Reference no: EM131353314

Continuing the preceding problem, suppose that instead of having a three-sided coin, you have a slightly broken random number generator, xrand, which returns a random number between 0 and 3. Seventy percent of the time it's in [0, 1], uniformly distributed; 20% of the time it's in [1, 2], uniformly distributed; and 10% of the time it's in [2, 3], uniformly distributed. You're given a single sample t generated by xrand, and you ask your friend to tell you y = f(t).

(a) Show how to use the value y to estimate the integral as before. Hint: Use importance sampling.

(b) Compute the variance of your estimate.

(c) When, qualitatively, would you expect the variance to be larger than that of the preceding problem's estimator? When would you expect it to be lower?

(d) Write a short program to confirm that the expected value and variance really are what you predicted.

Reference no: EM131353314

Questions Cloud

How to make the triangle-selection process faster : Suppose that in ordering the triangles, we place the largest ones first. Then in a search of the list, we're likely to examine relatively few triangles to find the "right" one. Would you, in working with a typical graphics model, expect this to ha..
Create an argument to be presented to the leaders : Create an argument to be presented to the leaders with the organization that a strategic plan is essential for the IM / IT. Indicate the most significant elements that the administrator should address in the plan. Provide support for the rationale..
Plot your forecast on the same graph as the original data : Starting in year 4 and going to year 12, forecast demand using a 3-year moving average. Plot your forecast on the same graph as the original data
Analyze what is meant by religion : A world view is a fundamental or basic orientation of thinking - like a mindset - which guides a culture and / or a person's life. Like a point of view, it can be built of concepts, ideas, values, emotions, and ethics. Weltanschauung is the German..
Compute the variance of your estimate : When, qualitatively, would you expect the variance to be larger than that of the preceding problem's estimator? When would you expect it to be lower?
Primary and secondary sex characteristics : Parents were concerned about their 16-year-old son for the following reasons: he had no deepening of his voice, scanty pubic and axillary hair growth, absence of beard and mustache growth, small penis, poor muscular development, and psychosocial i..
What is the vapor pressure of mercury : A vessel partially filled with mercury, and closed except for a hole of area 10-7 m2 above the liquid level, is kept at 0°C in a continuously evacuated enclosure.
Why was it considered one of the 7 wonders of ancient world : Choose 4 of the 6 Wonders of the Ancient World (excluding the Great Pyramid of Egypt which we covered in class) and report on them in a formal research paper. Be as thorough as possible.What is it?Who commissioned/created it?How was it built?Where ..
Plot the einstein cv 13r curve : Plot the Einstein Cv 13R curve against T/ΘE on the same graph as the Debye Cv13R curve against T/Θ, and then compare the two curves.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  A positive integer and a subprogram

The factorial of a positive integer N, denoted by N!, is defined by the following: N! = 1 * 2 * ..... * N (Note: 0! = 1) Using module and/or functions, create a recursive program to compute N!. The user should input a positive integer and a subprogra..

  Ounce cans of pineapple juice

At a supermarket, pineapple juice sells at $1 per pint (16 ounces). Greg wants to buy eighteen 40 ounce cans of pineapple juice from the supermarket. How much does he have to pay altogether?

  What would the horizontal and vertical propagation limits

Discuss what is meant by each of the following terms: database authorization, access control, data encryption, privileged (system) account, database audit, audit trail.

  Plot the los loss for a cellular link at 1900 mhz

Compare these two results by plotting them on the same figure. Comparing these two plots, which link costs the cellular company less to operate for the same cell-site coverage area?

  Loading of your operating system

What is the hard drive partition that starts the loading of your operating system?

  Identify a purpose and audience for your presentation

Create a presentation to outline your proposal for the PC specifications to meet the case study requirements. Identify a purpose and audience for your presentation (i.e., are you informing a friend, presenting to the CIO, educating your colleague..

  Compare with the size that the orders of these algorithms

How does this size compare with the size that the orders of these algorithms predict?

  Differentiate system software and application software

Write down the difference between system software and application software? Choose two of the application you listed and describe how you determine version of these programs. What specific features do you like about each program?

  Write a recursive function sumtreenodehelper

Write a recursive function sumTreeNodeHelper that sums the elements of a binary search tree starting with the smallest element and adding elements in order up to the largest element and prints the running sum as each new value (ie. Node->val) is adde..

  Write program that illustrates sequence of constructor calls

Write a program that illustrates the sequence of constructor calls at the state of an object relative to RTTI during construction. Similarly illustrate destruction.

  Risk assessment can be completed in a qualitative

Risk assessment can be completed in a qualitative or quantitative manner

  Concepts of market segmentation-targeting

In this assessment, you will analyze and use the concepts of market segmentation, targeting, and positioning to develop a product strategy for your selected product. This analysis includes describing the information used to determine appropriate m..

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