Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Quantitative Analysis- I
www.cbacademy.in
www.cbresearch.in
Agenda
Probability o o Counting Principle (1 hr) Probability Concepts, Bayes Theorem (1 hr)
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
Counting Principle
Number of ways of selecting r objects out of n objects o o nCr n!/(r!)*(n-r)!
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
Example-Counting Principle
In how many ways 3 stocks can be chosen out of 10 stocks in a portfolio?(Combination) o Choosing 3 out of 10 stocks is basically the number of combinations of 3 objects out of 10 o Therefore, the number of ways are
Quantitative Analysis
In how many ways 3 stocks can be sold, if the sold stock is bought back in the portfolio before the next stock is sold? o First stock can be sold in 10 ways o Second can be sold in again 10 ways o Third stock can again be sold in 10 ways o Therefore total number of ways become =103 =1000
www.cbacademy.in
www.cbresearch.in
Question
You wish to choose a portfolio of 3 bonds and 4 stocks from a list of 5 bonds and 8 stocks. How many different 7 asset portfolio can you make from this list. A. 80
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
Solution
Answer: B o Solution: C(5, 3) x C(8, 4)
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
Probability - Definitions
A probability experiment involves performing a number of trials to enable us to measure the chance of an event occurring in the future. A trial is a process by which an outcome is noted. Examples of Definitions: o o Experiment: Roll a die two hundred times noting the outcomes Event of interest: A six faces upwards
Quantitative Analysis
o
o o
Probability of an event to occur is defined as number of cases favorable for the event, over the number of total outcomes possible in unbiased experiment o o For example, if the event is "occurrence of an even number when a die is rolled The probability is given by 3/6=1/2, since 3 faces out of the 6 have even numbers and each face has the same probability of appearing.
www.cbacademy.in
www.cbresearch.in
Quantitative Analysis
o o
The probability of IBM stock being Up and Market being Good is 10% Similarly, the probability of IBM stock being down and Market being neutral is 40%
www.cbacademy.in www.cbresearch.in 8
Quantitative Analysis
The unconditional probability of market being Neutral is 45%. Then using the table below we can find 3 conditional probabilities. P(Up/Neutral) = 0.05 / 0.45
P(Up/Good) = 0.1/0.1
P(Down/Bad) = 0.15/0.45
www.cbacademy.in
www.cbresearch.in
Quantitative Analysis
Calculate: Unconditional Probability of market to be good next year? Conditional Probability of IBM stock rising when the market is neutral? Conditional Probability of market being good when IBM stock is down?
www.cbacademy.in
www.cbresearch.in
10
Quantitative Analysis
The probability of any event A: If the probability of happening of event A is P(A), then the probability of A not happening is (1 o o For example, if the probability of a company going bankrupt within one year period is 20%, then the probability of company surviving within next one year period is 80%.
www.cbacademy.in
www.cbresearch.in
11
Question
For a bond with B rating, assume 1 year probability of default for each issuer is 6%, and that default probability of each issuer are independent. What is the probability that both issuers avoid default during the 1st year. A. 88% B. 88.4% C. 94% D. 96.4%
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
12
Solution
Answer: o o Both would avoid default only if None defaults This implies that first does not default AND second does not default = (1 PD (first)) x (1 PD (second))
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
13
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
14
Question
Jensen, a portfolio manager is managing two portfolios. One for High Net Worth Individuals(HNI) and second for Low Net Worth Individuals (LNI). HNI portfolio contains 5 bonds and 7 stocks and LNI contains 6 bonds and 11 stocks. One instrument from HNI is transferred to LNI portfolio. Now Jensen selects an instrument from LNI, what is the probability that instrument selected is stock? I. II. III. IV. 0.5382 0.7821 0.6435 None of these
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
15
Solution
Answer: III Here required probability = [P(stock transferred from HNI) AND P(Stock selected from LNI)] OR [P(bond transferred from HNI) AND P(Stock selected from LNI)] So, the required probability = (7/12) (12/18) + (5/12) (11/18) = 139/216 = 0.6435 Hence option II is correct.
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
16
The joint probability of events A and B is the product of conditional probability of B, given A has occurred and the unconditional probability of event A.
Quantitative Analysis
o
o
P(B) can be further broken down using sum rule defined above:
www.cbacademy.in
www.cbresearch.in
17
Example
Use the given information to answer next two questions Out of a group of 100 patients being treated for chronic back trouble, 25% are chosen at random to receive a new, experimental treatment as opposed to the more usual muscle relaxant therapy which the remaining patients receive. Preliminary studies suggest that the probability of a cure with the standard treatment is 0.3, while the probability of a cure from the new treatment is 0.6. How many patients (on an average) out of the 100 patients selected at random would be cured? A. 30 B. 40 C. 37.5 D. 42.5
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
18
Solution
Answer: C o o 25% are given new treatment =>75% are given old treatment. P(Cure) = P(Cure/New) * P(New) + P(Cure/Old) * P(Old) = 0.375 So out of 100. 37.5 will get cured
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
19
Example
Some time later, one of the patients returns to thank the staff for her complete recovery. What is the probability that she was given the new treatment?
A. 0.375
B. 0.425
Quantitative Analysis
C. 0.4 D. 0.425
www.cbacademy.in
www.cbresearch.in
20
Solution
Answer: C o Apply Bayes Theorem
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
21
Question
Calculate the probability of a subsidiary and parent company both defaulting over the next year.Assume that the subsidiary will default if the parent defaults, but the parent will not necessarily default if the subsidiary defaults. Assume that the parent had a 1 year PD = 0.5% and the subsidiary has 1 year PD of 0.9%. A. 0.45% B. 0.5%
Quantitative Analysis
C. 0.545%
D. 0.55%
www.cbacademy.in
www.cbresearch.in
22
Solution
Answer: B o o P (S| P) = 1 = P(P & S)/P(P) P(P & S) = P(P) = 0.5%
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
23
Probability Distribution
A Random Variable is a function, which assigns unique numerical values to all possible outcomes of a random experiment under fixed conditions. A random variable is not a variable but rather a function that maps events to numbers Probability distribution describes the values and probabilities that a random event can take place. The values must cover all of the possible outcomes of the event, while the total probabilities must sum to exactly 1, or 100%
Quantitative Analysis
Example Suppose you flip a coin two times. There are four possible outcomes: HH, HT, TH, and TT. Let the variable X represent the number of Heads that result from this experiment
o It can take on the values 0, 1, or 2. o X is a random variable (its value is determined by the outcome of a statistical experiment)
A probability distribution is a table or an relation that links each outcome of a statistical experiment with its probability of occurrence
www.cbacademy.in
www.cbresearch.in
24
Probability distribution
Cumulative Probability is a rule or equation which describes the sum of all the probabilities till that observation.
Take the previous example of flipping of coin twice. The following table gives the probability of occurrence of heads and the cumulative probability as well.
The point to note here is that the cumulative probability of the first event is equal to the probability of that event. The cumulative probability of the last event is always 1
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
25
If a variable can take on any value between two specified values, it is called a continuous variable
If a random variable is a discrete variable, its probability distribution is called a discrete probability o For example, tossing of a coin & noting the number of heads (random variable) can take a discrete value
Quantitative Analysis
If a random variable is a continuous variable, its probability distribution is called a continuous probability distribution o The probability that a continuous random variable will assume a particular value is zero
o
o o o
www.cbacademy.in
www.cbresearch.in
26
Agenda
Probability Moments o Mean, Variance & Covariance, Skewness and Kurtosis (1hr)
Quantitative Analysis
Probability distributions
www.cbacademy.in
www.cbresearch.in
27
Moments
A random variable is characterized by its distribution function. Instead of having to report the whole function, it is convenient to summarize it by a few parameters, or moments.
Quantitative Analysis
o o o
www.cbacademy.in
www.cbresearch.in
28
Mean
The expected value(Mean) measures the central tendency, or the center of gravity of the population. It is given by :
Quantitative Analysis
A family has 4 members, father, mother and 2 kids (Hemal and Rishi) who are twins. The average age of the family members is 20 years. Age of mother and father is 30 and 32 respectively. Can you tell the age of Hemal?
www.cbacademy.in
www.cbresearch.in
29
Quantitative Analysis
The standard deviation is more convenient to use, as it has the same units as the original variable X o SD(X) =
www.cbacademy.in
www.cbresearch.in
30
Quantitative Analysis
Here E(X) is the expected value of X and E(Y) is the expected value of Y
o
o
www.cbacademy.in
www.cbresearch.in
31
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
32
Skewness
Skewness describes departures from symmetry
Quantitative Analysis
Negative skewness indicates that the distribution has a long left tail, which indicates a high probability of observing large negative values.
If this represents the distribution of profits and losses for a portfolio, this is a dangerous situation.
www.cbacademy.in
www.cbresearch.in
33
Kurtosis
Kurtosis describes the degree of flatness of a distribution, or width of its tails.
Quantitative Analysis
Because of the fourth power, large observations in the tail will have a large weight and hence create large kurtosis. Such a distribution is called leptokurtic, or fat tailed.
A kurtosis of 3 is considered average. High kurtosis indicates a higher probability of extreme movements.
www.cbacademy.in
www.cbresearch.in
34
Example
Quantitative Analysis
Assuming that the distribution of ABC stock returns is a population, what is the population standard deviation? A. 5.0 B. 6.8 C. 45.22 D. 80.2
www.cbacademy.in
www.cbresearch.in
35
Solution
The population variance is given by taking the mean of all squared deviations from the mean. 2 = [(12-5.67)2 + (5-5.67
)2 + (-7-5.67)
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
36
Example
The random variables X and Y have variances of 2 and 3 respectively, and covariance of 0.5. The variance of 2X + 3Y is:
A.
13
B. 29
Quantitative Analysis
C. 35 D. 41
www.cbacademy.in
www.cbresearch.in
37
Solution
Answer: C o o Var(X + Y) = Var(X) + Var(Y) +2*Cov(x,y) Var(X - Y) = Var(X) + Var(Y) -2*Cov(x,y) Var(cX) = c^2 * Var(X) Cov (ax,by) = abCov(x,y) So, Var(2X + 3Y) = 22 Var(X) +32 Var(Y) +2*2*3*Cov(x,y) Var(2X + 3Y) = 4*2 + 9*3 + 12*0.5 = 41
Quantitative Analysis
o o o o
www.cbacademy.in
www.cbresearch.in
38
Question
You are given the following information about the returns of stock P and stock Q: o o Variance of return of stock P=100.0 Variance of return of stock Q=225.0 Covariance between the return of stock P and the return of stock Q=53.2
Quantitative Analysis
At the end of 1999, you are holding USD 4 million in stock P. you are considering a strategy of shifting USD 1 million into stock Q and keeping USD 3 million in stock P. what percentage of risk,as measured by standard deviation of return, can be reduced by this strategy? A. 0.50% B. 5.00% C. 7.40% D. 9.70%
www.cbacademy.in
www.cbresearch.in
39
Answer
Answer: B
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
40
Quantitative Analysis
D. A platykurtic distribution
www.cbacademy.in
www.cbresearch.in
41
Answer
Answer: D By definition, a platykurtic distribution has thinner tails than both the normal distribution and any leptokurtic distribution. Therefore, for an extreme value X, the lowest probability of exceeding it will be found in the distribution with the thinner tails.
Quantitative Analysis
A. Incorrect. A leptokurtic distribution has fatter tails than the normal distribution. The kurtosis indicates the level of fatness in the tails, the higher the kurtosis, the fatter the tails. Therefore, the probability of exceeding a specified extreme value will be higher . B. C. Incorrect. Since answer A. has a lower kurtosis, a distribution with a kurtosis of 8 will necessarily produce a larger probability in the tails. Incorrect. By definition, a normal distribution has thinner tails than a leptokurtic distribution and larger tails than a platykurtic distribution
www.cbacademy.in
www.cbresearch.in
42
Agenda
Probability Moments Important Probability Distributions Discrete Probability Distributions (1hr) Continuous Distribution (1hr)
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
43
Bernoulli Distribution
Assumptions The outcome of an experiment can either be success (i.e., 1) and failure (i.e., 0).
Pr(X=1) = p, Pr(X=0) = 1-p, or The expected value E[X] of the event is equal to the probability of success(p) E[X] = p The variance of the event is the product of the probability of success and probability of failure: Var(X) = p(1-p)
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
44
Binomial Distribution
Assumptions: There are n trials. Each trial has two possible outcomes, success or failure.
Quantitative Analysis
The probability of success p is the same for each trial. Each trial is independent If we take n Bernoulli trials, and say out of those n trials we have total number of x successes, then the probability of such an event can be given as:
www.cbacademy.in
www.cbresearch.in
45
Example
There are 10 bonds in a credit default swap basket; the probability of default for each of the bonds is 5%. The probability of any one of the bond defaulting is completely independent of what happens to the other bonds in the basket. What is the probability exactly one bond default? A. 5%
Quantitative Analysis
B. 50% C. 32%
D. 3%
www.cbacademy.in
www.cbresearch.in
46
Solution
Answer: C one particular bond defaults and other nine do not with the probability 0.05* (0.95)^9 can happen in 10 different ways. = 10*0.05* (0.95)^9 = 32%
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
47
Question
Company ABC was incorporated on January 1, 2004. it has expected annual default rate of 10%. Assuming a constant quarterly default rate, what is the probability that company ABC will not have defaulted by April 1, 2004? A. 2.4%
Quantitative Analysis
B. 2.5% C. 97.4%
D. 97.5%
www.cbacademy.in
www.cbresearch.in
48
Answer
Answer: C Let the probability of not defaulting in 1 quarter is (nd). Then the probability of not defaulting for a full year is (nd)4. This implies that the probability of defaulting within 1 year time is {1 given as 10%. 1-(nd)4=0.1 which implies (nd)=0.91/4
Quantitative Analysis
= 97.4%
www.cbacademy.in
www.cbresearch.in
49
Question
A corporate bond will mature in 3 years. The marginal probability of default in year one is 0.03%. The marginal probability of default in year 2 is 0.04%. The marginal probability of default in year 3 is 0.06%. What is the cumulative probability that default will occur during the 3 year period? A. 0.1247%
Quantitative Analysis
B. 0.1276% C. 0.1299%
D. 0.1355%
www.cbacademy.in
www.cbresearch.in
50
Answer
Answer: C The cumulative probability of default= 1-{Product of marginal probabilities of not defaulting} =1-{(1-0.0003)*(1-.0004)*(1-0.0006)} =0.001299 Therefore the cumulative probability of default is 0.1299%
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
51
Poisson Distribution
Assumptions: The probability of observing a single event over a small interval is of that interval. The probability of an event within a certain interval The probability of an event in one interval is independent interval which is not overlapping.
Quantitative Analysis
Poisson distribution is a special case of Binomial distribution when the probability of success(p) becomes very small and the number of events(n) becomes very large in such a way that the product of both gives a constant(). Fix the expectation =np Number of trials n A Binomial distribution will become a Poisson distribution
E[X] = , Var(X) =
www.cbacademy.in
www.cbresearch.in
52
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
53
Question
When can you use the Normal distribution to approximate the Poisson distribution, assuming you have "n" independent trials each with a probability of success of "p"? When the mean of the Poisson distribution is very small. When the variance of the Poisson distribution is very small. When the number of observations is very large and the success rate is close to 1.
Quantitative Analysis
When the number of observations is very large and the success rate is close to 0.
As sample size gets large (typically > 30) Sampling distribution becomes almost normal regardless of shape of population
www.cbacademy.in
www.cbresearch.in
54
Answer
Answer: C The Normal distribution can approximate the distribution of a Poisson random variable with a large lambda parameter (). This will be the case when both the number observations (n) is very large and the success rate (p) is close to 1 since = n*p. INCORRECT: A, The mean of a Poisson distribution must be large to allow approximation with a Normal distribution. INCORRECT: B, The variance of a Poisson distribution must be large to allow approximation with a Normal distribution. INCORRECT: D, The Normal distribution can approximate the distribution of a Poisson random variable with a large lambda parameter (). But since = n*p, where n is the number observations and p is the success rate, will not be large if p is close to 0.
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
55
Example
A. The number of false fire alarms in a suburb of Houston averages 2.1 per day. What is the (approximate) probability that there would be 4 false alarms on 1 day?
A. 1
B. 0.1 0.5
Quantitative Analysis
C.
D. 0
www.cbacademy.in
www.cbresearch.in
56
Solution
Answer: B Use Poisson distribution P(X = x) = [x *e-]/ ! Is there any other intuitive way as well???
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
57
Uniform distribution
The simplest continuous distribution function is the uniform distribution. This is defined over a range of values for x, a x b.
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
58
Question
Assume we use continuous uniform distribution U(0,10) to generate a series of random numbers. Which of the following statements is Correct?
A. The number 5 is likely to be observed much more often than any other number.
B. Numbers between 4 and 6 are more likely to occur than the number between 6 and 10, because the first interval is closer to the center of the distribution. C. Numbers between 1 and 3 are as likely as the number between 4 and 6. D. Numbers between 1 and 3 are less likely than the number between 4 and 6, due to skewness of the distribution.
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
59
Solution
Answer: C
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
60
Quantitative Analysis
The standard normal distribution has mean = 0 and standard deviation sigma=1
www.cbacademy.in
www.cbresearch.in
61
Quantitative Analysis
The expected value of a normally distributed variable: E[X]= , The variance of normally distributed variable: Var(X)= 2
If two variables are individually normally distributed, then the linear combination of the both is also normally distributed.
Lets take an example of two variable X1 and X2 which are normally distributed such that: X1~N(1,1) and X2~N(2,2)
Question
Let X be a uniformly distributed random variable between minus one and one so that the standard deviation of X is 0.577. What percentage of the distributions will be less than 1.96 standard deviations above the mean: A. 100%
Quantitative Analysis
B. 97.5% C. 95%
www.cbacademy.in
www.cbresearch.in
63
Answer
Answer: A The answer requires understanding of distributions and standard deviation. The key is that every distribution has a standard deviation. However the number of standard deviations associated with different probabilities are different for each distribution. In this case 1.96 standard deviation represent a move of 1.12 or less. As the total distribution is defined as falling between minus one and one the correct answer is a.
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
64
Question
For the standard normal distribution, calculate the value of P(-1.87 Z 1.23) or P(|Z| 1.6)? 0.5683 0.8794 0.7831 0.9145
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
65
Solution
Answer: D In the diagram given below, the area representing the region P(-1.87 Z 1.23) or P(|Z| 1.6) is shown below. The area will be from Z = -1.87 to Z = 1.6 and common area is from Z = 1.6 to Z = 1.23. P(-1.87 Z 1.23) or P(|Z| 1.6) = P(Z 1.87) + P(Z 1.6) = 0.4693 + 0.4452 = 0.9145 Hence option D is correct.
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
66
Agenda
Appendix
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
67
Quantitative Analysis
A. Plot the probability of v exceeding x standard deviations against x B. Plot the probability of v exceeding x standard deviations against Log of x C. Plot the Log of the probability of v exceeding x standard deviations against x D. Plot the Log of the probability of v exceeding x standard deviations against the Log of x
www.cbacademy.in
www.cbresearch.in
68
Solution
Answer: D The mathematical relationship in the question can be rewritten (by taking the logs on both sides): Log(Prob(v > x)) = Log(K) - aLog(x), i.e. the plot of the Log of the probability of v exceeding x standard deviations against the log of x should be a straight (decreasing) line if the relationship strictly holds. The intercept is an estimate of Log of K and the slope of the line yields the parameter a.
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
69
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
70
Solution
Initially Jack has 3 white balls and 2 red balls in his box while his friend Andrew has 4 white and 5 red balls. After the exchange Jack has 2 white and 3 red balls, and Andrew has 5 white and 4 red balls. Therefore the probability of picking a red ball from Andrews box is: P(RAndrew)=4/(5+4)=4/9 Now Tom stole a white ball from one of the two boxes. To make a calculated guess about who lost 1 white ball, we need to calculate the conditional probabilities. P(Jacks box/If the balls is White)= Probability of white balls in Jacks box/(Probability of white ball in Jacks box +Probability of white ball in Andrews box)
Quantitative Analysis
Point to note here is that the white ball can come from 2 boxes only, so the sum of conditional probabilities of the boxes, given the ball is white should sum to 1, which is (18/43+25/43) =1 in our case.
www.cbacademy.in
www.cbresearch.in
71
Appendix: Question
There are 10 sprinters in the Olympic finals. How many ways can the gold, silver, and bronze medals be awarded? A. 120
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
72
Solution
Answer: B
10P 3
= 720
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
73
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
74
Solution
Let P(R) be the probability of witness being accurate. Then P(R) = 0.8 which implies P(W) = 0.2 i.e. probability of witness being wrong. Let P(B/R) = Probability of accident by a blue car, conditional on the fact that the statement is a right statement. Then P(B/R) = 0.7 Also P(B/W)=0.3, Similarly P(G/R) = 0.3 Here we need to find P(R/B) i.e. If the witness has said that it was a blue car, then what's the probability that it was actually blue. Applying Bayes Theorem now: P(R/B) = P(B/R) * P(R)/P(B) Here we know all except P(B):
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
75
Quantitative Analysis
Therefore the probability of the car being actually blue, when the witness identified it as blue equals: (0.56/0.62)=0.903
www.cbacademy.in
www.cbresearch.in
76
Quantitative Analysis
B. The Students t-distribution has larger skewness and larger kurtosis. C. The kurtosis of a Students t -distribution converges to that of the normal distribution as the number of degrees of freedom increases.
D. The normal distribution is a good approximation for the Students t-distribution when the number of degrees of freedom is small.
www.cbacademy.in
www.cbresearch.in
77
Answer
Answer: C The skewness of both distributions is zero and the kurtosis of the Students t distribution converges to that of the normal distribution as the number of degrees of freedom increases.
Quantitative Analysis
www.cbacademy.in
www.cbresearch.in
78