Exam 1

  1. Question

    Given the following information:

    banana ++ pineapple ++ banana = 417417
    orange ++ banana ++ orange = 266266
    banana ++ pineapple ++ pineapple = 600600

    Compute:

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

    1. 433433
    2. 565565
    3. 600600
    4. 261261
    5. 542542

    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: (201120102)(x1x2x3)=(417266600) \begin{aligned} \left( \begin{array}{rrr} 2 & 0 & 1 \\ 1 & 2 & 0 \\ 1 & 0 & 2 \end{array} \right) \cdot \left( \begin{array}{r} x_1 \\ x_2 \\ x_3 \end{array} \right) & = & \left( \begin{array}{r} 417 \\ 266 \\ 600 \end{array} \right) \end{aligned} This can be solved using any solution algorithm, e.g., elimination: x1=78,x2=94,x3=261. x_1 = 78, \, x_2 = 94, \, x_3 = 261. 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 =
    7878 ++ 9494 ++ 261261 = 433433

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

  2. Question

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


    1. 1.1391.139
    2. 0.6710.671
    3. 1.7321.732
    4. 2.2362.236
    5. 0.2370.237

    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=(34)2+(24)2=2.236d = \sqrt{(p_1 - q_1)^2 + (p_2 - q_2)^2} = \sqrt{(3 - 4)^2 + (2 - 4)^2} = 2.236.


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

  3. Question

    What is the derivative of f(x)=x5e3.2xf(x) = x^{5} e^{3.2 x}, evaluated at x=0.8x = 0.8?


    Solution

    Using the product rule for f(x)=g(x)h(x)f(x) = g(x) \cdot h(x), where g(x):=x5g(x) := x^{5} and h(x):=e3.2xh(x) := e^{3.2 x}, we obtain f(x)=[g(x)h(x)]=g(x)h(x)+g(x)h(x)=5x51e3.2x+x5e3.2x3.2=e3.2x(5x4+3.2x5)=e3.2xx4(5+3.2x). \begin{aligned} f'(x) &= [g(x) \cdot h(x)]' = g'(x) \cdot h(x) + g(x) \cdot h'(x) \\ &= 5 x^{5 - 1} \cdot e^{3.2 x} + x^{5} \cdot e^{3.2 x} \cdot 3.2 \\ &= e^{3.2 x} \cdot(5 x^4 + 3.2 x^{5}) \\ &= e^{3.2 x} \cdot x^4 \cdot (5 + 3.2 x). \end{aligned} Evaluated at x=0.8x = 0.8, the answer is e3.20.80.84(5+3.20.8)=40.056741. e^{3.2 \cdot 0.8} \cdot 0.8^4 \cdot (5 + 3.2 \cdot 0.8) = 40.056741. Thus, rounded to two digits we have f(0.8)=40.06f'(0.8) = 40.06.


  4. Question

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

    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]=[136.41.96148121,136.4+1.96148121]=[134.232,138.568]. \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[ 136.4 \, - \, 1.96\sqrt{\frac{148}{121}}, \; 136.4 \, + \, 1.96\sqrt{\frac{148}{121}}\right] \\ & = & \left[134.232, \, 138.568\right]. \end{aligned}


    1. The lower confidence bound is 134.232134.232.
    2. The upper confidence bound is 138.568138.568.

  5. Question

    For 58 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 52 240
    Variance 149 3259

    The correlation between XX and YY is equal to 0.75.

    Estimate the expected amount of money spent for continuing education by a firm with 53 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.753259149=3.5076,β^0=yβ^1x=2403.507652=57.6047.\begin{eqnarray*} && \hat \beta_1 = r \cdot \frac{s_y}{s_x} = 0.75 \cdot \sqrt{\frac{3259}{149}} = 3.5076, \\ && \hat \beta_0 = \bar y - \hat \beta_1 \cdot \bar x = 240 - 3.5076 \cdot 52 = 57.6047. \end{eqnarray*} The estimated amount of money spent by a firm with 53 employees is then given by: y^=57.6047+3.507653=243.508.\begin{eqnarray*} \hat y = 57.6047 + 3.5076 \cdot 53 = 243.508. \end{eqnarray*}