







































Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!








































Use only black pencil, ballpen or marker and fill the cells completely. On the upper part of the answer sheet write your First Name and Last Name, as well as the group.
Fill (marking the cells in the answer sheet) your DNI, PERMUTATION and GROUP.
DNI: the number of your ID card (if you do not have DNI, the number that you were assigned when you registered at UPF).
PERMUT.: Enter 1
GRUP: Write your group number (01)
Enter the answers in the lines below the personal information, from 1 to 12. There are two lines available for each answer, the first one is for the correct answer and the second one to cancel an incorrect answer:
We gather information about the number of pass and fail in the driver’s license exam of the cities of Barcelona and Madrid:
Barcelona Madrid Pass 1640 1736 Fail 460 364
Question 1: According to the table we can say that
(A) there is no relation between the variables “City of the exam” and “Exam results”
(B) there is a weak relation between the variables “City of the exam” and “Exam results”, the percentage of approvals is slightly larger in Madrid (C) there is no negative association between the variables “City of the exam” and “Exam results” (D) there is no positive association between the variables “City of the exam” and “Exam results” (E) None of the above answer is correct
Answer:
We look at the conditional distributions and we see that there is a larger percentage of pass in Madrid than in Barcelona (but only for a few percentage points) and therefore there is a relation between the variables. In case of categorical variables we cannot speak about association either positive or negative.
Question 2: The relative frequencies of the marginal distribution of the “City” variable are (rounding to 1 decimal point):
(A) Barcelona = 0.1, Madrid = 0. (B) Barcelona= 0.5 , Madrid = 0. (C) Barcelona = 0.4, Madrid = 0. (D) Barcelona= 0.8 , Madrid = 0. (E) None of the above answer is correct
Answer:
The marginal distribution is the distribution for cities independently of the distribution of the result of the exam, therefore in Barcelona there are 2100 people showing up in the exam and in Madrid 2100, therefore the relative frequencies are 0.5 for each value of the city variable.
Question 3: The relative frequencies of the distribution of variable “Exam Result” conditioned on taking the exam in Barcelona are (rounded to 2 decimal points):
(A) Pass = 0.49, Fail = 0. (B) Pass = 0.83, Fail = 0. (C) Pass = 0.78, Fail = 0. (D) Pass = 0.55, Fail = 0. (E) None of the above answer is correct
Answer:
There are 2100 showing up at the exam in Barcelona from which 1640 pass and 460 fail, therefore the relative frequencies are 1640/2100=0.78 for pass, and 460/2100=0.22 for fail.
We receive next more information, and we get information on separate tables for men and women. The data are the following:
Women Men Barcelona Madrid Barcelona Madrid Pass 488 1404 Pass 1152 332 Fail 32 216 Fail 428 148
Question 7: The regression line predicts that a student that spends 10 hours studying will get approximately
(A) 6.39 points (B) 4.52 points (C) 7.52 points (D) 2.28 points (E) None of the above answers is correct
Answer:
We have to predict for hours = 10, multiplying 10 by the slope and summing the constant.
Question 8: The residual corresponding to 4 study hours is
(A) 0 (B) We don’t know its sign (C) Positive (D) Negative (E) None of the above answers is correct
Answer:
For 4 study hours we predict 3.93 and the actual value is 6, so the residual is positive.
Question 9: The results of the regression tell us that for each study hour the grade raises by
(A) 2.28 points (B) 0.63 points (C) 0.41 points (D) 4.11 points (E) None of the above answers is correct
Answer:
This is the slope, the effect of a one unit increase of the explanatory variable over the dependent variable.
Question 10: The coefficient of correlation is approximately
(A) 0. (B) 0. (C) 0. (D) 0. (E) None of the above answers is correct
Answer:
We can find this summary as r.
Question 11: The percentage of the variability in grades that we manage to explain with the study hours is approximately
(A) 70 % (B) 55 % (C) 63 % (D) 45 % (E) None of the above answers is correct
Answer:
This is the R^2.
Question 12: According to the results a student who has not studied at all (0 hours) will get
(A) 4. (B) 0. (C) 2. (D) 0. (E) None of the above answers is correct
Answer:
This is the constant of the regression.
(A) The pressure has increased = 0.35, The pressure has not increased = 0. (B) The pressure has increased = 0.1, The pressure has not increased = 0. (C) The pressure has increased = 0.25, The pressure has not increased = 0. (D) The pressure has increased = 0.5, The pressure has not increased = 0. (E) None of the above answers is correct
Answer:
The Coffee variable has a possible values “Normal Coffee” or “Decaffeinated Coffee”, therefore none of the answers is correct.
Question 2: The relative frequencies of the distribution of the Pressure variable conditioned on drinking “Normal coffee” are:
(A) The pressure has increased = 0.5, The pressure has not increased = 0. (B) The pressure has increased = 0.71, The pressure has not increased = 0. (C) The pressure has increased = 0.29, The pressure has not increased = 0. (D) The pressure has increased = 0.2, The pressure has not increased = 0. (E) None of the above answers is correct
Answer:
There is a total of 100 persons that have drunken normal coffee, from which 50 have had higher pressure (0.5) and 50 did not have higher blood pressure (0.5).
Question 3: According to the table we can say that
(A) there is negative association between “Coffee” and “Pressure” (B) there is relation between “Pressure” and “Coffee” (C) there is no relation between “Pressure” and “Coffee” (D) there is positive association between “Coffee” and “Pressure” (E) None of the above answers is correct
Answer:
We look at the distribution of Pressure conditioned on drinking “Normal Coffee” and we see that a higher percentage has high blood pressure, compared to what we observe if we condition to drinking “Decaffeinated Coffee”.
We next receive more information, at the study they had also asked to the participants if they were regular or non-regular coffee drinkers. We are given separated tables for regular and non-regular coffee drinkers:
Non-regular drinkers Regular drinkers Normal Decaffeinated Normal Decaffeinated High Pressure 40 10 High Pressure 10 10 Normal Pressure 10 40 Normal Pressure 40 40
Question 4: At the non-regular drinkers coffee, the joint distribution shows the following relative frequencies:
(A) Pressure increases - Normal Coffee = 0.1, Pressure increases - Decaffeinated = 0.4, Pressure does not increase - Normal Coffee = 0.4, Pressure does not increase - Decaffeinated = 0.1. (B) Pressure increases - Normal Coffee = 0.4, Pressure increases - Decaffeinated = 0.1, Pressure does not increase - Normal Coffee = 0.1, Pressure does not increase - Decaffeinated = 0.4. (C) Pressure increases - Normal Coffee = 0.8, Pressure increases - Decaffeinated = 0.2, Pressure does not increase - Normal Coffee = 0.1, Pressure does not increase - Decaffeinated = 0.4. (D) Pressure increases - Normal Coffee = 0.8, Pressure increases - Decaffeinated = 0.2, Pressure does not increase - Normal Coffee = 0.2, Pressure does not increase - Decaffeinated = 0.8. (E) None of the above answers is correct
Answer:
It is computed looking at the absolute frequency of each cell and dividing it by the total. Pressure increases
Question 5: The Pressure and Coffee variables
(A) are related at the regular coffee drinkers table but not at the non-regular coffee drinkers table. (B) are not related in any of the two tables. (C) are related both at the non-regular coffee drinkers table and at the regular coffee drinkers table. (D) are related at the non-regular coffee drinkers table but not at the regular coffee drinkers table. (E) None of the above answers is correct
Answer:
At the table of non-regular drinkers the conditionals on drinking coffee are different but at the regular drinkers table they are the same and therefore the variables in this last table are not related.
Question 6: If you read in the press a piece of news with the title “Drinking coffee increases blood pressure”, your answer will be:
(A) This proposition is incorrect, some people drinking coffee do not get a higher blood pressure. (B) This proposition is correct. (C) This proposition is not correct, there is a latent variable which is the frequency of drinking coffee which is not being taken into account. (D) This proposition is incorrect, some people drinking decaffeinated coffee get a higher blood pressure. (E) None of the above answers is correct
Answer:
The proposition is based on the initial table which ignores a latent variable that we have discovered when we write separate tables for regular and non-regular coffee drinkers.
A study is run with 10 professors to know if there is a relation between the days that they use the dining room
(E) None of the above options is correct
Answer:
This is the slope of the regression, by how much the dependent variable changes when the explanatory variable changes.
Question 10: The regression line predicts that a professor eating 15 days at the cafeteria will have a cholesterol level (rounded to two decimal points) equal to:
(A) 10. (B) 6. (C) 78. (D) 89. (E) None of the above options is correct
Answer:
To get the prediction we multiply 15 by the slope and sum the constant.
Question 11: For the professor having lunch 14 days at the cafeteria the value of the residual is equal to:
(A) -7. (B) 4. (C) 7. (D) -4. (E) None of the above options is correct
Answer:
We substract the predicted value for 14, 82.97, from the actual value for 14, 75, to get -7.97.
Question 12: A positive residual means that
(A) the actual value is smaller than the value predicted by the regression line. (B) the actual value ie equal than the value predicted by the regression line. (C) the actual value is larger than the value predicted by the regression line (D) the correlation coefficient is positive. (E) None of the above options is correct
Answer:
A positive residual menas that the actual value is larger than the predicted value.
Use only black pencil, ballpen or marker and fill the cells completely. On the upper part of the answer sheet write your First Name and Last Name, as well as the group.
Fill (marking the cells in the answer sheet) your DNI, PERMUTATION and GROUP.
DNI: the number of your ID card (if you do not have DNI, the number that you were assigned when you registered at UPF).
PERMUT.: Enter 3
GRUP: Write your group number (01)
Enter the answers in the lines below the personal information, from 1 to 12. There are two lines available for each answer, the first one is for the correct answer and the second one to cancel an incorrect answer:
The table below shows information about income and number of hours watching TV for 20 individuals:
Individual Income TV Hours Individual Income TV Hours 1 Low 5 11 High 2 2 Low 3 12 Medium 5 3 Medium 2 13 Medium 2 4 High 3 14 Medium 3 5 High 4 15 High 2 6 Medium 2 16 Low 5 7 Medium 3 17 Low 6 8 Low 3 18 High 1 9 Low 6 19 Medium 2 10 High 1 20 Medium 3
The “Individual” variable cannot be used for statistical analysis because it is simply a code for each observation or case, it is not a relevant variable for the analysis. In any case it would be a categorical variable, since it assigns an arbitrary code to each individual.
Question 2: The “Income” variable is
(A) a discrete numerical variable (B) a continuous numerical variable (C) a ranked categorical variable (D) a non-ranked categorical variable (E) None of the above answers is correct
Answer:
It is a categorical variable since it classifies individuals in three categories according to their income, but since it comes from a numerical variable, it is “ranked”.
Question 3: Do you think there is a relation between income and number of hours individuals watch TV?
(A) The Simpson paradox is produced (B) There is a relation between the two variables (C) There is no relation between the two variables (D) We should run a linear regression between the two variables (E) None of the above answers is correct
Answer:
To see if there is a relation, we should analyze how the distribution of the numerical variable conditioned to the different groups defined by the categorical variable. We look at the distribution of hours watching TV for the people of low, medium and high income. We see that the numerical summaries are quite different, average hours of TV is higher for low income people but the rest of characteristics of the distributions are also different as can be seen from the boxplots. Therefore since the conditional distributions are different we conclude that, for this sample, it seems that there is a relation between the two variables.
Question 4: The relation between the “TV Hours” and “Income” variables shows
(A) skewness to the left (B) skewness to the right (C) a negative or indirect association (D) a direct or positive association (E) None of the above answers is correct
Answer:
Since our categorical variable comes from a grouped numerical variable (income), we can say that there is an association and that this association is of the negative or indirect type. Nevertheless, it has to be remembered that association does not imply causality, and if we consider the possibility of latent variables, we should not jump into conclusions about the causality between the variables from the observed negative association.
Question 5: For the “TV Hours” variable, the individuals showing a larger spread are
(A) individuals with low income (B) individuals with an outlier (C) individuals with large income (D) individuals with medium income (E) None of the above answers is correct
Answer:
Both looking a the value of the standard deviation and the boxplots we can see that the individuals of low income are the ones showing a larger spread.
Question 6: The distribution of the “TV Hours” variable for the “Low” income individuals is
(A) neither skewed nor symmetrical (B) skewed to the right (C) uniform (D) skewed to the left (E) None of the above answers is correct
Answer:
According to the boxplots, we see that this distribution is skewed to the left.
A regression between consumption and income of 35 families gives the following relation:
The correlation coefficient is r = 0, 9.
With this information answer the following questions:
Question 7: The study predicts that a family with an income of 5000 euros will have a consumption equal to
family with an income of 100,000 euros
(A) a mean of consumption of 25,000 will be predicted (B) the prediction will be a negative consumption (C) the prediction will be probably incorrect since we extrapolate too far away from the sample that we have (D) the prediction will be 15,742 euros of consumption, approximately (E) None of the above answers is correct
Answer:
100,000 euros are too far away from the mean of the sample, therefore we are extrapolating and the prediction will not be correct.
Take into account cases 19 and 36:
Question 12: In this regression analysis
(A) case 36 could be influential, we should analyze its exclusion (B) only case 19 is influential (C) cases 19 and 36 are influential (D) we can tell for sure that there are no influential cases (E) None of the above answers is correct
Answer:
Observation 19 is not an outlier with respect to the explanatory variable, and therefore it cannot be influential. Observation 36 is an outlier with respect to the explanatory variable and therefore we should analyze its influence excluding it from the sample and checking how the results change.
Use only black pencil, ballpen or marker and fill the cells completely. On the upper part of the answer sheet write your First Name and Last Name, as well as the group.
Fill (marking the cells in the answer sheet) your DNI, PERMUTATION and GROUP.
DNI: the number of your ID card (if you do not have DNI, the number that you were assigned when you registered at UPF).
PERMUT.: Enter 4
GRUP: Write your group number (01)
Enter the answers in the lines below the personal information, from 1 to 12. There are two lines available for each answer, the first one is for the correct answer and the second one to cancel an incorrect answer:
We have information on the grades of 16 IBE students in two subjects (for a total of 32 observations). The information is presented in boxplots:
(A) discrete numerical variable (B) non-ranked categorical variable (C) continuous numerical variable (D) ranked categorical variable (E) None of the above answers is correct
Answer:
It is categorical, but it is non-ranked, it does not have a natural order.
Question 4: Considering the type of variables that we have
(A) we can describe the direction of the association (B) we can compute the regression line (C) we cannot describe the direction of the association (D) we can compute the correlation coefficient (E) None of the above answers is correct
Answer:
We cannot describe the direction of the association because the categorical variable is non-ranked.
Question 5: According to what we observe in the boxplots
(A) there is no spread in the subjects (B) the spread does not change with the subjects (C) there is an increasing spread in the subjects (D) there is a decreasing spread in the subjects (E) None of the above answers is correct
Answer:
As we can see in the boxplots, the spreads are not the same for the two subjects, but since the categorical variable is non-ranked we cannot describe as increasing or decreasing.
Question 6: To check if there is relation between the two variables we have to check if there are any differences
(A) between the distributions of the “Grades” variable conditioned on the subjects (B) between the distributions of the “Subject” variable conditioned on the grades (C) in the distributions of each variable considered separately (D) in the correlation coefficients (E) None of the above answers is correct
Answer:
We have to check how grades change for each subject (distribution of grades conditioned on subjects). If there are changes then the variables are related.
200 UPF students are contracted during the Christmas break to work in restaurants. They are paid a mean salary of 500 euros with a standard deviation of 60 euros. This salary is composed by a fixed and a variable part. The fixed part is 300 euros and the variable part depends on the number of tips they receive. The average number of tips is 25.
We want to understand the effect of the number of tips on the salary earned by these students during Christma, and we know that the number of tips explains 70% of the variation in salary received.
The folowing formulas may prove useful:
s =
√√ √√ 1 n − 1
∑^ n
i=
(xi − ¯x)^2
sxy =
n − 1
∑^ n
i=
(xi − x¯)(yi − ¯y)
rxy =
sxy sxsy
b = r
sy sx
, a = ¯y − b¯x
Answer to the following questions:
Question 7: If we think this problem as a regresssion between the number of times that a student receives a tip and the salary received:
(A) the salary received is the explanatory variable and the number of tips is the dependent variable. (B) both the salary received and the number of tips are explanatory variables (C) both the salary received and the number of tips are dependen variables (D) the salary received is the dependent variable and the number of tips is the explanatory variable. (E) None of the above options is correct
Answer:
We want to study the effect of the number of tips on salary received, therefore the number of tips is the explanatory varible and the salary received is the dependent variable.
Question 8: The regression predicts that for each tip the final salary is incremented in
(A) 8 euros. (B) 15 euros. (C) 5 euros. (D) 10 euros. (E) None of the above options is correct