Background

Basic probability Basic calculus

Random variable Expectation Covariance Variance

Method of Lagrange Multipliers (constrained optimization)

Main point

I have random variables (outcomes of tossing a dice, but can have real values) . represents the value of stock . This value oscillates - it’s random.

I have to make some decisions about which stock to purchase - need to decide how much of each stock to include in portfolio.

e.g. I want to aim for a constant income, or I want to minimize risk, etc.

How to convert this into linear equations?

Possible if our model is simple enough.

Notation

represents the quantity (= percentage of stock in portfolio) of stock . .

Problem 1

Let us minimize the risk, without any concern for the gains. I don’t want them to go up or down a lot - not vary too much with respect to one another.

Covariance Matrix

Takes and gives a symmetric matrix that has positive eigenvalues

Say and are random variables which takes values in When they are measured together, only the outcomes are possible. Positive covariance because if one grows, the other one also grows. If , then the covariance of these values would be negative.

The variance is always a positive number, which is why has positive eigenvalues.

Risk

Risk is . Minimize this.

(linear because ) This is not actually what we want - we want a constraint

is what we want. (Lagrange Multipliers)

Theorem: this is invertible. matrix.

Problem 2

Do not allow value to drop below a line, without oscillating too much. Minimize while and . Need to know

If given, then .

In this case everything is added one dimension because now we have

and

Constraints:

Then:

So:

This is invertible under some natural assumption.