73
Title page Australian School of Business Probability and Statistics Tutorial Exercises Probability and Statistics Exercises Session 1, 2014

Actuarial Questions

Embed Size (px)

DESCRIPTION

Actuarial questions

Citation preview

  • Title page Australian School of Business

    Probability and StatisticsTutorial Exercises

    Probability and Statistics

    Exercises

    Session 1, 2014

  • Overview Australian School of Business

    Probability and StatisticsOverview

    TutorialsStudents must attend the tutorial for which they are enrolled. Attendance will be recorded and count to-wards meeting the requirements to pass the course. If you wish to change your tutorial then you must lodgean application to change your tutorial time with the ASB student service centre.

    In tutorials, we will implement interactive learning where collaborative group work is highly encouraged.To get the most out of the tutorials, students should read lecture notes and textbooks and references andcomplete assigned homework problems in advance of the tutorial.

    Peer-Assisted-Support-Scheme (PASS)In addition, ASOC has an actuarial PASS program will be available to enhance student learning in thiscourse. It is highly recommended that you attend these sessions.ASOC website: www.asoc.unsw.edu.auPASS peer support class times:www.asoc.unsw.edu.au/index.php?option=com content&view=article&id=48&Itemid=42PASS material is available on: sites.google.com/a/asoc.unsw.edu.au/unsw-asoc/downloads

    Organization of TutorialsThe more you read the more you know, but the more you practice the more you learn and understand. Sothe key to the understanding of this course is problem solving.

    The purpose of tutorials is to enable you to raise questions about difficult topics or problems encounteredin their studies. Students must not expect another lecture, tutorials are a place where you have to learnby doing and subsequently also learn from mistakes, as that is the most efficient way to learn, especially inactuarial courses.

    To benefit from the tutorial exercises provided, you have to make the attempt to the questions yourself.Copying the tutorial manuals solution or the tutors solution is least effective for your learning process.Moreover, given that you already know the answer, the copying learning strategy prevent you from acquir-ing the knowledge of solving the question when trying to solve the exercise any subsequent time afterwards.

    The object of the tutorials is to attempt the assigned exercises and topics covered in the course. Eachweek a document will be posted containing the exercises which are to be covered in tutorials. IN the scheduleon the next page the weekly questions are divided into three groups:

    1. Exercises that should be done in the same week as the lecture. At the end of the week the solutionsto these questions will be uploaded on Blackboard. If there is enough interest there will be an onlinetutorial about those questions. Link and details will be provided via Blackboard.

    2. Question done in the week after the lecture. The class tutorial will typically focus on these questions.After all tutorials, a new solution manual will be posted on Blackboard containing all the answers.

    3. Some optional/additinal/exam preparation questions for the ones requiring more exercises than onlythe tutorial, pass class and book exercises when studying for the exam.

    Tutorials are an integral component of the course; attendance and participation in your tutorial is crucialfor your successful completion of the course.

    The Teaching Strategy (including the feedback loop) in this course is:The Get introduced (explanation of course concepts in the lecture) and Try it out (examples in the

    lecture) are part of the lecture. If you are not able to make satisfactory attempt to the examples in thelecture, this is feedback that you should revise the lecture material in dept after the lecture. The Try again(tutorial exercises) and Get feedback (answers from tutor/ Wikispace / tutorial solutions) are part of thetutorial. The tutorial is designed to attempt the tutorial questions in groups (typically of 3-4 students). Thiscollaborative working is advised since it allows learning from peers and allows the more advanced studentwith a possibility to test whether s/he knows the material in dept and is thereby able to explain it to peers.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page i of iii

  • ACTL2131 & ACTL5101 Probability and Statistics Overview

    GetIntroduced

    Try it out Get feedback Try again

    Figure 1: Feedback loop

    If the group is unable to solve a question, it can ask for help from the tutor. The tutor will not provide theanswer, but would help you in the direction of the solution. This is because you should practice and learnby doing, rather than seeing the solution. At the end of the week the tutorial solutions will be posted onBlackboard. It will only be posted at the end of the week to give you time to attempt the questions withouta solution manual. The solution manual should not be part of attempting a question, but to verify whetheryour attempt was correct.

    Learning StrategyA required learning strategy for the tutorials (on which provision of the course materials is based) is:

    1) Prior to make an attempt of the exercises, review your lecture notes.

    2) Prior to the tutorial, make an attempt to the exercises you should do before the tutorial (see schedulebelow).

    3) At the end of the week, verify your answers with the (partial) solution manual and/or the onlinetutorial on Blackboard. Revise the material that you did not know, did incorrectly.

    4) During the tutorial, make an attempt to the exercises you should do in the tutorial (see schedulebelow).

    5) After the tutorial, make an attempt to the exercises you should do after in the tutorial (see schedulebelow).

    6) If you have questions about the tutorial exercises, ask them at the Wikispace. If you think you havea good understanding of the material, you should try and answer the questions of your peers on theWikispace. This will give you feedback on your ability to explain the material and hence how well youknow the material.

    7) Check your answer using the tutorial solution manual.

    NOTE: tutorials are for making tutorial exercises, not for reviewing material or working onassignment or anything else!

    Schedule of Tutorial Exercises

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page ii of iii

  • ACTL2131 & ACTL5101 Probability and Statistics Overview

    Exercises Before tuto-rial

    During Tutorial After Tutorial Additional

    Week 1 1, 2 10, 11, 12, 13 14, 15, 16, 17 3-9Week 2 1, 2 3, 4, 5 6, 7, 8Week 3 1, 2, 3 4, 6, 7, 5 8, 9, 10, 11 12Week 4 1 3abc, 2, 4, 3d,e 5, 6Week 5 1, 2 3, 4, 5, 6 7, 8, 9 10, 11, 12, 13, 14,

    15, 16Week 6 1, 2 4, 3, 6, 5 7, 8, 9, 10 11, 12, 13, 14Week 7 1 2, 3, 4, 6 5, 7Week 8 Working on

    assignment1, 2, 8, 7 Working on assign-

    ment3, 5, 6

    Week 9 Working onassignment

    1, 2a, 5 Working on assign-ment

    3a-d, 4, 7a-d

    Week 10 Working onassignment

    2-6 Working on assign-ment

    Week 11 Working onassignment

    5-14 Working on assign-ment

    1, 7, 8

    Week 12 15 of week 11tutorial

    1-3 Revision for exam 1-4

    Sample Exam Revision forexam

    Revision for exam

    Table 1: Schedule of tutorial exercises.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page iii of iii

  • Week 1 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 1, 2014

    1. An urn contains one black ball and one gold ball while a second urn contains one white and one goldball. One ball is selected at random from each urn.

    (a) Describe the sample space for this experiment.

    (b) Describe a -algebra for this experiment.

    (c) Describe the event that both balls will be of the same colour. What is the probability of thisevent?

    2. A box contains 100 Christmas balls: 49 are red, 34 are gold, and 17 are silver. Three balls are to bedrawn without replacement. Determine the probability that:

    (a) all 3 balls are red;

    (b) the balls are drawn in the order: red, gold, and silver;

    (c) the third ball is a silver, given that the first 2 are red and gold (not necessarily in that order);and

    (d) the first 2 are red, given that the third ball is a silver;

    3. Let A and B be two independent events. Prove that the following pairs are also independent:

    (a) A and BC

    (b) AC and B

    (c) AC and BC

    4. A pair of events A and B cannot be simultaneously mutually exclusive and independent. Assume thattheir probabilities are strictly positive, i.e., Pr (A) > 0 and Pr (B) > 0. Prove the following:

    (a) If A and B are mutually exclusive, then they cannot be independent.

    (b) If A and B are independent, then they cannot be mutually exclusive.

    5. This exercise shows that independence does not imply pairwise independence. Consider a randomexperiment which consists of tossing two dice. Define the following events:

    E1 = {doubles appear}E2 = {the sum is between (and includes) 7 and 10}E3 = {the sum is 2 or 7 or 8}

    (a) Show that E1, E2 and E3 are independent.

    (b) Show that E1 and E2 are not pairwise independent.

    (c) Show that E2 and E3 are not pairwise independent.

    (d) What about E1 and E3are they pairwise independent?

    6. In an undergraduate statistics class, three students A, B, and C submitted exactly (word-for-word)the same solution to a homework problem. It is the policy of the lecturer to give zero marks for thosewho copy homework problems. Believing that there must be one of the three who actually did thework, the lecturer will pardon one of the three and chooses at random the student to pardon.However, the lecturer will only inform the students at the end of the semester who among them hasbeen pardoned.The next day, A tries to get the lecturer to tell him who had been pardoned. The lecturer refuses. Athen asks which of B or C will not be pardoned. The lecturer thinks for a while, then tells A that Bis not to be pardoned.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 1 of 4

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 1

    Lecturers reasoning: Each student has a 1/3 chance of being pardoned. Clearly, either B or Cmust not be pardoned, so I have given A no information about whether A will be pardoned.

    As reasoning: Given that B will not be pardoned, then either A or C will be pardoned. Mychance of being pardoned has risen to 1/2.

    (a) Evaluate the lecturers reasoning, i.e., explain whether his reasoning is justified.

    (b) Evaluate student As reasoning, i.e., explain whether his reasoning is justified.

    7. Two airlines serving some of the same cities in Australia have merged. Management has decided toeliminate some of the repetitious daily flights. On the Perth-Sydney route, one airline originally hadfive daily flights (each at different a time) and the other had six daily flights (each at different a time).Determine the number of ways:

    (a) four flights can be eliminated.

    (b) the first airline can eliminate two of its scheduled five flights.

    (c) the second airline can eliminate two of its scheduled six flights.

    (d) two flights can be eliminated from each airline.

    8. Three boxes are numbered 1, 2 and 3. For k = 1, 2 and 3, box k contains k blue marbles and 5 kred marbles. In a two-step experiment, a box is selected and 2 marbles are drawn from it withoutreplacement. If the probability of selecting box k is proportional to k, what is the probability that thetwo marbles drawn have different colors?

    9. The probability function of a certain discrete random variable on the non-negative integers satisfiesthe following:

    Pr(0) = Pr(1) Pr(k + 1) = Pr(k)/k for k = 1, 2, 3, . . ..

    Find Pr(0).

    10. Consider X , a continuous random variable with density function

    fX(x) = cex, x > 1, and zero otherwise.

    Find

    (a) all c such that fx is a random variable, and

    (b) Pr(X < 3 |X > 2).

    11. The distribution function for a discrete random variable X is given by:

    FX(x) =

    0 if x < 11/3 if 1 x < 2/31 if x 2/3.

    (a) Specify the probability mass function pX(x).

    (b) Sketch the graphs of pX(x) and FX(x).

    12. Let X be a random variable with density:

    fX (x) =12pi

    exp

    [12

    (x

    )2], for < x

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 1

    (c) Use the above result to prove that, with the normal density, we have

    E (X) = and V ar (X) = 2.

    (d) How do we call the function S (t)?

    13. Let X be a random variable with parameters ,, , and (, and have the following momentgenerating function: MX(t) = t+ t2 + t3 + t4.

    (a) How many distribution functions corresponds to this m.g.f. for given values of the parameters?

    (b) Determine the first five non-central moments of X .

    (c) Determine the first five central moments of X .

    (d) Determine the mean, variance, skewness, and kurtosis of X .

    (e) Let X represents the claim sizes, i.e., a higher value is bad for the insurer. Insurer A and Biask a quote for reinsuring a tail risk (for example: the reinsurer makes a payment to the insurerif the loss is larger than $1 million). Based on the mean, variance, skewness and kurtosis, whichof the two would receive a higher quote for reinsuring the risk, and why, if:

    i) As parameters are: = 1, = 2, = 1, and = 1 and B1 parameters are = 1, = 1, = 0.5384, and = 0.2606;

    ii) As parameters are: = 1, = 2, = 1, and = 1 and B2 parameters are = 1, = 2, = 2, and = 2;

    iii) As parameters are: = 1, = 2, = 1, and = 1 and B2 parameters are = 1, = 2, = 1, and = 1.625.

    14. The probability density function for a continuous random variable X is given by:

    fX(x) =

    {2/x3 for x 10 otherwise.

    (a) Determine a formula for the cumulative distribution function FX(x).

    (b) Determine the probability that X 4.(c) Sketch the graphs of fX(x) and FX(x).

    15. Let X be a random variable with probability density function:

    fX (x) =

    12e

    x, if x 0;12e

    x, if x < 0.

    (a) Verify that fX () is a pdf.(b) Find expression for the cdf FX (x).

    (c) Find the moment generating function and the probability generating function of X .

    (d) Suppose = 1. Evaluate Pr (|X | < 3/4).

    16. Actuaries often model the age-at-death as a non-negative random variable X and define the force ofmortality as follows:

    (x) = limh0

    FX (x+ h) FX (x)h (1 FX (x)) ,

    where FX () denotes the cdf of X .(a) Using this definition, prove that:

    FX (x) = 1 exp( x0 (z)dz

    ).

    (b) Show that for a non-negative random variable:

    E [X ] =

    0

    [1 FX (z)] dz.

    Use this result to show that:

    E [X ] = E

    [1

    (X)

    ].

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 3 of 4

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 1

    17. A random variable X has a probability density function of the form:

    fX (x) = ax(1 bx2) , for 0 x 1, and zero otherwise,

    where a and b are positive constants.

    (a) Determine the value of a in terms of b and show that b 1.(b) For the case b = 1, determine the mean and variance of X .

    -End of week 1 Tutorial Exercises-

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 4 of 4

  • Week 2 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 2, 2014

    1. For each of the following situations, specify the type of distribution that best models the randomvariable X and give the parameters of the distribution chosen (where possible):

    (a) This year, there are 100 students enrolled in an introductory actuarial studies course. For themid-session test for this course, the papers are marked by a team of tutors; however, a sampleof these papers is examined by the course professor for marking consistency. Experience suggeststhat 1% of all papers will be improperly marked. The professor selects 10 papers at random fromthe 100 papers and examines them for marking inconsistencies. X is the number of papers in thesample that are improperly marked.

    (b) A standard drug has been known to be effective in 90% of the cases in which it is used. Tore-evaluate the effectiveness of this same drug, a clinical trial will be performed where 20 hasvolunteered. X is the number of cases where the drug has been found effective.

    (c) An immunologist is studying blood disorders exhibited by people with rare blood types. It isestimated that 10% of the population has the type of blood being investigated. Volunteers whoseblood type is unknown are tested until 100 people with the desired blood type are found. X isthe number of people tested who do not have the desired rare blood type.

    (d) Customers arrive at a fastfood restaurant independently and at random. During lunch hour,where more customers are often expected to arrive, customers arrive at the fastfood restaurantat the rate of two per minute on the average. X is the number of people who arrive between 12:15p.m. and 12:30 p.m.

    (e) A set of 25 multiple-choice questions was asked in an examination. It has been determined,according to experience, that the proportion of the questions which are guessed and answeredcorrectly is 35%. X is the number of questions guessed and answered correctly by a particularstudent who wrote for the examination.

    2. For each of the following moment generating functions of discrete random variables X , identify thedistribution and specify the associated parameters.

    (a) MX (t) =et

    2 et

    (b) MX (t) =

    (et + 1

    2

    )3(c) MX (t) = exp

    (1

    2et 1

    2

    )(d) MX (t) =

    (et

    2 et)4

    (e) MX (t) =

    (3et + 1

    4

    )53. Poisson approximation to the binomial. This exercise is to show that binomial probabilities can

    be approximated using the Poisson probabilities, which are generally easier to calculate. Let X Binomial(n, p) and Y Poisson() where = np. The approximation states that

    Pr (X = x) Pr (Y = x) ,for large n and small np. This can be proven using convergence of mgfs. Denote the respective mgfsby MX (t) and MY (t).

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 21 of 23

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 2

    (a) Prove that limnMX (t) =MY (t).Hint: use lim

    n(1 +xn )

    n = exp(x) = limh0

    (1 + hx)1h .

    (b) Another method to prove this approximation is as follows: First, establish that the Poissondistribution satisfies the relation

    Pr (Y = x)

    Pr (Y = x 1) =

    xfor x = 1, 2, . . . .

    Second, a similar relation can be approximated for the binomial distribution:

    limp0

    Pr (X = x)

    Pr (X = x 1) =np

    x.

    Hint: first show that Pr(X=x)Pr(X=x1) =nx+1

    x p1p , then take limp0 and use that limp0(np) = . Thenshow that:

    Pr (Y = 0) Pr (X = 0) ,for large n.

    (c) A typesetter, on the average makes one error in every 400 words typeset. A typical page contains300 words. Use the Poisson approximation to the binomial to compute the probability that therewill be more than 3 errors in 10 pages.

    4. An insurance company receives 200 claims per day on the average. Claims arrive independently andat random at the company office. Of the claims, 95% are for amounts less than $100 and are processedimmediately; the remaining 5% are examined more closely to verify their accuracy and eligibility.

    (a) Determine the probability of getting no claims over $100 in a given day.

    (b) Determine the probability of getting at most two claims over $100 in a given day.

    (c) How many claims for amounts less than $100 should this company expect to receive in a week (5business days)?

    5. Let X have a Gamma(,) distribution.

    (a) Prove that the mgf of X can be expressed as:(

    t)

    for t < .

    (b) Establish also that for any positive constant r

    E [Xr] = r (r + )

    ().

    6. Suppose that you have $1 000 to invest for a year. You are currently evaluating two investments:Investment A and Investment B, with annual rates of return, respectively denoted by RA and RB.Assume:

    RA Normal (0.05, 0.1) and RB Normal (0.10, 0.5) .(a) Under Investment A, compute the probability that your investment will be below $1 000 in a year.

    (b) Under Investment A, compute the probability that your investment will exceed $1 200 in a year.

    (c) Under Investment B, compute the probability that your investment will below $1 000 in a year.

    (d) Under Investment B, compute the probability that your investment will exceed $1 200 in a year.

    7. A city engineer has studied the frequency of accidents at two busy intersections. He has determinedthat the time T in months between accidents at each intersection has an exponential distribution. Theparameters for these two distributions are 2 and 2.5. Assume that the occurrence of accidents at theseintersections is independent.

    (a) Determine the probability that there are no accidents at either intersection in the next month.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 22 of 23

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 2

    (b) Determine the probability that there will be no accidents for at least one of the intersections inthe next month.

    8. The Pareto distribution is very commonly used to model certain insurance loss amounts. We say Xhas a Pareto distribution if its density can be expressed as:

    fX (x) =

    (

    x

    )+1for x > ,

    and zero otherwise.

    (a) Find expressions for the mean and variance of X .

    (b) Find expression for the quantile of X . The quantile function is f(u) = F1X (u) hence, one shouldsolve u = FX

    (F1X (u)

    ).

    (c) What is then its median (i.e., u = 0.5)?

    (d) An insurance policy has a deductible1 of $5. The random variable for the loss amount (beforedeductible) on claims filed has a Pareto distribution with = 3.5 and = 4. Find:

    1. the mean loss amount;

    2. the expected value of the amount of a single claim; and

    3. the variance of the amount of a single claim.

    -End of week 2 Tutorial Exercises-

    1A deductible is that the policy only makes no payment if the loss amount is smaller than the deductible; and the claimamount equals the loss amount minus the deductible if the loss amount is larger than the deductible.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 23 of 23

  • Week 3 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 3, 2014

    1. The claim amounts (in dollars, to the nearest $10) for a sample of 24 recent claims for storm damageto private homes in a particular town are as follows:2

    2 710 670 2 380 4 670 1 220 6 780 1 590 3 110960 8 230 3 320 3 380 2 490 1 940 3 710 4 630

    4 270 4 210 1 880 3 880 1 490 5 400 2 430 850

    (a) Construct a stem-and-leaf display of these claim amounts.

    (b) Find the mean and median of the claim amounts. What can you say about the skewness of thedistribution?

    (c) Find the interquartile range of the claim amounts.

    (d) Evaluate F24 (1 000) where F24 () denotes the ecdf.

    2. Data were collected on 100 consecutive days for the number of claims, X , arising from a group ofinsurance policies. This resulted in the following frequency distribution:

    observed claims from policy (x): 0 1 2 3 4 5frequency: 14 25 26 18 12 5

    Calculate the following sample statistics for these data:

    (a) mode

    (b) median

    (c) interquartile range

    (d) Suppose the average value for 5 claims or more is 7.5. Calculate the sample mean.

    3. For a set of 32 observations, you are given:

    32k=1

    xk = 13 337.6 and32k=1

    x2k = 5 667 388.7.

    The largest of the observations is 605. Suppose you are interested in measuring the impact of thelargest observation on the mean and standard deviation.

    (a) Calculate the sample mean and the sample standard deviation.

    (b) Calculate the sample mean and the sample standard deviation, with the largest observationdeleted.

    (c) What is the percentage change in the mean?

    (d) What is the percentage change in the standard deviation?

    4. Let X and Y be two discrete random variables whose joint probability function is given by:

    Pr(X = x, Y = y) X = x0 1 2 3

    Y = y 1 0.05 0.20 0.15 0.052 0.20 0.15 0.12 0.08

    2Modified Institute of Actuaries exam question.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 31 of 33

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 3

    Calculate:

    (a) E [X ]

    (b) E [Y ]

    (c) E [X |Y = 1](d) V ar (Y |X = 3)(e) E [XY ] and Cov(X,Y).

    5. Let X and Y be two discrete random variables whose joint probability mass function is given by:

    Pr(X = x, Y = y) X = x1 2 3 4

    1 0.10 0.05 0.02 0.02Y = y 2 0.05 0.20 0.05 0.02

    3 0.02 0.05 0.20 0.044 0.02 0.02 0.04 0.10

    (a) Find the marginal probability mass functions of X and Y .

    (b) Find the conditional probability mass of X given Y = 2 and of Y given X = 2.

    (c) Find E[XY ] and Cov(X,Y ).

    6. Let X and Y have the joint density:

    fX,Y (x, y) =6

    7(x+ y)2 , for 0 x 1 and 0 y 1,

    and zero otherwise.

    (a) By integrating over the appropriate regions, find:

    1. Pr (X < Y )

    2. Pr (X + Y 1)3. Pr

    (X 12

    )(b) Find the marginal densities of X and Y .

    (c) Find the two conditional densities.

    7. Two independent measurements, X and Y , are taken of a quantity . We are given the means areequal, E [X ] = E [Y ] = , but the variances 2X and

    2Y are not equal. The two measurements are then

    combined by means of a weighted average to give:

    Z = X + (1 ) Y,where is a constant between 0 and 1, i.e., 0 1.(a) Show that E [Z] = .

    (b) Find in terms of X and Y to minimise V ar (Z).

    (c) Under what circumstances is it better to use the average (X + Y ) /2 than either X or Y alone todetermine ? Hint: a smaller variance would give a better estimate of the population mean.

    (d) Now, suppose X and Y are instead not independent and have covariance:

    Cov (X,Y ) = XY .

    Find in terms of X , Y and XY to minimise V ar (Z).

    8. Let xn and s2n denote the sample mean and variance for the sample x1, x2, . . . , xn. Let xn+1 and s2n+1

    denote these quantities when an additional observation xn+1 is added to the sample.

    (a) Show how xn+1 can be computed from xn and xn+1.

    (b) Show that:

    s2n+1 =

    (n 1n

    )s2n +

    1

    n+ 1(xn+1 xn)2

    so that s2n+1 can be computed from xn, xn+1, and s2n.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 32 of 33

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 3

    9. Suppose X and Y are two continuous random variables. Prove that:

    E [Y ] =

    E [Y |X = x ] fX (x) dx.

    10. You are given:

    X1 Uniform[0, 1] Conditional on X1, X2 Uniform[0, X1]

    (a) Find the joint distribution function of X1 and X2.

    (b) Find the marginal distribution function of X2.

    11. Suppose that the joint distribution function of X1 and X2 is given by

    FX1,X2 (x1, x2) =

    0, if x1 < 0 or x2 < 0;x1x2

    [1 + 12 (1 x1) (1 x2)

    ], if 0 x1 1 and 0 x2 1;

    Fx1(x1), if x2 > 1;Fx2(x2), if x1 > 1,

    (a) Find the joint density.

    (b) Find the marginal distribution functions of X1 and X2. Can you recognise these distributions?

    (c) Find the correlation coefficient of X1 and X2.

    12. We have the joint probability density function:

    fX1,X2 (x1, x2) =

    {k(1 x2), if 0 x1 x2 1;0, else.

    (a) Determine the value k for which this function is a density.

    (b) Determine the region for the integral for determining Pr(X1 3/4, X2 1/2).(c) Calculate Pr(X1 3/4, X2 1/2).

    -End of week 3 Tutorial Exercises-

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 33 of 33

  • Week 4 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 4, 2014

    1. Compound Distribution. In a portfolio of insurance policies, the amount of claim is a random variable

    Xk which has an exponential distribution with mean1

    , for k = 1, 2, . . . The number of claims N in a

    single period is also a random variable but with a Poisson() . The total claims then in the portfolioduring the period is given by:

    S = X1 +X2 + . . .+XN .

    (a) Find the mean of S, E[S].

    (b) Find the variance of S, V ar(S).

    (c) Find the moment generating function of S, MS (t).

    2. Let X1, X2 and X3 be i.i.d. with common density:

    fX (x) = ex, x 0.

    (a) Find the joint density of X(1), and X(3).Hint: First find the joint density of X(1), X(2), and X(3), i.e., fX(1),X(2),X(3)(y1, y2, y3) = . . .Second you find the distribution of only X(1) and X(3) by integrating over the other randomvariable (similar to finding the marginal distribution). Be careful by the limits for X(2), what arethe lowest and highest numbers it can take?

    (b) Compute E[X(1)

    ]and E

    [X(3)

    ].

    (c) Compute V ar(X(1)

    )and V ar

    (X(3)

    ).

    (d) Compute E[X(1)X(3)

    ]and the correlation coefficient

    (X(1), X(3)

    ).

    3. Let X Gamma(, 1) and Y Gamma(, 1) be independent random variables. Define U = X + Yand V = X/(X + Y ).

    (a) Use the moment generating function technique to find the distribution of U .

    (b) Use the Jacobian transformation technique to find the joint distribution of U and V .

    (c) Show that U and V are independent.Hint: You do not need to do any additional calculations to show this.

    (d) Find the marginals of U and V using their joint distribution derived in Question 3b. Demonstratethe the marginal of U is consistent with that derived from Question 3a.

    (e) Use Question 3c. and Question 3d. to find the mean and variance of V .

    4. Let X1, X2 and X3 be three independent and identically distributed as Exp(1) random variables. Find:

    (a) E[X(3)

    X(1) = x](b) E

    [X(1)

    X(3) = x](c) fX(1),X(3) (x, y)

    (d) fR (r), where R = X(3) X(1) is the range.

    5. Let X1 and X2 be i.i.d. (independent and identically distributed) N (0, 1) random variables.

    (a) Show that X1 +X2 has a normal distribution and specify its parameters.

    (b) Show that X1 X2 has the same distribution as X1 +X2.(c) Suppose X1 and X2 are no longer independent but each still has N (0, 1) distribution. Will

    X1 +X2 and X1 X2 be still independent?

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 41 of 43

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 4

    (d) Let X Gamma(,) distributed.1. Find the p.d.f. of an Inverse Gamma Distribution, i.e., find the p.d.f. of Y = 1X .

    2. Find the c.d.f. of the inverse gamma distribution as function of the c.d.f. of the gammadistribution.

    6. I Let Z1 and Z2 be two independentN (0, 1) random variables and let V1 2 (r1) and V2 2 (r2)be two independent chi-squared random variables. Which of the following random variables hasa t-distribution with degrees of freedom (r1 + r2)?

    (A)Z1 + Z2

    (V1 + V2) /(r1 + r2)

    (B)Z1 + Z2

    (V1 /r1 ) + (V2 /r2 )

    (C)Z1 + Z2

    2 (V1 + V2) /(r1 + r2)

    (D)Z1 Z2

    (V1 + V2) /(r1 + r2)

    (E)Z1V1 /r1

    +Z2V2 /r2

    II Let Z1 and Z2 be two independent standard normal random variables. Which of the followingcombinations of the two has also a standard normal random variable?

    (A) (Z1 + Z2) /2

    (B) Z1 + Z2(C) Z1/Z2(D) Z1 Z2(E) (Z1 Z2) /

    2

    III Let Z1 N (0, 1) and Z2 N (0, 1) be two random variables with correlation coefficient (Z1, Z2) = ,

    where 1 1. Let V be a 2 (r) random variable independent of Z1 and Z2.Which of the following has a t-distribution with r degrees of freedom?

    i.rZ1V 1/2

    ii.rZ2V 1/2

    iii.

    r

    2(Z1 + Z2)V

    1/2

    iv.

    r

    2 (+ 1)(Z1 + Z2)V

    1/2

    (A) All but i

    (B) All but ii

    (C) All but iii

    (D) All but iv

    (E) All

    IV Let X1, X2, . . . , Xn be i.i.d. (independent and identically distributed) Exp() random variables

    (m.g.f.: MXi(t) =(1 t

    )1). Which of the following describes the distribution of the sample

    mean:

    X =1

    n

    nk=1

    Xk?

    (A) X Exp()(B) X Exp(n)(C) X Exp(/n)(D) X Gamma(n, n)(E) X Gamma(n, n)Note: m.g.f. of Gamma: MXi(t) =

    (1 t

    )n).

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 42 of 43

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 4

    V Let X1, . . . , Xn be n independent and identically distributed Poisson random variables with mean. Describe the distribution of the sum of these random variables:

    S =n

    k=1

    Xk.

    (A) S Poisson(1)(B) S Poisson()(C) S Poisson(/n)(D) S Poisson(n)(E) Cannot be determined from the given information

    VI Suppose X1, X2, . . . , X20 are twenty independent random variables and are identically distributedas Exp(2). Determine Pr

    (X(20) > 1

    ).

    (A) Pr(X(20) > 1

    )= 0.94

    (B) Pr(X(20) > 1

    )= 0.95

    (C) Pr(X(20) > 1

    )= 0.96

    (D) Pr(X(20) > 1

    )= 0.97

    (E) Pr(X(20) > 1

    )= 0.98

    VII Let X1, X2, . . . , Xn be n i.i.d. (independent and identically distributed) random variables eachwith density:

    fX (x) = 2x, for 0 < x < 1,

    and zero otherwise.Determine E

    [X(n)

    ].

    (A) E[X(n)

    ]= n/(n+ 2)

    (B) E[X(n)

    ]= n/(n+ 1)

    (C) E[X(n)

    ]= 1

    (D) E[X(n)

    ]= 2n/(2n+ 1)

    (E) E[X(n)

    ]= 2n/(n+ 1)

    VIII In a 100-meter Olympic race, the running times are considered to be uniformly distributed between8.5 and 10.5 seconds. Suppose there are 8 competitors in the finals. The current world record is9.9 seconds.Determine the probability that the loser of the race will not break the world record.

    (A) 0.54

    (B) 0.64

    (C) 0.74

    (D) 0.84

    (E) 0.94

    -End of week 4 Tutorial Exercises-

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 43 of 43

  • Week 5 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 5, 2014

    1. An insurance company has a portfolio of 100 insurance contracts. The companys losses on thesecontracts are independent and identically distributed. Each loss X has an exponential distributionwith mean 5 000 and each policyholder pays a premium of 5 050. Notice that each policyholder paysan amount larger than its expected loss. Determine the probability that the aggregate loss of theinsurance company will exceed the total premiums collected. Use the normal approximation.

    2. Assume that X1, X2, . . . , Xn is a random sample from a population with density:

    fX (x|) ={

    2( x)2

    , for 0 < x < ;

    0, otherwise.

    Find an estimator for using the method of moments.

    3. Let X1, X2, . . . be a sequence of independent random variables with common mean E[Xk] = butdifferent variance V ar(Xk) = 2k. Suppose:

    1

    n2

    nk=1

    2k 0, as n.

    Prove Xp in probability.

    4. A drunkard executes a random walk in the following manner: each minute, he takes a step north orsouth, with probability 12 each, and his successive step directions are independent. Each step he takesis of length 50 cm. Use the central limit theorem to approximate the probability distribution of hislocation after one hour. Where is he most likely to be?

    5. Consider N independent random variables each having a binomial distribution with parameters n = 3and so that:

    Pr (Xi = k) =

    (3

    k

    )k (1 )nk ,

    for i = 1, 2, . . . , N and k = 0, 1, 2, 3, and zero otherwise. Assume that of these N random variablesn0 take the value 0, n1 take the value 1, n2 take the value 2, and n3 take the value 3 with N =n0 + n1 + n2 + n3.

    (a) Use maximum likelihood to develop a formula to estimate .

    (b) Assume that when you go to the races that you always bet on 3 races. You have taken a randomsample of your last 20 visits to the races and find that you had no winning bets on 11 visits, onewinning bet on 7 visits, and two winning bets on 2 visits. Estimate the probability of winning onany single bet.

    6. Assume that we have n independent observations y$ = [y1, y2, . . . , yn], each with the Pareto p.d.f.given by:

    fYi|(yi|;A) =A

    y+1i,

    where 0 <

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 5

    (a) Explain why the likelihood function L(; y,A) can be written as:

    nAn

    Gn(+1),

    where G = (y1y2 . . . yn)1/n is the geometric mean of the observations.(b) Explain why we can express the relationship between the posterior distribution, prior distribution

    and likelihood function as follows:

    pi(|y;A) fY |(y|;A)pi().(c) We assume our prior pdf for is such that log() is uniformly distributed, implying:

    pi() 1, 0 <

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 5

    11. (Problem from Rice) Suppose that X1, X2, . . . , X20 are independent random variables with densityfunctions:

    fX (x) = 2x, for 0 x 1,and zero otherwise. Let S = X1 + . . .+X20. Use the central limit theorem to approximate

    Pr (S 10) .

    12. Suppose that X follows a geometric distribution, with probability mass function:

    Pr(X = k) = p (1 p)k1 , if k = 1, 2, . . ., and zero otherwise,and assume a sample of size n.

    (a) Find the method of moments estimator of p.

    (b) Find the maximum likelihood estimator of p.

    13. The Pareto distribution is often used in economics as a model for a density function with a slowlydecaying tail. Its density is given by:

    fX(x|) = x0 x1, x x0, > 1,and zero otherwise. Assume that x0 > 0 is given and that x1, . . . , xn is a sample from this distribution.

    (a) Find the method of moments estimate of .

    (b) Find the maximum likelihood estimator of .

    14. Using the p.d.f. of a chi-squared distribution with one degree of freedom:

    fY (y) =exp(y/2)

    2piy, if y > 0,

    and zero otherwise, prove that the moment generating function of Y is given by:

    MY (t) = (1 2t)1/2.

    15. Prove that:

    tn1d N(0, 1) as n,

    where you might use that:

    limn

    (n+12

    )(n2

    ) =n2.

    16. Prove that the p.d.f. of a Snecdors F distribution, given by the transformation:

    F =U/n1V/n2

    ,

    where U 2(n1) and V 2(n2), is given by:

    fF (f) = nn1/21 nn2/22

    ((n1 + n2)/2)

    (n1/2) (n2/2) fn1/21

    (n2 + fn1)(n1+n2)/2

    .

    -End of week 5 Tutorial Exercises-

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 53 of 53

  • Week 6 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 6, 2014

    1. Let X1, X2, . . . , Xn be a random sample from an exponential distribution with:

    fX (x|) = ex, x > 0,and zero otherwise, where > 0. Find the value of a so that the interval from 0 to a

    /X provides a

    95% confidence interval for the parameter .

    2. Consider a random sampling from a normal distribution with mean and variance 2. Derive a100 (1 )% confidence interval of 2 when is known.

    3. This exercise aims to show that if we sample from a continuous distribution, a pivotal quantity alwaysexists. Let X1, X2, . . . , Xn be a random sample from a continuous distribution fX (x|). Denote thecorresponding cumulative distribution function by:

    FX (x|) = x

    fX (z|) dz.

    (a) Show that FX (X |) U (0, 1).Hint: Show that Pr(FX (X |) x) = x using the quantile function (inverse of the c.d.f.),then explain why x (representing a probability, taking values between 0 and 1) would have thisdistribution.

    (b) Show that W = log (1/FX (X |)) has an exponential distribution with mean 1. To do so, firstfind the c.d.f c.d.f. W .

    (c) From (b), deduce thatn

    k=1log (1/FX (Xk|)) has a Gamma distribution. Specify its parameters.

    (d) Use (c) to prove that there will always be a pivotal quantity when sampling from a continuousdistribution.

    4. (modified based on a past Institute of Actuaries exam.) Let X1, X2, . . . , Xn denote a random sampleof a Gamma(3,) and X is the sample mean.

    (a) Describe the distribution of the sample mean X.

    (b) Use (a) to construct a lower 95% confidence interval for , of the form (0, U) .

    (c) Use (a) to construct an upper 95% confidence interval for , of the form (L,).(d) Use (a) to construct a 95% confidence interval for , of the form (L,U) where L and U are not

    necessarily equal to those found in (b) and (c).

    (e) Evaluate the intervals in (b), (c) and (d) in the case for which the total of a random sample of 20observations yielded a value of

    20k=1 xk = 98.2.

    5. A local health club advertises that its members lose at least 10 pounds on the average during a 30-dayweight loss programme. After receiving a number of complaints from people who were enticed to jointhe club, the Better Business Bureau sends out a representative to the club to check out the claim.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 61 of 64

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 6

    The representative sampled the following nine (9) people who are enrolled in the program:

    Person Before-Weight After-Weight Diffrence1 157 150 72 174 167 73 198 187 114 205 198 75 147 146 16 165 153 127 212 199 138 169 171 -29 158 156 29

    i=1 xi 1,585 1,527 589i=1 x

    2i 283,457 262,465 590

    The representative of Better Business Bureau reported its findings in terms of a confidence interval.Construct the appropriate 95% confidence interval for the average weight loss for participants in theprogramme.

    6. (Past Institute of Actuaries Exam Question) Independent random samples of size n1 and n2 are takenfrom the normal populations N

    (1,21

    )and N

    (2,22

    ). Let the sample means be X1 and X2 and

    the sample variances be S21 and S22 . You may assume that Xl and S

    2l , l = 1, 2 are independent and

    distributed as follows:

    Xk N(k,

    2knk

    )and

    (nk 1)S2k2k

    2 (nk 1) for k = 1, 2.

    (a) It is required to construct a confidence interval for (1 2), the difference between the populationmeans.

    i. Suppose that 21 and 22 are known. State the distribution of

    (X1 X2

    )and write down a

    suitable pivotal quantity together with its sampling distribution. Hence, write down a 95%confidence interval for (1 2).

    ii. Suppose that 21 and 22 are unknown but are known to be equal. State the definition of a

    tk variable in terms of independent N(0, 1) and 2k variables and use it to develop a suitablepivotal quantity. Hence, write down a 95% confidence interval for (1 2).

    (b) It is required to construct a confidence interval for2122

    , the ratio of the population variances.

    State the definition of an Fk,l variable in terms of independent 2k and 2l variables and use it to

    develop a suitable pivotal quantity. Hence, obtain a 90% confidence interval for2122

    .

    (c) A regional newspaper included a consumer rights article comparing the cost of shopping in cornershops and supermarkets. The researchers investigated the price of a standard selection ofhousehold goods in a sample of 10 corner shops selected at random from the region, and in asample of 10 supermarkets selected at random from the region. The data yielded the followingvalues:

    Sample Mean Sample S.D.Corner Shops 22.55 1.22Supermarkets 19.72 0.96

    i. Use the result in part (a)(ii) to calculate a 95% confidence interval for (1 2), the differencebetween the population means (1 = corner shops, 2 = supermarkets).

    ii. Use your result in part (b) to calculate a 90% confidence interval for2122

    , the ratio of the

    population variances. Use this result to comment briefly on the assumption of equal variancesrequired for the confidence interval in part (c)(i).

    7. (IoA, Subject CT3, April 2005, No.6) In a survey conducted by a mail order company a random sampleof 200 customers yielded 172 who indicated that they were highly satisfied with the delivery time oftheir orders.Calculate an approximate 95% confidence interval for the proportion of the companys customers whoare highly satisfied with delivery times.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 62 of 64

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 6

    8. (IoA, Subject CT3, April 2005, No.8) The distribution of claim size under a certain class of policy ismodelled as a normal random variable, and previous years records indicate that the standard deviationis 120.

    (a) Calculate the width of a 95% confidence interval for the mean claim size if a sample of size 100 isavailable.

    (b) Determine the minimum sample size required to ensure that a 95% confidence interval for themean claim size is of width at most 10.

    (c) Comment briefly on the comparison of the confidence intervals in (a) and (b) with respect towidths and sample sizes used.

    9. (IoA, Subject CT3, April 2005, No.12 (partial))

    (a) A random variable Y has a Poisson distribution with parameter but there is a restriction thatzero counts cannot occur. The distribution of Y in this case is referred to as the zero-truncatedPoisson distribution.

    1. Show that the probability function of Y is given by:

    pY (y) =ye

    y!(1 e) , for y = 1, 2, 3, . . . ,

    and zero otherwise.

    2. Show that E[Y ] =

    1 e .(b) Answer the following.

    1. Let y1, . . . , yn denote a random sample from the zero-truncated Poisson distribution. Showthat the maximum likelihood estimate of may be determined by the solution to the followingequation:

    y e

    1 e = 0,and deduce that the maximum likelihood estimate is the same as the method of momentsestimate.

    2. Obtain an expression for the Cramer-Rao lower bound for the variance of an unbiased esti-mator of .

    10. (IoA, Subject 101, April 2004, No.12) For the estimation of a bernoulli probability p = Pr(success), aseries of n independent trials are performed and X represents the number of successes observed.

    (a) Write down the likelihood function L(p;x) and show that the maximum likelihood estimator(MLE) of p is p = X/n.

    (b) Answer the following.

    1. Determine the Cramer-Rao lower bound for the estimation of p.

    2. Show that the variance of the MLE is equal to the Cramer-Rao lower bound.

    3. Write down an approximate sampling distribution for p valid for large n.

    (c) In order to develop an approximate 95% confidence interval for p for large n, the following pivotalquantity is to be used:

    p pp(1 p)

    n

    N(0, 1).

    Assuming that this pivotal quantity is monotonic in p, show that rearrangement of the inequality:

    1.96

    1.12).

    13. A group of 500 insurance policies gave rise to a total of 83 claims during the last year. Assuming aPoisson model for the occurrence of claims, calculate an approximate 95% confidence interval for ,the claim rate per policy per year.

    14. Let Xi, i = 1, . . . , n denote a random sample of size n from a population with a uniform distributionon the interval (0, ). Let X(n) = max{X1, . . . , Xn} and define U = (1/)X(n).(a) Show that U has distribution function:

    FU (u) =

    0, if u < 0;un, if 0 u 1;1, if u > 1.

    (b) Because the distribution of U does not depend on , U is a pivotal quantity. Find the 95% lowerconfidence bound for .

    -End of week 6 Tutorial Exercises-

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 64 of 64

  • Week 7 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 7, 2014

    1. Explain carefully the distinction between each of the following pairs of terms:

    (a) null and alternative hypotheses;

    (b) one-tailed and two-tailed hypotheses;

    (c) simple and composite hypotheses;

    (d) Type I and Type II errors;

    2. Let X1, X2, . . . , X10 be a random sample of size 10 from a Poisson distribution with mean . Considerthe critical region C defined by:

    C =

    {(x1, x2, . . . , x10) :

    10k=1

    xk 3}.

    (a) Show that C is a best critical region for testing H0 : = 0.1 against Ha : = 0.5.

    (b) Determine the level of significance for this test.

    3. Let X1, X2, . . . , Xn be a random sample from the density function:

    fX (x|) = 12pi

    exp

    (12(x )2

    ).

    At a level of significance , find the best critical region (or most powerful test) for testing the simplenull H0 : = 0 against the simple alternative Ha : = 1.

    4. Let X1, X2, . . . , Xn be a random sample from a Poisson() distribution. In testing the simple nullH0 : = 0 against the simple alternative Ha : = 1, where 1 > 0 :

    (a) Find the best critical region (or most powerful test).

    (b) Determine the distribution of the test statistic under the null hypothesis.

    5. Past Institute exam

    (a) A manufacturing company produces screws of a particular size which are put into boxes of 150. Ona particular day a random sample of such boxes is taken from each of the morning and afternoonproduction runs. The number of defective screws found in each sampled box are given in thefollowing table:

    Morning 28 17 18 16 20 12 11 10 18 17 20 25Afternoon 19 15 22 21 9 14 17 13 22 9

    Table 2: Number of defectives per box

    1. Test for a difference between the mean number of defectives produced in the morning andafternoon (you may assume that the underlaying population variances are equal).

    2. Plot the data in an appropriate and simple way and comment briefly on the validity of thetest of part ii).

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 71 of 74

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 7

    (b) On another day screws are put into boxes of 100. The table below gives the number of defectivesin twenty boxes sampled from this days production run.

    5 15 18 12 8 7 9 14 11 106 18 14 9 18 12 11 5 18 12

    Table 3: Number of defectives per box of 100 screws

    1. Carry out a test to establish whether there is a difference between the proportions of defectivesproduced on the two days.

    2. Carry out a test to establish whether the proportion of defectives in boxes of 100 screws ismore than 9%.

    6. Past Institute examWhen comparing the mean premiums for policies issued by two companies, a two-sample t test ispreformed assuming equal population variances. The sample sizes and sample variances are given by:n1 = 25, s21 = 139.7n2 = 30, s22 = 76.6

    Preform an approximate F test at the 5% level to investigate the validity of the equal variance as-sumption.

    7. Past Institute examThe following data refers to an outbreak of botulism, a form of food poisoning that may be fatal. Eachsubject is a person who contracted botulism in the outbreak. The variables recorded are the subjectsage in years, the time in hours between eating the infected food and the first signs of illness (incubationperiod) and whether the subject survived (denoted by survival category Y) or died (denoted by survivalcategory N).

    Subject 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18Age (x) 29 39 44 37 42 17 38 43 51 30 32 59 33 31 32 32 36 50Incubation 13 46 43 34 20 20 18 72 19 36 48 44 21 32 86 48 28 16period (y)Survival N Y Y N N Y N Y N N N Y N N Y N Y N

    Died:

    x = 405

    y = 305

    x2 = 15517

    y2 = 10035Survived:

    x = 270

    y = 339

    x2 = 11396

    y2 = 19665

    (a) A scatterplot of incubation period against age is given below, in which different symbols are usedfor subjects who died and for subjects who survived.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 72 of 74

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 7

    15 20 25 30 35 40 45 50 55 6010

    20

    30

    40

    50

    60

    70

    80

    90

    Age

    Incu

    b Pe

    r

    A Plot of Incubation Period against age

    DiedSurvived

    Comment briefly on any relationships between age and incubation period for those subjects whodied and for those who survived.

    (b) Construct suitable dotplots to investigate any relationship between:

    1. age and survival, and

    2. incubation period and survival

    and make a brief informal comparison of the died and survived groups based on these dotplots.

    (c) Construct a 95% and 99% confidence intervals for the mean difference between the incubationperiod for subjects who survived and subjects who dies (i.e., take the mean incubation period forsubjects who survived minus the mean incubation period for subjects who died).Comment briefly on these confidence intervals.

    (d) 1. Construct a test to investigate whether the variances of the incubation period for subjectswho died and subjects who survived are equal.

    2. Comment on the validity of the assumptions that are required for the confidence intervalsgiven in part c) to be approximate.

    8. Past Institute examIt is desired to investigate the level of premium charged by two companies for contents policies forhouses in a certain area. Random samples of 10 houses insured by company A are compared with 10similar houses insured by company B. The premiums charged in each case are as follows:

    Company A 117 154 166 189 190 202 233 263 289 331Company B 142 160 166 188 221 241 276 279 284 302

    For these data:

    A = 2, 134,

    A2 = 494, 126,

    B = 2, 259,

    B2 = 541, 463.

    (a) Illustrate the data given above on a suitable diagram and hence comment briefly on the validityof the assumptions required for a two-sample t test for the premiums of these two companies.

    (b) Assuming that the premiums are normally distributed, carry out a formal test to check that it isappropriate to apply a two-sample t test to these data.

    (c) Test whether the level of premiums charged by company B was higher than that charged bycompany A. State your p-value and conclusions clearly.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 73 of 74

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 7

    (d) Calculate a 95% confidence interval for the difference between the proportions of premiums ofeach company that are in excess of 200. Comment briefly on your result.

    (e) The average premium charged by company A in the previous year was 170. Formally testwhether company A appears to have increased its premium since the previous year.

    -End of week 7 Tutorial Exercises-

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 74 of 74

  • Week 8 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 8, 2014

    1. Explain carefully the distinction between the significance level and power.

    2. Let X have a Bernoulli distribution where = Pr (X = 1). Take a random sample of size n = 10 fromthis Bernoulli distribution and consider the test:

    H0 : 1/2 versus Ha : > 1/2.

    Using the critical region C =

    {(X1, X2, . . . , X10) :

    10k=1

    xk 6}:

    (a) Find the power function and sketch it.

    (b) Find the size of this test.

    3. Recall from week 7 tutorial material question 2:Let X1, X2, . . . , X10 be a random sample of size 10 from a Poisson distribution with mean . Considerthe critical region C defined by:

    C =

    {(x1, x2, . . . , x10) :

    10k=1

    xk 3}.

    Determine the power of the test under Ha.

    4. Recall from week 7 tutorial material question 3:Let X1, X2, . . . , Xn be a random sample from the density function:

    fX (x|) = 12pi

    exp

    (12(x )2

    ).

    Determine the power of this test.

    5. Prove:

    kj=1

    nji=1

    (xij x)2 =k

    j=1

    nji=1

    (xij xj)2 +k

    j=1

    nj(xj x)2

    where

    xj =

    nji=1

    xijnj

    x =k

    j=1

    nji=1

    xijN

    =k

    j=1

    njxjN

    Hint: 1) Rewrite the left side by adding and subtracting within the squares xj ;2) Rewrite is using Binomial expansion (see F&T page 2).

    6. Given is that:

    =m4 4m1m3 + 6m2m21 3m31

    (m2 m21)2= h(m1,m2,m3,m4)

    using the m.g.f. one can easily show that:

    E[[m1 m2 m3 m4]$] = [0 1 0 3]$

    Thus:n [m1 m2 1 m3 m4 3] N(0,).

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 81 of 82

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 8

    (a) Find = E[n [m1 m2 1 m3 m4 3] [m1 m2 1 m3 m4 3]$

    ].

    (b) Find h(m1,m2,m3,m4).(c) Show h(0, 1, 0, 3) = [0 6 0 1]$.(d) Let Xi Bin(n = 10, p = 0.2) be i.i.d. for i = 1, . . . , n. In the table below are some sum-

    mary statistics of four samples. For which samples can you reject that the sample is normallydistributed? Use the chi-squared approximation.

    sample 1 sample 2 sample 3 sample 4n 10 25 50 100x 1.6 2.04 1.8 1.92n

    i=1 x2i 24.4 34.96 56 167.36n

    i=1 x3i 31.92 14.8 6 116.22n

    i=1 x4i 161.39 140.3 157.28 822.76n

    i=1(xi x)2 15.25 17.14 31.11 87.17ni=1(xi x)3 19.95 7.25 3.33 60.53ni=1(xi x)4 100.87 68.77 87.38 428.52

    (e) For another sample with n = 100 observations we get the value of the test statistic equals 5.4.Find the p-value of this test.

    Note that if Z N(0,1) then: E [Z] = 0, E [Z2] = 1, E [Z3] = 0, E [Z4] = 3, E [Z5] = 0, E [Z6] = 15,E[Z7]= 0, E

    [Z8]= 105.

    7. The following observations represent weight loss (in pounds) of men of similar physique, metabolicactivity, and so on, after a certain amount of time on three types of diet programs: A, B, and C.

    Diet ProgramA B C3 2 77 4 104 6 85 6 96 5 4- 3 8- 4 -

    Test for the differences in the mean weight loss between the three diet programs. State any assumptionsyou make. Provide the point estimates estimates of the mean losses, and the ANOVA table used topartition the various sources of variation.

    8. Past Institute examThe following test concerning the mean claim amount () for a certain class of policy:

    H0 : = 200 v.s. H1 : .= 200,is to be preformed. A random sample of 50 claims is examined and yields a mean amount of 207 anda standard deviation of 42.Calculate the approximate p-value for the test.

    -End of week 8 Tutorial Exercises-

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 82 of 82

  • Week 9 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 9, 2014

    1. A group of 1, 725 school children were cross-classified according to their intelligence and their mannerof clothing. A result of this classification is given below:

    dull intelligent very capablevery well clothed 81 322 233well clothed 141 457 153poorly clothed 127 163 48

    Test for independence using a 1% level of significance.

    2. (a) Past Institute examA 2 2 contingency table was set up to investigate whether or not two classifications criteria areindependent and resulted in the following data:

    I IIA 22 28 50B 28 22 50

    50 50 100

    Calculate the observed 2 test statistic and state an approximate conclusion concerning the in-dependence of the two criteria.

    (b) (Added to the past Institute exam) Preform the Pearsons chi-square test using R.

    3. Continued from previous question. Using the Fishers exact test:

    (a) Write down the corresponding hypothesis and test statistic.

    (b) Calculate the probability mass function of a Hypergeometric distribution with N = 100, M = 50,n = 50 and x = 22.

    (c) Use R to calculate show that the cumulative density function of a Hypergeometric distributionwith N = 100, M = 50, n = 50 and x = 22 equals 0.15867.

    (d) Preform the hypothesis testing.

    (e) Check your answer using R;

    4. Compare the results in question 2. and 3. and explain the differences/similiraties.

    5. Past Institute examA particular area in a town suffers a high burglary rate. A sample of 100 streets is taken, and in eachof the sample streets, a sample of six similar houses is taken. The table below shows the number ofsampled houses, which have had burglaries during the last six months.

    No. of houses burgled x 0 1 2 3 4 5 6No. of streets f 39 38 18 4 0 1 0

    (a) 1. State any assumptions needed to justify the use of a binomial model for the number of sampledhouses per street which have been burgled during the last six months.

    2. Derive the maximum likelihood estimator of p, the probability that a house of the typesampled has been burgled during the last six months.

    3. Fit the binomial model using your estimate of p, and, without doing a formal test, commenton the fit.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 91 of 92

  • ACTL2002 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 9

    (b) An insurance company works on the basis that the probability of a house being burgled over asix month period is 0.18. Carry out a test to investigate whether the binomial model with thisvalue of p provides a good fit for the data.

    6. Check your answer of question 5b) using R.

    7. Does education really make a difference in how much money you will earn?4 Researchers randomlyselected 100 people from each of three income categoriesmarginally rich, comfortably rich, andsuper richand recorded their education levels. The data are summarised in the table that follows.

    Highest Marginally ComfortablyEducation Level Rich Rich Super Rich Total

    No college 32 20 23 75Some college 13 16 1 30

    Undergraduate degree 43 51 60 154Postgraduate study 12 13 16 41

    Total 100 100 100 300

    (a) Describe the independent multinomial populations whose proportions are compared in the 2

    analysis.

    (b) Provide a table with the observed proportions.

    (c) Do the data indicate that the proportions in the various education levels differ for the three incomecategories? Test at the = 0.01 level.

    (d) Construct a 95% confidence interval for the difference in proportions with at least an undergrad-uate degree for individuals who are marginally and super rich. Interpret the interval.

    (e) Use R to check the answer in c) and d).

    -End of week 9 Tutorial Exercises-

    4Extended version of [W+] 14.25

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 92 of 92

  • Week 10 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 10, 2014

    1. Consider the exponential regression model with one independent variable:

    Yi = xie$i for each i = 1, 2, . . . , n,

    where the +is are independent and identically distributed normal random variables with E[i] = 0 andV ar(+i) = 2.

    (a) Rewrite the exponential regression model as a linear regression model with parameters and and describe the relationship between and and the relationship between and .Derive the following from the linear regression model:

    (b) =n

    i=1 ci log(yi) where ci = (xi x)/Sxx and Sxx =n

    i=1(xi x)2.(c) E[|X = x] = (d) V ar(|X = x] = 2/Sxx(e) (|X = x) N(1,2/Sxx)(f) E[|X = x] =

    (g) V ar(|X = x) = 2(1

    n+

    x2

    Sxx

    )(h) (|X = x) N

    (,2

    (1

    n+

    x2

    Sxx

    ))(i) Cov(, |X = x) = 2xSxx(j) What are the distributions of Y , and conditional on (X = x) using the LSE estimates in

    the linear regression model and the relationship found in question (a)?

    2. Forensic scientists use various methods for determining the likely time of death from post-mortemexamination of human bodies. A recently suggested objective method uses the concentration of acompound (3-methoxytyramine or 3-MT) in a particular part of the brain.In a study of the relationship between post-mortem interval and the concentration of 3-MT, samplesof the approximate part of the brain were taken from coroners cases for which the time of death hadbeen determined form eye-witness accounts. The intervals (x; in hours) and concentrations (y; inparts per million) for 18 individuals who were found to have died from organic heart disease are givenin the following table. For the last two individuals (numbered 17 and 18 in the table) there was noeye-witness testimony directly available, and the time of death was established on the basis of otherevidence including knowledge if the individuals activities.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 101 of 106

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 10

    Observation Interval Concentrationnumber (x) (y)1 5.5 3.262 6.0 2.673 6.5 2.824 7.0 2.805 8.0 3.296 12.0 2.287 12.0 2.348 14.0 2.189 15.0 1.9710 15.5 2.5611 17.5 2.0912 17.5 2.6913 20.0 2.5614 21.0 3.1715 25.5 2.1816 26.0 1.9417 48.0 1.5718 60.0 0.61

    x = 337

    x2 = 9854.5

    y = 42.98

    y2 = 109.7936

    xy = 672.8

    In this investigation you are required to explore the relationship between concentration (regarded theresponds/dependent variable) and interval (regard as the explanatory/independent variable).

    (a) Construct a scatterplot of the data. Comment on any interesting features of the data and discussbriefly whether linear regression is appropriate to model the relationship between concentrationof 3-MT and the interval from death.

    (b) Calculate the correlation coefficient for the data, and use it to test the null hypothesis that thepopulation correlation coefficient is equal to zero.

    (c) Calculate the equation of the least-squares fitted regression line and use it to estimate the con-centration of 3-MT:

    1. after 1 day and

    2. after 2 days.

    Comment briefly on the reliability of these estimates.

    (d) Calculate a 99% confidence interval for the slope of the regression line. Using this confidenceinterval, test the hypothesis that the slope of the regression line is equal to zero. Comment onyour answer in relation to the answer given in part b) above.

    3. Past Institute exam.Consider a linear regression model in which responses Yi are uncorrelated and have expectations xiand common variance 2 (i = 1, . . . , n), i.e. Yi is modelled as a linear regression through the origin:

    E[Yi|xi] = xi and V (Yi|xi) = 2 (i = 1, . . . , n).

    (a) 1. Show that the least squares estimator of is 1 =n

    i=1 xiYi/n

    i=1 x2i .

    2. Derive the expectation and variance of 1 under the model.

    (b) An alternative to test the least squares estimator in this case is:

    2 =ni=1

    Yi/ni=1

    xi = Y /x.

    1. Derive the expectation and variance of 2 under the model.

    2. Show that the variance of the estimator 2 is at least as large as that if the least squaresestimator 1.

    (c) Now consider an estimator 3 of which is a linear function of the responses, i.e. an estimatorwhich has the form 3 =

    ni=1 aiYi, where a1, . . . , an are constants.

    1. Show that 3 is unbiased for ifn

    i=1 aixi = 1, and that the variance of 3 isn

    i=1 a2i

    2.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 102 of 106

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 10

    2. Show that the estimators 1 and 2 above may be expressed in the form 3 =n

    i=1 aiYi and

    hence verify that 1 and 2 satisfy the condition for unbiasedness in c)i).

    3. It can be shown that, subject to conditionn

    i=1 aixi = 1, the variance of 3 is minimised bysetting ai = xi/

    ni=1 x

    2i . Comment on this result.

    4. A university wishes to analyse the performance of its students on a particular degree course. It recordsthe scores obtained by a sample of 12 students at the entry to the course, and the scores obtained intheir final examinations by the same students. The results are as follows:

    Student A B C D E F G H I J K LEntrance exam score x (%) 86 53 71 60 62 79 66 84 90 55 58 72Final paper score y (%) 75 60 74 68 70 75 78 90 85 60 62 70

    x = 836

    y = 867

    x2 = 60, 016

    y2 = 63, 603

    (x x)(y y) = 1, 122

    (a) Calculate the fitted linear regression equation of y on x.

    (b) Assuming the full normal model, calculate an estimate of the error variance 2 and obtain a 90%confidence interval for 2.

    (c) By considering the slope parameter, formally test whether the data is positively correlated.

    (d) Find a 95% confidence interval for the mean finals paper score corresponding to an individualentrance score of 53.

    (e) Test whether this data come form a population with a correlation coefficient equal to 0.75.

    (f) Calculate the proportion of variance explained by the model. Hence, comment on the fit of themodel.

    5. Complete the following ANOVA table for a simple linear regression with 60 observations:

    Source D.F. Sum of Squares Mean Squares F-Ratio

    Regression

    Error 8.2

    Total 639.5

    6. Suppose you are interested in relating the accounting variable EPS (earnings per share) to the marketvariable STKPRICE (stock price). Then, a regression equation was fitted using STKPRICE as theresponse variable with EPS as the regressor variable. Following is the computer output from yourfitted regression. You are also given that: x = 2.338, y = 40.21, Sx = 2.004, and Sy = 21.56.

    Regression Analysis

    The regression equation is

    STKPRICE = 25.044 + 7.445 EPS

    Predictor Coef SE Coef T p

    Constant 25.044 3.326 7.53 0.000

    EPS 7.445 1.144 6.51 0.000

    Analysis of Variance

    SOURCE DF SS MS F p

    Regression 1 10475 10475 42.35 0.000

    Error 46 11377 247

    Total 47 21851

    (a) Calculate the correlation coefficient of EPS and STKPRICE.

    (b) Estimate the STKPRICE given an EPS of $2. Provide a 95% confidence interval of your estimate.

    (c) Provide a 95% confidence interval for the slope coefficient .

    (d) Compute s and R2.

    (e) Describe how you would check if the errors have constant variance.

    (f) Perform a test of the significance of EPS in predicting STKPRICE at a level of significance of 5%.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 103 of 106

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 10

    (g) Test the hypothesis H0 : = 24 against Ha : > 24 at a level of significance of 5%.

    7. (Modified from an Institute of Actuaries exam problem)An insurance company issues house buildings policies for houses of similar size in four different post-code regions A, B, C, and D. An insurance agent takes independent random samples of 10 housebuildings policies for houses of similar size in each of the four regions. The annual premiums (indollars) were as follows:

    Region A : 229 241 270 256 241 247 261 243 272 219(x = 2, 479,

    x2 = 617, 163

    )Region B : 261 269 284 268 249 255 237 270 269 257(

    x = 2, 619,

    x2 = 687, 467)

    Region C : 253 247 244 245 221 229 245 256 232 269(x = 2, 441,

    x2 = 597, 607

    )Region D : 279 268 290 245 281 262 287 257 262 246(

    x = 2, 677,

    x2 = 718, 973)

    Perform a one-way analysis of variance at the 5% level to compare the premiums for all four regions.State briefly the assumptions required to perform this analysis of variance.

    8. You are given the following one-way ANOVA model:

    Yij = + i + ij , for i = 1, . . . , I and j = 1, . . . , J

    where the error terms ij are i.i.d. normal random variables with mean 0 and common variance 2.Using fundamental principles of maximum likelihood, derive the maximum likelihood estimates for allparameters in the model.

    9. For the one-way ANOVA model derive the following maximum likelihood estimators:

    (a) = Y =

    Ii=1

    nij=1

    Yij

    Ii=1

    ni

    =

    Ii=1

    nij=1

    Yij

    N

    (b) i = Y i. Y =

    nij=1

    Yij

    ni Y

    10. Suppose that Y represents a single observation from the probability density given by:

    fY (y|) ={

    y1, 0 < y < 10, elsewhere.

    Find the most powerful test with significance level = 0.05 to test H0 : = 2 against Ha : = 1.

    11. Past Institute Exam (April 2005)As part of an investigation into health service funding a working party was concerned with the issue ofwhether mortality could be used to predict sickness rates. Data on standardised mortality rates andstandarised sickness rates collected for a sample of 10 regions and are shown in the table below:

    Region Mortality rate m (per 100,000) Sickness rate s (per 100,000)1 125.2 206.82 119.3 213.83 125.3 197.24 111.7 200.65 117.3 189.16 100.7 183.67 108.8 181.28 102.0 168.29 104.7 165.210 121.1 228.5

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 104 of 106

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 10

    Data summaries:m = 1136.1,

    m2 = 129, 853.03,

    s = 1934.2,

    s2 = 377, 700.62, and

    ms = 221, 022.58.

    (a) Calculate the correlation coefficient between the mortality rates and the sickness rates and de-termine the probability-value for testing whether the underlaying correlation coefficient is zeroagainst the alternative that it is positive.

    (b) Noting the issue under investigation, draw an appropriate scatterplot for these data and commenton the relationship between the two rates.

    (c) Determine the fitted linear regression of sickness rate on mortality rate and test whether theunderlaying slope coefficient can be considered to be as large as 2.0.

    (d) For a region with mortality rate 115.0, estimate the expected sickness rate and calculate 95%confidence limits for this expected rate.

    12. Past Institute Exam (September 2005)The data given in the following table are the number of deaths from AIDS in Australia for 12 consecutivequarters starting from the second quarter of 1983.

    Quarter (i) 1 2 3 4 5 6 7 8 9 10 11 12Number of deaths (ni) 1 2 3 1 4 9 18 23 31 20 25 37

    (a) 1. Draw a scatterplot of the data.

    2. Comment on the nature of the relationship between the number of deaths and the quater inthis early phase of the epidemic.

    (b) A statistician has suggested that a model of the form:

    E[ni] = i2

    might be appropriate for these data, where is a parameter to be estimated from the data above.She has proposed two methods for estimating , and these are given in part i. and ii. below.

    1. Show that the least squares estimate of , obtained by minimising q =12

    i=1(ni i2)2 isgiven by:

    =

    12i=1 i

    2ni12i=1 i

    4.

    2. Show that an alternative (weighted) least squares estimate of , obtained by minimising

    q =12

    i=1(nii2)2

    i2 is given by:

    =

    12i=1 ni12i=1 i

    2.

    3. Noting that12

    i=1 i4 = 60, 710 and

    12i=1 i

    2 = 650, calculate and for the data above.

    (c) To assess whether the single parameter model which was used in part b) is appropriate for thedata, a two parameter model is considered. The model is of the form:

    E[Ni] = i

    for i = 1, . . . , 12.

    1. To estimate the parameters and , a simple linear regression model

    E[Yi] = + xi

    is used, where xi = log(i) and Yi = log(Ni) for i = 1, . . . , 12. Relate the parameters and to the regression parameters and .

    2. The least squares estimates of and are -0.6112 and 1.6008 with standard errors 0.4586and 0.2525 respectively (you are not asked to verify these results).Using the value for the estimate , conduct a formal statistical test to assess whether theform of the model suggested in (b) is adequate.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 105 of 106

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 10

    13. Past institute ExamConsider the following data, which comprise of four groups sizes (y), each comprising four observations,In scenario I, information is also given on the sum assured under the policy concerned - the sum assuredis the same for all four policies in a group. In scenario II, we regard the policies in the different groupsas having been issued by four different companies - the policies in a group are all issued the samecompany.All monetary amounts are in units of 10, 000. Summaries of the claim sizes in each group are givenin a second table.

    Group 1 2 3 4Claim sizes y 0.11 0.46 0.52 1.43 1.48 2.05 1.52 2.36

    0.71 1.45 1.84 2.47 2.38 3.31 2.95 4.08I: sum assured x 1 2 3 4II: Company A B C D

    Summaries of claim sizes:

    Group 1 2 3 4y 2.73 6.26 9.22 10.91y2 2.8303 11.8018 23.0134 33.2289

    (a) In scenario I, suppose we adopt the linear regression model

    Yi = + xi + +i

    where Yi is the ith claim size and xi is the corresponding sum assured, i = 1, . . . , 16.

    1. Calculate the total sum of squares and its partition into the regression (model) sum of squaresand the residual (error) sum of squares.

    2. Fit the model and calculate the fitted values for the first claim size of group 1 (namely 0.11)and the last claim size of group 4 (namely 4.08).

    3. Consider a test of the hypothesis H0 : = 0 against a two-sided alterative. By preforming ap-propriate calculations, assess the strength of the evidence against this no linear relationshiphypothesis.

    (b) In scenario II, suppose we adopt the analysis of variance model

    Yij = + i + eij

    where Yij is the jth claim size for company i and i is the ith company effect, i = 1, 2, 3, 4 andj = A,B,C,D.

    1. Calculate the partition of the total sum of squared into the between companies (model)sum of squares and the within companies (residual/error) sum of squares.

    2. Fit the model.

    3. Calculate the fitted values for the first claim size of group 1 and the last claim size of group4.

    4. Consider a test of hypothesis H0 : i = 0, i = A,B,C,D against a general alternative.By preforming appropriate calculations, assess the strength of the evidence against this nocompany effects hypothesis.

    -End of week 10 Tutorial Exercises-

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 106 of 106

  • Week 11 Australian School of Business

    Probability and StatisticsTutorial Exercises, Week 11, 2014

    1. Consider the regression model

    Yk = xk + k, for each k = 1, 2, . . . , n,

    that is, the regression with one regressor variable variable but without the intercept term. This modelis called regression through the origin because the true regression line passes through the point (0,0).Derive the least squares estimate of .Now, consider the quadratic regression model passing through the origin;

    Yk = x2k + k , for each k = 1, 2, . . . , n.

    Use the previous result to determine the least squares estimate of .

    2. Use the following steps to establish a relationship between the coefficient of determination and thecorrelation coefficient:

    (a) Show that:

    yk y = (xk x) .

    (b) Use this result to show that:

    SSM =n

    k=1

    (yk y)2 = 2s2x (n 1) .

    where s2x is the sample variance of X .

    (c) Use the previous result to establish:

    R2 = 2s2xS2y

    = r2.

    where s2x, s2y is the sample variance of X and Y , respectively.

    3. In the regression model Yk = + xk + k, use algebra to establish the following results:

    (a) R2 = 1 n 2n 1

    s2

    s2y, where s2y is the sample variance of Y .

    (b) s = sy

    (1 r2) n 1

    n 2 , where sy is the sample standard deviation of Y .

    (c) t()=

    se() = n 2

    r2

    1 r2

    4. (a) Write down the design matrix for the simple linear regression model.

    (b) Write out the matrix X$X for the simple linear regression model.

    (c) Write out the matrix X$Y for the simple linear regression model.

    (d) Write out the matrix (X$X)1 for the simple linear regression model.

    (e) Calculate = (X$X)1X$Y using your results above.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 111 of 115

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 11

    5. The following model was fitted to a sample of supermarkets in order to explain their profit levels:

    y = 0 + 1x1 + 2x2 + 3x3 +

    where

    y = profits, in thousands of dollars

    x1 = food sales, in tens of thousands of dollars

    x2 = nonfood sales, in tens of thousands of dollars, and

    x3 = store size, in thousands of square feet.

    The estimated regression coefficients are given below:

    1 = 0.027 and 2 = 0.097 and 3 = 0.525.Which of the following is TRUE?

    (A) A dollar increase in food sales increases profits by 2.7 cents.

    (B) A 2.7 cent increase in food sales increases profits by a dollar.

    (C) A 9.7 cent increase in nonfood sales decreases profits by a dollar.

    (D) A dollar decrease in nonfood sales increases profits by 9.7 cents.

    (E) An increase in store size by one square foot increases profits by 52.5 cents.

    6. In a regression model of three explanatory variables, twenty-five observations were used to calculatethe least squares estimates. The total sum of squares and regression sum of squares were found to be666.98 and 610.48, respectively. Calculate the adjusted coefficient of determination.

    (A) 89.0%

    (B) 89.4%

    (C) 89.9%

    (D) 90.3%

    (E) 90.5%

    7. In a multiple regression model given by:

    y = 0 + 1x1 + . . .+ p1xp1 + ,

    which of the following gives a correct expression for the coefficient of determination?

    I. SSMSST

    II. SSTSSESST

    III. SSMSSE

    (A) I only

    (B) II only

    (C) III only

    (D) I and II only

    (E) I and III only

    8. The ANOVA table output from a multiple regression model is given below:

    ANOVA TableSource D.F. SS MS F-Ratio Prob(> F)Regression 5 13326.1 2665.2 13.13 0.000Error 42 8525.3 203.0

    Total 47 21851.4

    Compute the adjusted coefficient of determination.

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 112 of 115

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 11

    (A) 52%

    (B) 56%

    (C) 61%

    (D) 63%

    (E) 68%

    9. You have information on 62 purchases of Ford automobiles. In particular, you have the amount paidfor the car (y) in hundreds of dollars, the annual income of the individuals (x1) in hundreds of dollars,the sex of the purchaser (x2, 1 = male and 0 = female), and whether or not the purchaser graduatedfrom college (x3, 1 = yes and 0 = no) . After examining the data and other information available, youdecide to use the regression model:

    y = 0 + 1x1 + 2x2 + 3x3 + .

    You are given that:

    (X$X

    )1=

    0.109564 0.000115 0.035300 0.0268040.000115 0.000001 0.000115 0.0000910.035300 0.000115 0.102446 0.0239710.026804 0.000091 0.023971 0.083184

    and the mean square error for the model is s2 = 30106. Calculate se

    (2).

    (A) 0.17

    (B) 17.78

    (C) 50.04

    (D) 55.54

    (E) 57.43

    10. Suppose in addition to the information in question 9., you are given:

    X$Y =

    9 558

    4 880 9377 3966 552

    .Calculate the expected difference in the amount spent to purchase a car between a person who gradu-ated from college and another one who did not.

    (A) 233.5

    (B) 1 604.3

    (C) 2 195.3

    (D) 4 920.6

    (E) 6 472.1

    11. A regression model of y on four independent variables x1, x2, x3 and x4 has been fitted to a dataconsisting of 212 observations and the computer output from estimating this model is given below:

    Regression Analysis

    The regression equation is

    y = 3894 - 50.3 x1 + 0.0826 x2 + 0.893 x3 + 0.137 x4

    Predictor Coef SE Coef T

    Constant 3893.8 409.0 9.52

    x1 -50.32 9.062 -5.55

    x2 0.08258 0.02133 3.87

    x3 0.89269 0.04744 18.82

    x4 0.13677 0.05303 2.58

    Which of the following statement is NOT true?

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 113 of 115

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 11

    (A) All the explanatory variables has a positive influence on y.

    (B) The variable x1 is a significant variable.

    (C) The variable x2 is a significant variable.

    (D) The variable x3 is a significant variable.

    (E) The variable x4 is a significant variable.

    12. In a multiple regression model, which of the following gives a correct expression for the unbiasedestimate of 2?

    (A) 1np+1(Y X

    )$ (Y X

    )(B) 1np+1

    (Y Y

    )$ (Y Y

    )(C) 1n1Y

    $Y

    (D) 1n1(Y Y

    )$ (Y Y

    )(E) 1np

    (Y X

    )$ (Y X

    )Note: p is the rank of X .

    13. The estimated regression model of fitting life expectancy from birth (LIFE EXP) on the countrysgross national product (in thousands) per population (GNP) and the percentage of population livingin urban areas (URBAN%) is given by:

    LIFE EXP = 48.24 + 0.79 GNP + 0.154 URBAN%.

    For a particular country, its URBAN% is 60 and its GNP is 3.0. Calculate the estimated life expectancyat birth for this country.

    (A) 49

    (B) 50

    (C) 57

    (D) 60

    (E) 65

    14. What is the use of the scatter plot of the fitted values and the residuals?

    (A) to examine the normal distribution assumption of the errors

    (B) to examine the goodness of fit of the regression model

    (C) to examine the constant variation assumption of the errors

    (D) to test whether the errors have zero mean

    (E) to examine the independence of the errors

    15. For the case of the multiple regression model, show:

    (a) E[|X = x] = (b) V ar(|X = x) = 2(X$X)1

    16. (a) Suggest why H = X(X$X)1X$ is called the hat matrix.

    (b) Show that HH$ = H2 = H .

    (c) Explain why:

    yi = hiiyi +j '=i

    hijyj,

    where hij is the (i, j)th element of H .

    c Katja Ignatieva School of Risk and Actuarial Studies, ASB, UNSW Page 114 of 115

  • ACTL2131 & ACTL5101 Probability and Statistics Tutorial Exercises, Week 11

    (d) Show that the (i, j)th element of H is given by:

    1

    n+

    (xi x)(xj x)Sxx

    for the special case of the simple linear regression model.

    (e) Using H , write down an expression for the vector of residuals e = Y Y . (Were back in themultiple linear regression setting.)

    (f) Using H , calculate E[e|X = x].(g) Using H , calculate V ar(e|X = x).(h) Explain why the ith standardised residual in a multiple regressionmodel is given by ei/(s

    1 hii),

    where

    s =

    1n p

    nj=1

    e2j .

    17. Use R or Excel5 to carry out the following regression calculations.

    The accompanying dataset gives, for 18 countries, data on total expenditures on education as a per-centage of gross national product (y), per capita income (x1), median educational attainment (in years)of the population over 25 years of age (x2), and the ratio of the population aged 014 to the totalpopulation (x3). Estimate the multiple regression model:

    Y = 0 + 1x1 + 2x2 + 3x3 + .

    Carry out all appropriate tests to examine the significance of each predictor/regressor/independentvariable and to test for the validity of assumptions typical in a regression model.

    Name of Dataset in Excel format: EDUC.xls

    -End of week 11 Tutorial Exercises-

    5To apply linear regression in Excel you have to add a toolbox. Proceed in the following way. Go to menu in the upper leftof Excel, choose Excel options (lower right, besides Exit Excel)