Exam 3

  1. Question

    Given the following information:

    orange ++ orange ++ pineapple = 314314
    pineapple ++ banana ++ banana = 358358
    orange ++ banana ++ banana = 146146

    Compute:

    banana ++ orange ++ pineapple = ?\text{?}

    1. 314314
    2. 246246
    3. 336336
    4. 262262
    5. 316316

    Solution

    The information provided can be interpreted as the price for three fruit baskets with different combinations of the three fruits. This corresponds to a system of linear equations where the price of the three fruits is the vector of unknowns xx:

    x1=x_1 = banana x2=x_2 = orange x3=x_3 = pineapple

    The system of linear equations is then: (021201210)(x1x2x3)=(314358146) \begin{aligned} \left( \begin{array}{rrr} 0 & 2 & 1 \\ 2 & 0 & 1 \\ 2 & 1 & 0 \end{array} \right) \cdot \left( \begin{array}{r} x_1 \\ x_2 \\ x_3 \end{array} \right) & = & \left( \begin{array}{r} 314 \\ 358 \\ 146 \end{array} \right) \end{aligned} This can be solved using any solution algorithm, e.g., elimination: x1=56,x2=34,x3=246. x_1 = 56, \, x_2 = 34, \, x_3 = 246. Based on the three prices for the different fruits it is straightforward to compute the total price of the fourth fruit basket via:

    banana ++ orange ++ pineapple =
    x1x_1 ++ x2x_2 ++ x3x_3 =
    5656 ++ 3434 ++ 246246 = 336336

    1. False
    2. False
    3. True
    4. False
    5. False

  2. Question

    What is the distance between the two points p=(2,5)p = (2, 5) and q=(5,1)q = (5, 1) in a Cartesian coordinate system?


    1. 6.3226.322
    2. 8.8658.865
    3. 7.8227.822
    4. 2.6462.646
    5. 5.0005.000

    Solution

    The distance dd of pp and qq is given by d2=(p1q1)2+(p2q2)2d^2 = (p_1 - q_1)^2 + (p_2 - q_2)^2 (Pythagorean formula).

    Hence d=(p1q1)2+(p2q2)2=(25)2+(51)2=5d = \sqrt{(p_1 - q_1)^2 + (p_2 - q_2)^2} = \sqrt{(2 - 5)^2 + (5 - 1)^2} = 5.


    1. False
    2. False
    3. False
    4. False
    5. True

  3. Question

    What is the derivative of f(x)=x3e3.3xf(x) = x^{3} e^{3.3 x}, evaluated at x=0.57x = 0.57?


    Solution

    Using the product rule for f(x)=g(x)h(x)f(x) = g(x) \cdot h(x), where g(x):=x3g(x) := x^{3} and h(x):=e3.3xh(x) := e^{3.3 x}, we obtain f(x)=[g(x)h(x)]=g(x)h(x)+g(x)h(x)=3x31e3.3x+x3e3.3x3.3=e3.3x(3x2+3.3x3)=e3.3xx2(3+3.3x). \begin{aligned} f'(x) &= [g(x) \cdot h(x)]' = g'(x) \cdot h(x) + g(x) \cdot h'(x) \\ &= 3 x^{3 - 1} \cdot e^{3.3 x} + x^{3} \cdot e^{3.3 x} \cdot 3.3 \\ &= e^{3.3 x} \cdot(3 x^2 + 3.3 x^{3}) \\ &= e^{3.3 x} \cdot x^2 \cdot (3 + 3.3 x). \end{aligned} Evaluated at x=0.57x = 0.57, the answer is e3.30.570.572(3+3.30.57)=10.403188. e^{3.3 \cdot 0.57} \cdot 0.57^2 \cdot (3 + 3.3 \cdot 0.57) = 10.403188. Thus, rounded to two digits we have f(0.57)=10.40f'(0.57) = 10.40.


  4. Question

    The daily expenses of summer tourists in Vienna are analyzed. A survey with 133133 tourists is conducted. This shows that the tourists spend on average 196.7196.7 EUR. The sample variance sn12s^2_{n-1} is equal to 136.7136.7.

    Determine a 95%95\% confidence interval for the average daily expenses (in EUR) of a tourist.


    1. What is the lower confidence bound?
    2. What is the upper confidence bound?

    Solution

    The 95%95\% confidence interval for the average expenses μ\mu is given by: [y1.96sn12n,y+1.96sn12n]=[196.71.96136.7133,196.7+1.96136.7133]=[194.713,198.687]. \begin{aligned} & & \left[\bar{y} \, - \, 1.96\sqrt{\frac{s_{n-1}^2}{n}}, \; \bar{y} \, + \, 1.96\sqrt{\frac{s_{n-1}^2}{n}}\right] \\ & = & \left[ 196.7 \, - \, 1.96\sqrt{\frac{136.7}{133}}, \; 196.7 \, + \, 1.96\sqrt{\frac{136.7}{133}}\right] \\ & = & \left[194.713, \, 198.687\right]. \end{aligned}


    1. The lower confidence bound is 194.713194.713.
    2. The upper confidence bound is 198.687198.687.

  5. Question

    For 53 firms the number of employees XX and the amount of expenses for continuing education YY (in EUR) were recorded. The statistical summary of the data set is given by:

    Variable XX Variable YY
    Mean 45 266
    Variance 120 2231

    The correlation between XX and YY is equal to 0.73.

    Estimate the expected amount of money spent for continuing education by a firm with 45 employees using least squares regression.


    Solution

    First, the regression line yi=β0+β1xi+εiy_i = \beta_0 + \beta_1 x_i + \varepsilon_i is determined. The regression coefficients are given by: β^1=rsysx=0.732231120=3.14762,β^0=yβ^1x=2663.1476245=124.35719.\begin{eqnarray*} && \hat \beta_1 = r \cdot \frac{s_y}{s_x} = 0.73 \cdot \sqrt{\frac{2231}{120}} = 3.14762, \\ && \hat \beta_0 = \bar y - \hat \beta_1 \cdot \bar x = 266 - 3.14762 \cdot 45 = 124.35719. \end{eqnarray*} The estimated amount of money spent by a firm with 45 employees is then given by: y^=124.35719+3.1476245=266.\begin{eqnarray*} \hat y = 124.35719 + 3.14762 \cdot 45 = 266. \end{eqnarray*}