Section 3 - Statistics 107, Section #3 TF: Kevin Liu Huang...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Statistics 107, Section #3 TF: Kevin Liu Huang February 16, 2012 Section: Thursdays, 1-2pm in SC-110 Office Hours: Fridays, 11am-12pm in SC-601 E-mail: klhuang@college.harvard.edu Submit homework to: stat107kevinliuhuang@gmail.com Topics for Section - Testing for Normality: use jarque.bera.test() [tseries package] - General Simulation - Monte Carlo Sampling of Yearly Returns R Advice When trying to create a function that outputs varying results depending on the nature of the input (such as if it is greater than or equal to a certain number), you can use if else statements OR try the min/max function. Depending on which situation you are in, one might be more useful! To create a for loop , write out the code for a single simulation: what would you do if you had a single sample result and needed a result based purely on that? Write that code out first very carefully, then incorporate the for loop around it.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Section 3 - Statistics 107, Section #3 TF: Kevin Liu Huang...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online