Assignments and announcements for Math 60, Spring 2010

Due dates of assignments and projects; exam dates:

http://www.math.dartmouth.edu/~doyle/docs/60.2010/dates/dates.html

Monday 29 March

For Wednesday 31 March

  1. Get Matlab installed and running, and bring your laptop to class Wednesday. If you're new to Matlab, check out these links from Alex Barnett on how to download it and get started:

    http://www.math.dartmouth.edu/~m46s09/res.html

    The Computer Help Desk in Baker-Berry can help you with issues you have getting Matlab going on your machine. Bring your laptop to class so we can play explore Matlab together. To get a head start, check out Alex Barnett's `bare essentials of Matlab':

    http://www.math.dartmouth.edu/~m46s09/intro46.m

    Look here for some simple probability demonstrations:

    http://www.math.dartmouth.edu/~doyle/docs/60.2010/matlab/ch1/prob.m

  2. Go over the answers to the pretest:

    http://www.math.dartmouth.edu/~doyle/docs/60.2010/pretestans.pdf

    Can you see why these are the correct answers? Note that the approved way to answer question 6 is described in the reading (see below). Don't worry about 11-13.

  3. Start reading the handout from Monday and see have far you can get. In particular, look at problems 6, 13, 16, 21, 23, 25, 27c. These won't be due until Friday at the earliest, but look at them now, so that on Wednesday we can see how things are going.

  4. Get hold of a copy of Grinstead and Snell's `Introduction to Probability', available at Wheelock Books. This book is available for free download on the web, but I guarantee you'll want a printed copy. This is a great book!

Wednesday 21 March

For Thursday 1 April

Bring your laptops to the X-hour (9:00-9:50). We'll be discussing basic features of Matlab, and how to write simple programs using `for' and `if'. Meanwhile, if you're new to Matlab, see if you can locate a Matlab-savvy friend you can pester for help.

For Friday 2 April

Finish carefully reading the Chapter 3 handout. Come prepared to ask any questions you may have about how to do problems of the kind on the assignment for Monday.

Carefully read section 1.1 of G&S (Grinstead and Snell). Look at and think about problems 1-5, 8-10, 14-16. We'll be doing all of these problems, and some subset will due as early as Monday.

For Monday 5 April

Do problems 13, 16, 21, 23, 25, 27c from the Chapter 3 handout.

Thursday 1 April

To help you get started with Matlab, I'm giving you programs you can use to answer problems 1-5 of section 1.1 of G&S. Look here:

http://www.math.dartmouth.edu/~doyle/docs/60.2010/prog/prog.html

Look these programs over, run them, and figure out how they work. That is, assuming they actually do work. I hope they do, but there could always be bugs.

DUE Monday 5 April

Assignment 1:

For Monday 5 April

Read section 1.2 of G&S. If you are puzzled by their approach to sample spaces, random variables, and distributions, take a look at this attempt to straighten it out: http://www.math.dartmouth.edu/~doyle/docs/rv/rv.pdf

Take a preliminary look at the problems that will be due Friday (see below).

Monday 5 April

Here's a model for solutions to the problems on Assignment 1:

http://www.math.dartmouth.edu/~doyle/docs/60.2010/hw/m60hw1.pdf

Please look this over carefully. If you have questions, send me email. We'll be having our first short exam Friday 16 April. It will include problems like those on this assignment, together with other material from G&S chapters 1-3.

Wednesday 7 April

Preparation

Read Chapter 2 of G&S. In reading 2.1, bear in mind the problems that have been assigned for Friday. For section 2.2, the problems I have in mind (not assigned yet, though) are 5, 6, 7 and 19, 8, 12 and 20, 15, 16 and 21. Also, play around with and ponder the following Matlab script:

n=10000
    
r=sqrt(rand(1,n));
theta=2*pi*rand(1,n);

x=r.*sin(theta);
y=r.*cos(theta);

scatter(x,y)

Squash

Roger Flynn, `Tactics and Strategy in Squash':

The International Rules of Squash Racquets only allow us to score a point when we are Hand-in (serving) at which time our opponents (Hand-out) are not permitted to score. If that is the case then ...when Hand-in, our sole objective should be to attack our opponents with as much gusto as we are able and to take whatever risks are necessary in order to create the most difficult shots for our opponents to return (ie. hit the ball as far away from our opponent as possible). When we are Hand-out however, only our opponent is permitted to score a point and ...our obligation is to stop him/her from scoring. This is best achieved by changing our attack to the back of the court so that our risk of error is minimal and we also push our opponent into the most difficult part of the court from which to play a winner.

Links to explore

Entropy:

http://en.wikipedia.org/wiki/Maximum_entropy_probability_distribution

Cantor's diagonal argument:

http://en.wikipedia.org/wiki/Cantor%27s_diagonal_argument

Non-measurable set:

http://en.wikipedia.org/wiki/Non-measurable_set

Solovay's model:

http://en.wikipedia.org/wiki/Solovay%27s_model

The axiom of choice:

http://en.wikipedia.org/wiki/Axiom_of_choice

The Banach-Tarski paradox:

http://en.wikipedia.org/wiki/Banach_Tarski_paradox

Thursday 8 April

Help session 9:00-9:50 for Assignment 2 in 105 Kemeny. Come early if you like: I'll be there by 8:30.

DUE Friday 9 April

Assignment 2:

G&S section 1.1: 14,15,16

