Execute the following to load objects into your session.

source("http://www3.nd.edu/~steve/computing_with_data_2014/7_Loops_etc/work_along_data_S7.R")
  1. Compute a sequence r of length 100 such that r[1] = 0, and r[i+1] is randomly sampled from a normal distribution with mean r[i] and standard deviation 1. Inspect the first 5 entries and the last 5 entries. Any patterns?
  2. prob_L is list of character vectors. Use a for loop to define a vector p1 such that p1[j] is the first entry of the \(j^{th}\) component of prob_L.
  3. Create a vector where the \(j-\)entry is the second entry of the \(j^{th}\) component of prob_L.