Home page for accesible maths

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

Quiz questions

  1. 1.

    Events Decide which of the following statements are true?

    (i) If A and B are exclusive events then so are Ac and Bc.

    (ii) A\B=B\A.

    (iii) ABc=A\B.

    (A) TTT, (B) FFT, (C) FTF, (D) TFF, (E) FFF.

  2. 2.

    Vets An experiment is carried out where the next animal to be brought into a vet is observed. Suppose the sample space Ω contains three outcomes, Ω={ cat, dog, rabbit }. Assuming P satisfies axiom 3, decide whether the following are valid probabilities.

    (i) P({cat})=P({dog})=P({rabbit})=1/4.

    (ii) P({cat})=1/6, P({dog})=1/3, P({rabbit})=1/2.

    (iii) P({cat})=0.3, P({dog})=-0.1, P({rabbit})=0.8.

    (A) TTT, (B) TTF, (C) FTF, (D) FTT, (E) FFF.

  3. 3.

    Conditional probabilities Which of the following statements are true?

    (a) If A and B are exclusive events then P(A|B)=0.

    (b) If AB are events then P(A|B)=P(A)/P(B).

    (c) If AB are events then P(B|A)=1.

    (A) TTT, (B) TTF, (C) TFT, (D) FTT, (E) FFF.

  4. 4.

    Vectorised command Assuming that x and y are vectors of the same length, consider the following code:

    m <- rep(0,length(x))

    for (i in 1:length(x)) {

    m[i] <- max(x[i],y[i])

    }

    What operation will produce the same vector m without the need for a for loop?

    1. (A)

      m <- max(x,y)

    2. (B)

      m <- x*(x >=y) + y*(x<y)

    3. (C)

      m <- y*(x >=y) + x*(x<y)

    4. (D)

      m <- x*(max(x,y)==x) + y*(max(x,y)==y)

    5. (E)

      m <- x*(max(x,y)==x) + y*(max(x,y)!=x)

  5. 5.

    Recursion relationship II A sequence bn is defined by the inhomogeneous recursion relationship

    bn=32bn-1-bn-2+k

    where b1=1,b2=1/2.

    Adapt the recursion function to compute the first N values of an inhomogeneous recursion relationship and hence find the value of k for which b100=0 (or very close to 0).

    (A) k=0.3319, (B) k=-0.1323,  (C) k=1.006,  (D) k=-1.006,  (E) k=0.4561