# The following BASIC code generates 10,000 values of a random variable Y, which is the sum X1 + X2.

19 / 01 / 2019 Maths

This paper circulates around the core theme of The following BASIC code generates 10,000 values of a random variable Y, which is the sum X1 + X2. together with its essential aspects. It has been reviewed and purchased by the majority of students thus, this paper is rated 4.8 out of 5 points by the students. In addition to this, the price of this paper commences from £ 12. To get this paper written from the scratch, order this assignment now. 100% confidential, 100% plagiarism-free.

The following BASIC code generates 10,000 values of a random variable Y, which is the sum X1 + X2.  In each case, assume that X1 and X2 are independent realizations of the same random variable X. The program calculates the sample average, the sample variance, and the fraction of sample values Y that lie in the interval (a, b].   Adapt this simulation program (you may use BASIC or any other language) to calculate the values required to fill in the table for E(Y), V(Y), and () YbPa ≤< , where a and b are specified in Homework 0. In each case, show all theoretical calculations for E(Y), V(Y), and ( ) YbPa ≤< .
100 FOR I = 1 TO 10000
generate X1 and X2
150 Y = X1 + X2 200 S1 = S1 + Y 300 S2 = S2 + Y^2 400 IF (Y > a) AND (Y <= b) THEN C = C + 1 500 NEXT I 600 PRINT S1/10000, S2/10000-(S1/10000)^2, C/10000

### 100% Plagiarism Free & Custom Written

International House, 12 Constance Street, London, United Kingdom,
E16 2DQ

Company # 11483120

## STILL NOT CONVINCED?

We've produced some samples of what you can expect from our Academic Writing Service - these are created by our writers to show you the kind of high-quality work you'll receive. Take a look for yourself!

View Our Samples

## Benefits You Get

• Free Turnitin Report
• Unlimited Revisions
• Installment Plan
• Plagiarism Free Guarantee
• 100% Confidentiality
• 100% Satisfaction Guarantee
• 100% Money-Back Guarantee
• On-Time Delivery Guarantee 