## Exercise 1

A dietary center is testing a new diet in sample of 12 persons. The data below are the number of days of diet and the weight loss (in kg) until them for every person.

```
(33,3.9) (51,5.9) (30,3.2) (55,6) (38,4.9) (62,6.2) (35,4.5) (60,6.1) (44,5.6) (69,6.2) (47,5.8) (40,5.3)
```

- Draw the scatter plot. According to the point cloud, what type of regression model explains better the relation between the weight loss and the days of diet?
- Construct the linear regression model and the logarithmic regression model of the weight loss on the number of days of diet.
- Use the best model to predict the weight that will lose a person after 40 and 100 days of diet. Are these predictions reliable?

Use the following sums ($X$=days of diet and $Y$=weight loss): $\sum x_i=564$ days, $\sum \log(x_i)=45.8086$ $\log(\mbox{days})$, $\sum y_j=63.6$ kg, $\sum x_i^2=28234$ days$^2$, $\sum \log(x_i)^2=175.6603$ $\log(\mbox{days})^2$, $\sum y_j^2=347.7$ kg$^2$, $\sum x_iy_j=3108.5$ days$\cdot$kg, $\sum \log(x_i)y_j=245.4738$ $\log(\mbox{days})\cdot$kg.

## Exercise 2

The concentration of a drug in blood, in mg/dl, depends on time, in hours, according to the data below.

- Construct the linear regression model of drug concentration on time.
- Construct the exponential regression model of drug concentration on time.
- Use the best regression model to predict the drug concentration after $4.8$ hours? Is this prediction reliable? Justify your answer.

Use the following sums ($C$=Drug concentration and $T$=time): $\sum t_i=35$ h, $\sum \log(t_i)=10.6046$ $\log(\mbox{h})$, $\sum c_j=541$ mg/dl, $\sum \log(c_j)= 29.147$ $\log(\mbox{mg/dl})$, $\sum t_i^2=203$ h$^2$, $\sum \log(t_i)^2=17.5206$ $\log(\mbox{h})^2$, $\sum c_j^2=56937$ (mg/dl)$^2$, $\sum \log(c_j)^2=124.0131$ $\log(\mbox{mg/dl})^2$, $\sum t_ic_j=3328$ h$\cdot$mg/dl, $\sum t_i\log(c_j)=154.3387$ h$\cdot\log(\mbox{mg/dl})$, $\sum \log(t_i)c_j=951.6961$ $\log(\mbox{h})\cdot$mg/dl, $\sum\log(t_i)\log(c_j)=46.08046$ $\log(\mbox{h})\cdot\log(\mbox{mg/dl})$.

## Exercise 3

A researcher is studying the relation between the obesity and the response to pain. The obesity is measured as the percentage over the ideal weight, and the response to pain as the nociceptive flexion pain threshold. The results of the study appears in the table below.

- According to the scatter plot, what model explains better the relation of the response to pain on the obesity?
- According to the best regression model, what is the response to pain expected for a person with an obesity of 50%? Is this prection reliable?
- According to the best regression model, what is the expected obesity for a person with a pain threshold of 10? Is this prediction reliable?

Use the following sums ($X$=Obesity and $Y$=Pain threshold): $\sum x_i=629$, $\sum \log(x_i)=40.4121$, $\sum y_j=92.2$, $\sum \log(y_j)=21.339$, $\sum x_i^2=45445$, $\sum \log(x_i)^2=165.6795$, $\sum y_j^2=960.14$, $\sum \log(y_j)^2=47.6231$, $\sum x_iy_j=6537.7$, $\sum x_i\log(y_j)=1443.1275$, $\sum \log(x_i)y_j=387.5728$, $\sum \log(x_i)\log(y_j)=88.3696$.

## Exercise 4

A blood bank keeps plasma at a temperature of 0ºF. When it is required for a blood transfusion, it is heated in an oven at a constant temperature of 120ºF. In an experiment it has been measured the temperature of plasma at different times during the heating. The results are in the table below.

- Plot the scatter plot. Which type of regression model do you think explains better relationship between temperature and time?
- Which transformation should we apply to the variables to have a linear relationship?
- Compute the logarithmic regression of the temperature on time.
- According to the logarithmic model, what will the temperature of the plasma be after 15 minutes of heating? Is this prediction reliable? Justify your answer.