G&S section 1.2: 12,13,16,17,18,19,28

G&S section 2.1: 5,6,7,9

For problems with a Matlab component, please include printouts of programs, along with printouts of program runs when appropriate (e.g. when the result is a graph; you don't need a printout if the result is just a few numbers).

Monday 12 April

Preparation

Read Chapter 3 of G&S. A lot will be review from the `Chapter 3' handout for HW1. The main new element is the binomial distribution.

Never mind shuffling for now

If you read section 3.3 on shuffling, great! We will be discussing this, but not until the end of the quarter. For now, you only need to read 3.1 and 3.2.

Notes on HW3

See the correction to Exercise 3.2.24 on the assignment page.

For Exercise 2.2.5, you are meant to take for granted the memoryless property of the exponential distribution.

Tuesday 13 April

Office hours/help session 9:00-9:50 in 105 Kemeny.

HW3 DUE Wednesday 14 April

Assignment 3:

I'm going to start collecting assignments here:

http://www.math.dartmouth.edu/~doyle/docs/60.2010/dates/dates.html

In problem 3.2.34(b), note that the program Grinstead and Snell are asking for is to compute the probability using the formula of part (a), rather than estimating it by simulation. You may get warnings from matlab about possibly inaccurate results when n is 100 or bigger: Don't fret about this.

Of course, I think you should do a simulation as well. This can be done in various ways. One approach is illustrated in this snippet, which generates 20 random numbers between 1 and 10 and reports how many distinct numbers occur:

length(unique(ceil(rand(1,20)*10)))
Here's another snippet to compute the k in problem 3.1.23. Note the use of `break' to jump out of the loop:
for k=1:n-1
  s=sum(1./[k:n-1]);
  if s<=1
      break
  end
end

Thursday 15 April

Review session for Exam 1 during the X-hour, 9:00-9:50 in 105 Kemeny.

Good matlab functions to know about: randperm, nnz, unique.

EXAM 1, Friday 16 April

G&S Chapters 1-3 (except section 3.3), and counting problems like those from Assignment 1.

Test:

http://www.math.dartmouth.edu/~doyle/docs/60.2010/tests/test1.pdf

Answer key:

http://www.math.dartmouth.edu/~doyle/docs/60.2010/tests/test1ans.pdf

Monday 19 April

Preparation

Go over the answers to the test (link above).

Begin reading G&S Chapter 4 in preparation for HW4 (link below).

Thursday 22 April

Help session for HW 4 9:00-11:00 in Kemeny 105/120.

HW4 DUE Friday 23 April

See here:

http://www.math.dartmouth.edu/~doyle/docs/60.2010/dates/dates.html

Things to ponder:

1. What happens in the Polya urn model if you put in *two* new balls of the chosen color, instead of just one? What about if you put in a ball of the opposite color?

2. In the Monty Hall problem, why can't you win more than 2/3 of the time, even if Monty has a bias about which door he will open when he has a choice? If there are n doors, and he opens one door, show that under some rule for which door he opens, you can win a fraction (n-1)/n of the time. I'm sure this is the bast you can hope for, but how to prove it?

Monday 26 April

Here's the expository paper on frustration solitaire:

http://www.math.dartmouth.edu/~doyle/docs/rank/rank.pdf

This is an excellent example of inclusion-exclusion in a case where the probability of the intersection of k events doesn't depend only k.

The variant of Bernoulli's principle that makes a spinning baseball curve is called the `Magnus effect':

http://en.wikipedia.org/wiki/Magnus_effect

Check out this maritime application of the Magnus effect:

http://en.wikipedia.org/wiki/Rotor_Ship

Thursday 29 April

HW5 help session 8:30-11:00 in 120 Kemeny--note the room!

HW5 DUE Friday 30 April

Regarding the `bus paradox':

You don't know a thing
About suffering and pain
If you haven't tried to catch
A taxi in the rain

And you can wait for a bus
Half an hour or more
'Cause they like to travel
In gangs of four

- P.D.Q. Bach, `Classical Rap'

http://tinyurl.com/classicalrap

Monday 3 May

Matlab has trouble with the Poisson distribution if you just plug in the formula. Instead you can use the function `poisspdf'. Tail probabilities are given by the (regularized) incomplete gamma function: http://tinyurl.com/poissontail

% Compute Poisson tail probabilities using the incomplete gamma function.

format long

lambda=2000
n=lambda
k=[0:n];
pnaive=sum(exp(-lambda)*lambda.^k./factorial(k))
pmatlab=sum(poisspdf(k,lambda))
pgamma=gammainc(lambda,1+n,'upper')

Here's the output:

lambda =

        2000


n =

        2000


pnaive =

   NaN


pmatlab =

   0.505946700451550


pgamma =

   0.505946700451784

Tuesday 4 May

Help session for HW6, 12:00-1:50 in 120 Kemeny.

HW6 DUE Wednesday 5 May

Links to explore:

http://tinyurl.com/cauchyschwarz

http://en.wikipedia.org/wiki/Jensen's_inequality

http://tinyurl.com/heineborel

http://en.wikipedia.org/wiki/Algebraic_number

http://mathworld.wolfram.com/Pentagram.html

http://mathworld.wolfram.com/GoldenRatio.html

Thursday 27 May

We'll use the X-hour to discuss HW9, `Chutes and Ladders'.



Peter G. Doyle 2012-03-27