Question: R programming question! Confirm a probability of making errors in correlation test using R program. 1a. Generate XY data (n = 20) by supposing =+
R programming question!
Confirm a probability of making errors in correlation test using R program.
1a. Generate XY data (n = 20) by supposing =+ (X: 120) and setting 0 for standard deviation (SD) of . 1b. For the obtained data, test a null hypothesis that no correlation exists (0: =0).
2a. Then, generate another XY data (n = 20) (X: 120) by setting 1 for SD of in =+. 2b. For the obtained data, Test a null hypothesis that no correlation exists (0: =0). 2c. Repeat (2a) and (2b) for 20 times and determine the ratio of the case that no correlation hypothesis was rejected.
3a. Change the SD from 1 to 2, 4, 6 and 20, and determine the ratio for each SD. 3b. Show the relation of SD to the rejection ratio in a scatter graph.
- Please make one scatter graph showing a XY data set for each SD.
- Summarize results in your own sentences (i.e., interpretation).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
