133A HW6, 2012W, Due Wed March 16th
March 9, 2012
Use matlab to solve problems 1 and 2:
1. Use Monte Carlo method to verify the mean and variance of (6.8) are (6.11) and
(6.13).
2. Utilize function rand to generate random variables following exponential d
133A HW1, 2012W, Due Mon Jan 23
January 15, 2012
Use matlab to solve the problem 1 and 2:
1. Draw graphs of the functions on the interval [0, 10]:
i) y = sin x
x
1
ii) u = (x1)2 + x
Please pay attention to the singular points.
2. Solve for x, where Ax = b
133A HW2, 2012W, Due Wed Feb 1st
January 25, 2012
Use matlab to solve the problem 1 and 2:
1. Write a program to produce the probability density function of binomial distribution,
i.e. a function that only returns 2 possible values(0 and 1). The probabili
133A HW3, 2012W, Due Wed Feb 10th
February 3, 2012
Use matlab to solve problems 1 and 2:
1. Use the cumulative sum function cumsum and the bar graph function bar to produce
a cumulative density plot of the standard normal distribution (i.e. N (0, 1).
2. L
133A HW4, 2012W, Due Mon Feb 27th
February 18, 2012
Use matlab to solve problems 1 and 2:
1. A group goes out for coee. Someone suggests a game: Everyone holds a coin, head
up or tail up randomly. After revealing the coins: If (number of heads) < (number
133A HW5, 2012W, Due Wed March 8th
March 1, 2012
Use matlab to solve problems 1 and 2:
1. Consider a loop of string with unit length. Take n cuts independently and randomly
along the string, what is the expected length of the smallest and the largest piec