Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

Questions -

Q1. Solve each part here; note these are four separate questions unrelated to each other.

(a) Show that the average of the Ri's determined over an entire cycle of a full period linear congruential generator (LCG) (mod m) is

U¯ = ½ - 1/2m.

(b) Use moment-generating functions (mgf) to show that any linear transformation Y = cX + d of any uniform r.v. X ∼ U(a, b) is itself uniform. (Note: To receive any credit you must first derive the mgf of Y , MY (t), from the mgf of X, MX(t), then explain how you know that MY (t) is the mgf of a uniform r.v. with appropriate parameters (in terms of a, b, c, and d). No credit will be given if you first state that Y is uniform (from its definition) and then determine its mgf.)

(c) Consider a set of independent and identically distributed (i.i.d.) r.v.'s U1, U2, U3, . . . s.t. U1 ∼ U(0, 1). For all k let Sk = i=1k Ui, and define Yk = Sk -⌊Sk⌋,

where ⌊x⌋ is the greatest integer less than or equal to x (notice this defines Yk as the fractional part of Sk). Show that Yk ∼ U(0, 1).

(d) A loaded six-sided die is rolled for which Pr{i appears} = ci for some c ∈ R (for i = 1, 2, . . . , 6). If i appears then a fair coin is flipped i times. Given that at least one H has appeared, what is the probability that a "2" was rolled?

Q2. In this problem you will write code to simulate the Markov chain from the up-down stock problem we have been discussing in lecture (i.e., your code will yield the stock being up or down each day for a set of N days). Note: You may use any programming language among R, Matlab, or VBA. (Note: You must email me your code as I will be running it myself to check its validity in solving this problem.)

(a) Let pup represent the probability the stock is up on Day 0. For now let pup = 0.5. Use random number generation (RNG) to determine whether or not the stock is actually up on Day 0.

(b) Recall that if the stock is up today then the stock will be up tomorrow with probability 0.8, if it is down today then it will be down tomorrow with probability 0.6. Use RNG to determine whether or not the stock is up on Day 1. Define a variable "StockUp" that keeps track of whether or not the stock is up (StockUp = 1 if up, StockUp = 0 if down) during the current day. Additionally, define a variable "NumUp" to keep track of how many days (starting with Day 1) the stock is up over the length of your model.

(c) Now, define a loop and use RNG to determine if the stock is up on each of Day 2, Day 3, . . . , Day N, for N ∈ {5, 10, 25, 100, 1000, 10000, 100000}, being sure to update "StockUp" and "NumUp" appropriately. Notice that the fraction of days (over your entire model) for which the stock was up is

pˆ ≡ NumUp/N.

Recall the steady-state probability for the stock being up was determined to be πup = 2/3. Comment on any patterns you see in the value of ˆp in terms of N, specifically in relation to πup.

(d) Finally, rerun your code for the same set of values of N, but now varying the value of Day 0 probability pup (pick several values between (and including) 0 and 1). Does the value of pup affect pˆ for all N? Does it have a more significant effect for particular N? And are there N for which varying pup appears to have no effect on pˆ? Is this as expected? Discuss.

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M92721654
  • Price:- $75

Guranteed 36 Hours Delivery, In Price:- $75

Have any Question?


Related Questions in Statistics and Probability

You are given the sample mean and the population standard

You are given the sample mean and the population standard deviation. Use this information to construct the 90% and 95% confidence intervals for the population mean. A random sample of 44 gas grills has a mean price of $6 ...

Question suppose the gap is considering putting a factory

Question: Suppose the Gap is considering putting a factory outlet store on Main Street and they hire you to conduct some required research. You implement a survey and ask 225 students how much they believe they would spe ...

There are 5 women and 8 men in a department how many ways

There are 5 women and 8 men in a department. How many ways can a committee be selected if there must be 2 men and 2 women on the committee? Number of ways to select a committee containing 2 men and 2 women is

Jeremy needs to start paying back his student loan the

Jeremy needs to start paying back his student loan. The amount he owes is $14,069.80 with an APR of 6.94%. Assuming he will take 10 years, how much will his monthly payment be?

A representative from your company visited a prison and

A representative from your company visited a prison and sampled 500 prisoners in Kailil, concluding that 90 of them are political prisoners. The Test hypothesis, at the 5% significance level, that one third of the prison ...

A company recently had 26 million shares outstanding

A company recently had 26 million shares outstanding trading at $45/share. The company announces its intention to raise $290M by selling new shares. Studies show losses are 30%of the size of the new issue, so how large a ...

Determine the minimum sample size required when you want to

Determine the minimum sample size required when you want to be 98% confident that the sample mean is within two units of the population mean. Assume a standard deviation of 4.82 in a normally distributed population.

A if a firms marginal tax rate is increased this would

A. If a firm's marginal tax rate is increased, this would affect the cost of preferred stock used to calculate its WACC. T/F B. Suppose the debt ratio (Debt to total assets) is 30%, the current cost of debt is 8%, the cu ...

Discuss the meaning of the standard error of the estimate

Discuss the meaning of the standard error of the estimate. As you collect more data, do you expect that this standard error will increase, decrease, or stay about the same? Explain how you came to this conclusion.

1 suppose we want to see if american children have higher

1) Suppose we want to see if American children have higher levels of cholesterol than the average child (i.e., in the entire world - the total population). We find that the population average for cholesterol for children ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As