Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The conduct of a randomization or permutation test for the equality of two population means is as follows. Under the null hypothesis, there is no
The conduct of a randomization or permutation test for the equality of two population means is as follows. Under the null hypothesis, there is no difference in the populations. Thus, the assignment of values to one population or the other is regarded as one arbitrary permutation. The question is how unusual is the test statistic under this permutation in relation to other permutations.
Consider the fixed and ARM rates
- Compute the difference in mean rates between them
- Then combined the values from ARM and fixed into one vector.
- Sample without replacement from that vector a set of 10 rates sample function in R
- The rates chosen represent one rate plan; the rates not chosen represent the other.
- For each of these permutations, take the difference of means between the rates chosen and the rates not chosen
- Keep track for 1000 permutations of the test statistic.
- Use R to determine how many of the test statistics resulting from permuted rates are more unusual than the initial difference between rates from the way the data are given in the problem.
- The proportion of the mean difference in rates more unusual (extreme) than the initial difference is interpretable as a p-value. Report your p-value from the randomization test.
PLEASE USE R CODE
$250,000 Mortgage Rates 30-Year Fixed ARM 3.525 3.625 3.383 3.625 3.661 3.791 3.941 3.781 3.660 3.733 2.923 3.385 3.154 3.363 3.226 3.283 3.427 3.437 3.746 3.438 $250,000 Mortgage Rates 30-Year Fixed ARM 3.525 3.625 3.383 3.625 3.661 3.791 3.941 3.781 3.660 3.733 2.923 3.385 3.154 3.363 3.226 3.283 3.427 3.437 3.746 3.438Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started