Could anyone help me to type the code (Rstudio) ? Let X be a Possion(A) random variable.
Fantastic news! We've Found the answer you've been seeking!
Question:
Could anyone help me to type the code (Rstudio) ?
Transcribed Image Text:
Let X be a Possion(A) random variable. We have seen in class that. E(X) = Var(X) = X. Suppose that we do not know the true value of A and want to estimate it from observed data {r1, r2,..., xn}. There are two possible ways to do estimate A: • use the sample mean r = • use the sample variance S = (ri – 1)? Please note that in sample variance, the denominator is n – 1 instead of n. In this assignment, you will compare the two estimators. In the following questions, we assume that A = 10. 1. Generate n = 10 independent Poisson(A) random variables, calculate the sample mean (you can use rpois (n = ,lambda = ) function in R, where n is the total number of random varables generated and lambda is the parameter A). Do the above 1000 times, then you have 1000 observations of the sample mean (each of them is calculated from n = 10 independent Poisson (A) random variables.) Generate the boxplot and histogram of the 1000 observation of sample means. 2. For n = 10, repeat Part 1 with the sample variance. 3. Compare the boxplot and histogram you obtained from Part 1 and 2. Comment on the difference between them. (Hint: measure of dispersion) Let X be a Possion(A) random variable. We have seen in class that. E(X) = Var(X) = X. Suppose that we do not know the true value of A and want to estimate it from observed data {r1, r2,..., xn}. There are two possible ways to do estimate A: • use the sample mean r = • use the sample variance S = (ri – 1)? Please note that in sample variance, the denominator is n – 1 instead of n. In this assignment, you will compare the two estimators. In the following questions, we assume that A = 10. 1. Generate n = 10 independent Poisson(A) random variables, calculate the sample mean (you can use rpois (n = ,lambda = ) function in R, where n is the total number of random varables generated and lambda is the parameter A). Do the above 1000 times, then you have 1000 observations of the sample mean (each of them is calculated from n = 10 independent Poisson (A) random variables.) Generate the boxplot and histogram of the 1000 observation of sample means. 2. For n = 10, repeat Part 1 with the sample variance. 3. Compare the boxplot and histogram you obtained from Part 1 and 2. Comment on the difference between them. (Hint: measure of dispersion)
Expert Answer:
Answer rating: 100% (QA)
Rcode For Analysis smeanrep01000 svariancerep01000 for j in 11000 genrpois10lambda 10 smeanjmeangen ... View the full answer
Related Book For
Posted Date:
Students also viewed these mathematics questions
-
can anyone help me to find the solutions manual for the book in the photo below (ISBN 978-0-07-339820-4) Mechanical Engineering Design? Richard G. Budynas J. Keith Nisbett Tenth Edition Shigley's...
-
Consider a hybrid vehicle with a price of $30,000. This vehicle will average 30 miles per gallon of gasoline. A comparably equipped gasoline-only vehicle will cost $28,000 and will average 25 miles...
-
Could anybody help me abou Arena Simulation program please?
-
X-rays of wavelength 0.0973 nm are directed at an unknown crystal. The second diffraction maximum is recorded when the X-rays are directed at an angle of 23.4 relative to the crystal surface. What is...
-
Consider the following BCNF relations, which describe departments in a company and employees: Dept(did, dname, location, managerid) Emp(eid, sal) You are told that the following queries are extremely...
-
Bisphenol A (BPA) is in the lining of most canned goods, and recent studies have shown a positive association between BPA exposure and behavior and health problems. How much does canned soup...
-
Im gathering some information about the sales/collection process and how it is supposed to work. Okay?
-
Beeler Furniture Company deposits all cash receipts each Wednesday and Friday in a night depository, after banking hours. The data required to reconcile the bank statement as of June 30 have been...
-
An 88-year-old presents to a primary care office with their daughter for concerns of a skin ulceration on the lateral ankle with hair loss. This has been ongoing for months and has recently worsened....
-
One way to see whether this procedure will be successful is to split the original data set into two subsets: one subset for estimation and one subset for validation. A regression equation is...
-
Five tanker ships have arrived at a chemical factory. They are carrying loads of liquid products that must not be mixed: 1200 tonnes of Benzol, 700 tonnes of Butanol, 1000 tonnes of Propanol, 450...
-
A three-phase four-wire distribution system, with a line voltage of 415 V, at 50 Hz, is feeding three single-phase loads (connected between phases and neutral) having a diode bridge converter drawing...
-
#include using namespace std; int main() { int rows; cout < < "Enter number of rows: "; cin >> rows; for(int i = 1; i
-
Select the best response. Causal chain analysis is a good tool for determining: how to get the chief involved in community risk reduction (CRR). how much money will be needed to address the risk...
-
Continuing with the problem above. The following were the historical 6-month Libor rates in the past two years: Time 6-month LIBOR (%) 24 months ago 8.0 18 months ago 9.0 12 months ago 7.8 6 months...
-
1. Your great-grandfather leaves you an inheritance of $10,000. You deposit it in an account earning an APR of 4% compounded daily. How much will be in the account after 40 years? 2. You want to save...
-
Accounting Questions: Explain the difference between accrual accounting and cash accounting. What is the purpose of a trial balance in accounting? Define the term "depreciation" in accounting. How...
-
Repeat the previous problem, but close the positions on September 20. Use the spreadsheet to find the profits for the possible stock prices on September 20. Generate a graph and use it to identify...
-
A firm has estimated the following demand function for its product: Q = 10-2P+.20I+2A where Q is quantity demanded per month in thousands, P is product price, I is an index of consumer income, and A...
-
Explain the differences between perfect competition, monopoly, monopolistic competition, and oligopoly.
-
In the book, Naked Economics, the author says, Prices are like giant neon billboards that flash important information. (p.12) Describe the types of information that market prices provide. What role...
-
Use the Ritz variational method for the harmonic oscillator, with trial wave functions \(\psi_{1}(x)=\) \(e^{-y^{2} / 2}, \psi_{2}(x)=e^{-y^{2}}, \psi_{3}(x)=e^{-2 y^{2}}\), where \(y=x \sqrt{m...
-
Consider a two-level system, with basis \(|1angle,|2angle\), and in this basis, a Hamiltonian with elements \(\left(\begin{array}{ll}1 & 1 \\ 1 & 1\end{array} ight)\). Use the first form of the...
-
Use the practical variational method for the same harmonic oscillator ground state energy, with trial wave function \(\psi_{a}(x)=e^{-a y^{2}}\).
Study smarter with the SolutionInn App