Question
Use the Hedenfalk, breast cancer gene expression dataset. The files are GeneExp.txt and Samples.txt

Part a
For each gene, implement and apply a permutation test to compare the difference in means between BRCA1 samples and BRCA2 samples. The null hypothesis here is that the difference in means is 0. Use a two- sample t-statistic for the permutation test. Don’t forget that the test is two-sided. There are 15/7 = 6435 possible shufflings, so for the purposes of this homework it may be impractical to enumerate all the possible combinations. We suggest that you do 500 to 2,000 permutations per gene, depending on your computing capacity. Plot a histogram of your p-values. Hint: dplyr’s do() function may be helpful if you have your data in a tidy format.

Part b
For each gene, test the difference in means between BRCA1 and BRCA2 samples using a parametric t-test. Then, plot the p-values computed by each method against each other to compare the results of the two testing approaches. What does the plot suggest about the t-test assumptions? Some hints for making an effective plot: you will want to draw the y = x line to represent exact concordance between the results and it may be helpful to fix the plot aspect ratio.
Solution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references.
Students may use these solutions for personal skill-building and practice.
Unethical use is strictly forbidden.

This is only a preview of the solution.
Please use the purchase button to see the entire solution.
By purchasing this solution you'll be able to access the following files:
Solution.docx
Solution.R
Purchase Solution
$50.00
Google Pay
Amazon
Paypal
Mastercard
Visacard
Discover
Amex
View Available Mathematics Tutors 645 tutors matched
ionut
Ionut
(ionut)
Master of Computer Science
Hi! MSc Applied Informatics & Computer Science Engineer. Practical experience in many CS & IT branches.Research work & homework
5/5 (6,808+ sessions)
1 hour avg response
$15-$50 hourly rate
Pranay
(math1983)
Doctor of Philosophy (PhD)
Ph.D. in mathematics and working as an Assistant Professor in University. I can provide help in mathematics, statistics and allied areas.
4.6/5 (6,703+ sessions)
1 hour avg response
$40-$50 hourly rate
Leo
(Leo)
Doctor of Philosophy (PhD)
Hi! I have been a professor in New York and taught in a math department and in an applied math department.
4.9/5 (6,469+ sessions)
2 hours avg response

Similar Homework Solutions