Yuying Shi wrote: > Dear Sir/Madam, > I am a beginner in R. Here is my questions. > 1. Can you give me one test for randomness (a name and descriptive > paragraph is sufficient). > 2. I have learned a uniform random number generator [e.g. not the > algorithms: i)Wichmann-Hill, ii) Marsaglia-Multicarry, iii) Super-Duper > (Marsaglia), iv) Mersenne-Twister, v) TAOCP-1997 (Knuth), or vi) TAOCP-2002 > (Knuth)] . Is there any other method besides that? > 3. How to generate 100 random standard normal deviates using the Box-Muller > method for standard normal random deviates and sort the sequence, smallest > to largest? > Your kind help is greatly appreciated. Thanks in advance! > best wishes > yuying shi
Please do not ask the list to do your homework (I'd highly suspect this is homework, in particular from your first question). Excercises are there to be solved by yourself. And if that fails, what about asking your lecturer rather than thousands of others? Uwe Ligges > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