Use the following sums ($X$=Time and $Y$=Temperature): $\sum x_i=225$ min, $\sum \log(x_i)=24.5289$ log(min), $\sum y_j=725$ ºF, $\sum \log(y_j)=35.2051$ log(ºF), $\sum x_i^2=8833$ min², $\sum \log(x_i)^2=80.4703$ log²(min), $\sum y_j^2=74345$ ºF², $\sum \log(y_j)^2=157.1023$ log²(ºF), $\sum x_iy_j=24393$ min⋅ºF, $\sum x_i\log(y_j)=1048.0142$ min⋅log(ºF), $\sum \log(x_i)y_j=2431.7096$ log(min)⋅ºF, $\sum \log(x_i)\log(y_j)=111.1165$ log(min)log(ºF).

## Exercise 5

The activity of a radioactive substance depends on time according to the data in the table below.

- Represent graphically the data of radioactivity as a function of time. Which type of regression model explains better the relationship between radioactivity and time?
- Represent graphically the data of radioactivity as a function of time in a semi-logarithmic paper.
- Compute the regression line of the logarithm of radioactivity on time.
- Taking into account that radioactivity decay follows the formula \[ A(t) = A_0 e^{-\lambda t} \] where $A_0$ is the number of disintegrations at the begining and $\lambda$ is a disintegration constant, different for each radioactive substance, use the slope of the previous regression line to compute the disintegration constant for the substance.

Use the following sums ($X$=Time and $Y$=Radioactivity): $\sum x_i=280$ hours, $\sum y_j=37.81$ 10⁷ disintegrations/s, $\sum \log(y_j)=-5.9371$ log(10⁷ disintegrations/s), $\sum x_i^2=14000$ hours², $\sum y_j^2=744.7265$ 10⁷ disintegrations/s², $\sum \log(y_j)^2=57.7369$ log²(10⁷ disintegrations/s), $\sum x_iy_j=173.8$ hours⋅10⁷ disintegrations/s, $\sum x_i\log(y_j)=-680.9447$ hours⋅log(10⁷ disintegrations/s).

## Exercise 6

For oscillations of small amplitude, the oscillation period $T$ of a pendulum is given by the formula \[ T = 2\pi\sqrt{\frac{L}{g}} \] where $L$ is the length of the pendulum and $g$ is the gravitational constant. In order to check if the previous formula is satisfied, an experiment has been conducted where it has been measured the oscillation period for different lengths of the pendulum.The measurements are shown in the table below.

- Represent graphically the data of the period versus the length of the pendulum.

Does a linear model fit well to the points cloud? - Represent graphically the data of the period versus the length in a logarithmic paper. Which type of model fits better to the points cloud?
- Compute the regression line of the logarithm of period on the logarithm of length.
- Taking in to account the independent term of the previous regression line, compute the value of $g$.

## Exercise 7

A study tries to determine the relationship between two substances $X$ and $Y$ in blood. The concentrations of these substances have been measured in seven individuals (in $\mu$g/dl) and the results are shown in the table below.

- Are $Y$ and $X$ linearly related?
- Are $Y$ and $X$ potentially related?
- Use the best of the previous regression models to predict the concentration in blood of $Y$ for $x=8$ $\mu$gr/dl.Is this prediction reliable. Justify your answer.

Use the following sums: $\sum x_i=52$ μg/dl, $\sum \log(x_i)=13.1955$ log(μg/dl), $\sum y_j=11.2$ μg/dl, $\sum \log(y_j)=3.253$ log(μg/dl), $\sum x_i^2=451.36$ (μg/dl)², $\sum \log(x_i)^2=26.9397$ log(μg/dl)², $\sum y_j^2=18.1$ (μg/dl)², $\sum \log(y_j)^2=1.5878$ log(μg/dl)², $\sum x_iy_j=86.57$ (μg/dl)², $\sum x_i\log(y_j)=26.3463$ μg/dl⋅log(μg/dl), $\sum \log(x_i)y_j=21.7087$ log(μg/dl)⋅μg/dl, $\sum \log(x_i)\log(y_j)=6.5224$ log(μg/dl)².