Project 5

STAT 605: Advanced Statistical Computations
David B. Dahl
Spring 2010

Shell Script

This part of the project will give you experience writing a shell script. Study the "Quick Guide to Bash Shell Scripts" on the class webpage. Write a shell script named 'file-info' that takes the name of file and displays:

Permutation Test

Your task is to add two testing procedures to the simulation study in welch1938.R script from early in the semester. This write-up may be helpful. The two new procedures are:

  1. A permutation test using the Z-test statistic.
  2. A permutation test using the pooled t-test statistic.
Please write a brief summary (in a text file named 'welch1938.txt') of what the simulation study says about the five competing methods.

R Scripts and Random Normals

Write an executable R script called 'random-normals' which generates X normally distributed random numbers with mean M and standard deviation V using the Box-Muller transformation, where X, M, and V are supplied as command line arguments. In an R script named 'plot-normals.R', source your 'random-normals' file and use its code to generate 1,000 standard normal random deviates and produce one figure in a file called 'box-muller.pdf' containing the following:

Submission

Commit your 'random-normals', 'plot-normals.R', 'welch1928.txt', 'welch1938.R', and 'file-info' files to the appropriate directory in the repository. Make sure that only the appropriate files have the executable bit set.