Implement a goodness-of-fit test for the Exponential distribution (see Example 4.2) in R. See the help topics
Question:
Implement a goodness-of-fit test for the Exponential distribution (see Example 4.2) in R. See the help topics for rexp (random exponential generator), dist (Euclidean distances) and replicate (utility to construct the loop for the replicates).
Example 4.2
Transcribed Image Text:
Example 4.2 (Exponential Distribution). In Example 3.1 we considered a goodness-of-fit test for a two-parameter exponential distribution with density f(z) = \e-\(z-u), , > 0. The expected distances for that example were E|x - X| = x-+ (1 2Fo(x)), - EX - X'| = I ; where Fo(r) is the cumulative distribution function (cdf) of X under Ho. Suppose that we have observed a random sample and want to test the simple hypothesis that the sampled distribution is Exponential with rate A and p = 0. Then En (X; X) Fo(x)=1-e-Ax I 0. If I,..., In is a random sample, the energy distance between the sampled distribution and the hypothesized Exponential (A) distribution Fo is n n 2 1 == - [2 + (1 - 250 (2))] - - / -. xi 2Fo(r)) 1 1 X n |Ti n i=1 i,j=1 The test statistic is n&n (X; X). Here we have a univariate sample so by Propo- sition 20.1, j-1-xj| = 2 k=1 (2k 1 n)x(k), where x(1) (n) is the ordered sample. To implement an energy goodness-of-fit test, we use a parametric simu- lation from the hypothesized distribution to obtain a reference distribution. The test procedure is much simpler by comparison than the permutation test for equal distributions in Section 4.3.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (QA)
Answered By
Muhammad Umair
I have done job as Embedded System Engineer for just four months but after it i have decided to open my own lab and to work on projects that i can launch my own product in market. I work on different softwares like Proteus, Mikroc to program Embedded Systems. My basic work is on Embedded Systems. I have skills in Autocad, Proteus, C++, C programming and i love to share these skills to other to enhance my knowledge too.
3.50+
1+ Reviews
10+ Question Solved
Related Book For
Cases And Materials On Employment Law
ISBN: 9780199580712
8th Edition
Authors: Richard Painter, Ann Holmes
Question Posted:
Students also viewed these Social Science questions
-
A five-year follow-up study was carried out in a certain metropolitan area to assess the relationship of diet and weight to the incidence of stomach cancer. Data were obtained on n = 2,000 subjects....
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
The weekly demand for a product is believed to be normally distributed. Use a goodness of fit test and the following data to test this assumption. Use = .10. The sample mean is 24.5 and the sample...
-
Let f: RR be a differentiable function such that its derivative f' is continuous and f(n) = 6. If F: [0, 1 by F(x) = f(t)dt, , and if ] R is defined (f'(x)+F(x)) cosx dx = 2 0 then the value of f(0)...
-
If f (x) = 3x + 5 and g(x) = x2, find (a) (f + g)(x) (b) (f / g)(x) (c) f(g(x)) (d) (f f)(x)
-
Verify that the hedge-ratio in the above toy market is = 1/2.
-
The comparative statements of financial position of Borra Services as at 30 June 2024 and 2025 and the statement of financial performance for the year ended 30 June 2025 are shown overleaf....
-
1. Describe the recovery strategies that were offered by the company to offset the customers complaint. Classify the recovery strategies based on the recovery strategy categories provided in this...
-
How would you describe yourself as a leader? What do you base your leadership approach upon? What approaches? Mentors? Practices? Traditions? (please include references in APA 7th edition format) Why...
-
Derive formula (4.4) for the expected distance E | x X | E | x X | if X X is Normal ( , 2 ) Normal ( , 2 ) . Write the integrals in the expression as F ( x ) F ( x ) or 1 F ( x ) 1 F ( x ) ....
-
Using software, check that formula (3.9) holds for a numerical example, say aircondit data in the boot package or other small data set. If using \(R\), see \(R\) functions sort, seq, and dist. n n |X...
-
True or False? When performing a Find operation on a map, if the item is not present, then the value in the returned ItemType object is the same as what was passed into the function.
-
4. A 2.5 kg wagon moves in a straight line on a frictionless horizontal surface with an initial velocity of 3.0 m/s. It is then pushed for 4.0 m by a force of 2.5 N In the same direction as the...
-
Working in an organization that values continuous improvement is a positive experience for staff and consumers. On the other hand, some companies focus on profit at the expense of staff, quality, and...
-
A thin stream of water bends toward a negatively charged rod. When a positively charged rod is placed near the stream, it will bend in the same direction, not the opposite direction. Why? Can you...
-
there are thirteen female board members and seventeen male boardmembers. how many ways are there to make a committee of ten boardmembers? how many ways are there to make a committee of ten...
-
What in simple terms does the following mean from a contractor's perspective and from the government perspective. Why is the government pushing for this? The proposed DFARS revisions generally seek...
-
Unequal Lives Filkins Fabric Company is considering the replacement of its old, fully depreciated knitting machine. Two new models are available: Machine 190-3, which has a cost of $190,000, a 3-year...
-
Walker, Inc., is an all-equity firm. The cost of the company's equity is currently 11.4 percent and the risk-free.rate is 3.3 percent. The company is currently considering a project that will cost...
-
If the last digit of a weight measurement is equally likely to be any of the digits 0 through 9, (a) What is the probability that the last digit is 0? (b) What is the probability that the last digit...
-
A sample preparation for a chemical measurement is completed correctly by 25% of the lab technicians, completed with a minor error by 70%, and completed with a major error by 5%. (a) If a technician...
-
A credit card contains 16 digits between 0 and 9. However, only 100 million numbers are valid. If a number is entered randomly, what is the probability that it is a valid number?
-
Consider the following information relating to the purchase of equipment. Purchase price before discount Freight Installation $150,000 $2,350 $8,150 Assuming a discount of $4,000, the total cost of...
-
On January 2, 2018, Uhrhan, Inc., signed an eight-year lease for office space. Uhrhan classified the lease as a finance lease. Uhrhan has the option to renew the lease for an additional four-year...
-
Oakland Precision Products ( OPP ) manufactures and sells a variety of scales for the kitchen and office. OPP sells primarily to kitchenware stores, discount stores, and so on . Two of the scales it...
Study smarter with the SolutionInn App