41 questions on Statistics for data scientists & analysts Flashcards

1
Q

Questions & Solution 1) Which of these measures are used to analyze the central tendency of data? A) Mean and Normal Distribution B) Mean, Median and Mode C) Mode, Alpha & Range D) Standard Deviation, Range and Mean E) Median, Range and Normal Distribution

A

Solution: (B) The mean, median, mode are the three statistical measures which help us to analyze the central tendency of data. We use these measures to find the central value of the data to summarize the entire data set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

2) Five numbers are given: (5, 10, 15, 5, 15). Now, what would be the sum of deviations of individual data points from their mean? A) 10 B)25 C) 50 D) 0 E) None of the above

A

Solution: (D) The sum of deviations of the individual will always be 0.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

3) A test is administered annually. The test has a mean score of 150 and a standard deviation of 20. If Ravi’s z-score is 1.50, what was his score on the test? A) 180 B) 130 C) 30 D) 150 E) None of the above

A

Solution: (A) X= μ+Zσ where μ is the mean, σ is the standard deviation and X is the score we’re calculating. Therefore X = 150+20*1.5 = 180

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

4) Which of the following measures of central tendency will always change if a single value in the data changes? A) Mean B) Median C) Mode D) All of these

A

Solution: (A) The mean of the dataset would always change if we change any value of the data set. Since we are summing up all the values together to get it, every value of the data set contributes to its value. Median and mode may or may not change with altering a single value in the dataset.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

5) Below, we have represented six data points on a scale where vertical lines on scale represent unit. Which of the following line represents the mean of the given data points, where the scale is divided into same units? https://s3-ap-south-1.amazonaws.com/av-blog-media/wp-content/uploads/2017/02/27134903/Image_21.jpg A) A B) B C) C D) D

A

Solution: (C) It’s a little tricky to visualize this one by just looking at the data points. We can simply substitute values to understand the mean. Let A be 1, B be 2, C be 3 and so on. The data values as shown will become {1,1,1,4,5,6} which will have mean to be 18/6 = 3 i.e. C.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

6) If a positively skewed distribution has a median of 50, which of the following statement is true?

A) Mean is greater than 50
B) Mean is less than 50
C) Mode is less than 50
D) Mode is greater than 50
E) Both A and C
F) Both B and D

A

Solution: (E)

Below are the distributions for Negatively, Positively and no skewed curves.

As we can see for a positively skewed curve, Mode<median>
</median>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

7) Which of the following is a possible value for the median of the below distribution?

A) 32
B) 26
C) 17
D) 40

A

Solution: (B)

To answer this one we need to go to the basic definition of a median. Median is the value which has roughly half the values before it and half the values after. The number of values less than 25 are (36+54+69 = 159) and the number of values greater than 30 are (55+43+25+22+17= 162). So the median should lie somewhere between 25 and 30. Hence 26 is a possible value of the median.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

8) Which of the following statements are true about Bessels Correction while calculating a sample standard deviation?

Bessels correction is always done when we perform any operation on a sample data.

Bessels correction is used when we are trying to estimate population standard deviation from the sample.

Bessels corrected standard deviation is less biased.

A) Only 2

B) Only 3

C) Both 2 and 3

D) Both 1 and 3

A

Solution: (C)

Contrary to the popular belief Bessel’s correction should not be always done. It’s basically done when we’re trying to estimate the population standard deviation using the sample standard deviation. The bias is definitely reduced as the standard deviation will now(after correction) be depicting the dispersion of the population more than that of the sample.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

9) If the variance of a dataset is correctly computed with the formula using (n – 1) in the denominator, which of the following option is true?

A) Dataset is a sample
B) Dataset is a population
C) Dataset could be either a sample or a population
D) Dataset is from a census
E) None of the above

A

Solution: (A)

If the variance has n-1 in the formula, it means that the set is a sample. We try to estimate the population variance by dividing the sum of squared difference with the mean with n-1.

When we have the actual population data we can directly divide the sum of squared differences with n instead of n-1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

13) What would be the critical values of Z for 98% confidence interval for a two-tailed test ?

A) +/- 2.33
B) +/- 1.96
C) +/- 1.64
D) +/- 2.55

A

Solution: (A)

We need to look at the z table for answering this. For a 2 tailed test, and a 98% confidence interval, we should check the area before the z value as 0.99 since 1% will be on the left side of the mean and 1% on the right side. Hence we should check for the z value for area>0.99. The value will be +/- 2.33

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Context for Questions 15-17

Studies show that listening to music while studying can improve your memory. To demonstrate this, a researcher obtains a sample of 36 college students and gives them a standard memory test while they listen to some background music. Under normal circumstances (without music), the mean score obtained was 25 and standard deviation is 6. The mean score for the sample after the experiment (i.e With music) is 28.

15) What is the null hypothesis in this case?

A) Listening to music while studying will not impact memory.
B) Listening to music while studying may worsen memory.
C) Listening to music while studying may improve memory.
D) Listening to music while studying will not improve memory but can make it worse.

A

Solution: (D)

The null hypothesis is generally assumed statement, that there is no relationship in the measured phenomena. Here the null hypothesis would be that there is no relationship between listening to music and improvement in memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Context for Questions 15-17

Studies show that listening to music while studying can improve your memory. To demonstrate this, a researcher obtains a sample of 36 college students and gives them a standard memory test while they listen to some background music. Under normal circumstances (without music), the mean score obtained was 25 and standard deviation is 6. The mean score for the sample after the experiment (i.e With music) is 28.

16) What would be the Type I error?

A) Concluding that listening to music while studying improves memory, and it’s right.
B) Concluding that listening to music while studying improves memory when it actually doesn’t.
C) Concluding that listening to music while studying does not improve memory but it does.

A

Solution: (B)

Type 1 error means that we reject the null hypothesis when its actually true. Here the null hypothesis is that music does not improve memory. Type 1 error would be that we reject it and say that music does improve memory when it actually doesn’t.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Context for Questions 15-17

Studies show that listening to music while studying can improve your memory. To demonstrate this, a researcher obtains a sample of 36 college students and gives them a standard memory test while they listen to some background music. Under normal circumstances (without music), the mean score obtained was 25 and standard deviation is 6. The mean score for the sample after the experiment (i.e With music) is 28.

17) After performing the Z-test, what can we conclude ____ ?

A) Listening to music does not improve memory.

B)Listening to music significantly improves memory at p

C) The information is insufficient for any conclusion.

D) None of the above

A

Solution: (B)

Let’s perform the Z test on the given case. We know that the null hypothesis is that listening to music does not improve memory.

Alternate hypothesis is that listening to music does improve memory.

In this case the standard error i.e.

The Z score for a sample mean of 28 from this population is

Z critical value for α = 0.05 (one tailed) would be 1.65 as seen from the z table.

Therefore since the Z value observed is greater than the Z critical value, we can reject the null hypothesis and say that listening to music does improve the memory with 95% confidence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

18) A researcher concludes from his analysis that a placebo cures AIDS. What type of error is he making?

A) Type 1 error

B) Type 2 error

C) None of these. The researcher is not making an error.

D) Cannot be determined

A

Solution: (D)

By definition, type 1 error is rejecting the null hypothesis when its actually true and type 2 error is accepting the null hypothesis when its actually false. In this case to define the error, we need to first define the null and alternate hypothesis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

19) What happens to the confidence interval when we introduce some outliers to the data?

A) Confidence interval is robust to outliers

B) Confidence interval will increase with the introduction of outliers.

C) Confidence interval will decrease with the introduction of outliers.

D) We cannot determine the confidence interval in this case.

A

Solution: (B)

We know that confidence interval depends on the standard deviation of the data. If we introduce outliers into the data, the standard deviation increases, and hence the confidence interval also increases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Context for questions 20- 22

A medical doctor wants to reduce blood sugar level of all his patients by altering their diet. He finds that the mean sugar level of all patients is 180 with a standard deviation of 18. Nine of his patients start dieting and the mean of the sample is observed to 175. Now, he is considering to recommend all his patients to go on a diet.

Note: He calculates 99% confidence interval.

20) What is the standard error of the mean?

A) 9
B) 6
C) 7.5
D) 18

A

Solution: (B)

The standard error of the mean is the standard deviation by the square root of the number of values. i.e.

Standard error = 18/sqrt(9) = 6

17
Q

Context for questions 20- 22

A medical doctor wants to reduce blood sugar level of all his patients by altering their diet. He finds that the mean sugar level of all patients is 180 with a standard deviation of 18. Nine of his patients start dieting and the mean of the sample is observed to 175. Now, he is considering to recommend all his patients to go on a diet.

Note: He calculates 99% confidence interval.

21) What is the probability of getting a mean of 175 or less after all the patients start dieting?

A) 20%
B) 25%
C) 15%
D) 12%

A

Solution: (A)

This actually wants us to calculate the probability of population mean being 175 after the intervention. We can calculate the Z value for the given mean.

If we look at the z table, the corresponding value for z = -0.833 ~ 0.2033.

Therefore there is around 20% probability that if everyone starts dieting, the population mean would be 175.

18
Q

Context for questions 20- 22

A medical doctor wants to reduce blood sugar level of all his patients by altering their diet. He finds that the mean sugar level of all patients is 180 with a standard deviation of 18. Nine of his patients start dieting and the mean of the sample is observed to 175. Now, he is considering to recommend all his patients to go on a diet.

Note: He calculates 99% confidence interval.

22) Which of the following statement is correct?

A) The doctor has a valid evidence that dieting reduces blood sugar level.

B) The doctor does not have enough evidence that dieting reduces blood sugar level.

C) If the doctor makes all future patients diet in a similar way, the mean blood pressure will fall below 160.

A

Solution: (B)

We need to check if we have sufficient evidence to reject the null. The null hypothesis is that dieting has no effect on blood sugar. This is a two tailed test. The z critical value for a 2 tailed test would be ±2.58.

The z value as we have calculated is -0.833.

Since Z value < Z critical value, we do not have enough evidence that dieting reduces blood sugar.

19
Q

Question Context 23-25

A researcher is trying to examine the effects of two different teaching methods. He divides 20 students into two groups of 10 each. For group 1, the teaching method is using fun examples. Where as for group 2 the teaching method is using software to help students learn. After a 20 minutes lecture of both groups, a test is conducted for all the students.

We want to calculate if there is a significant difference in the scores of both the groups.

It is given that:

Alpha=0.05, two tailed.

Mean test score for group 1 = 10

Mean test score for group 2 = 7

Standard error = 0.94

23) What is the value of t-statistic?

A) 3.191
B) 3.395
C) Cannot be determined.
D) None of the above

A

Solution: (A)

The t statistic of the given group is nothing but the difference between the group means by the standard error.

=(10-7)/0.94 = 3.191

20
Q

Question Context 23-25

A researcher is trying to examine the effects of two different teaching methods. He divides 20 students into two groups of 10 each. For group 1, the teaching method is using fun examples. Where as for group 2 the teaching method is using software to help students learn. After a 20 minutes lecture of both groups, a test is conducted for all the students.

We want to calculate if there is a significant difference in the scores of both the groups.

It is given that:

Alpha=0.05, two tailed.

Mean test score for group 1 = 10

Mean test score for group 2 = 7

Standard error = 0.94

24) Is there a significant difference in the scores of the two groups?

A) Yes
B) No

A

Solution: (A)

The null hypothesis in this case would be that there is no difference between the groups, while the alternate hypothesis would be that the groups are significantly different.

The t critical value for a 2 tailed test at α = 0.05 is ±2.101. The t statistic obtained is 3.191. Since the t statistic is more than the critical value of t, we can reject the null hypothesis and say that the two groups are significantly different with 95% confidence.

21
Q

Question Context 23-25

A researcher is trying to examine the effects of two different teaching methods. He divides 20 students into two groups of 10 each. For group 1, the teaching method is using fun examples. Where as for group 2 the teaching method is using software to help students learn. After a 20 minutes lecture of both groups, a test is conducted for all the students.

We want to calculate if there is a significant difference in the scores of both the groups.

It is given that:

Alpha=0.05, two tailed.

Mean test score for group 1 = 10

Mean test score for group 2 = 7

Standard error = 0.94

25) What percentage of variability in scores is explained by the method of teaching?

A) 36.13
B) 45.21
C) 40.33
D) 32.97

A

Solution: (A)

The % variability in scores is given by the R2 value. The formula for R2 given by

R2 =

The degrees of freedom in this case would be 10+10 -2 since there are two groups with size 10 each. The degree of freedom is 18.

R2 = = 36.13

22
Q

26) [True or False] F statistic cannot be negative.

A) TRUE

B) FALSE

A

Solution: (A)

F statistic is the value we receive when we run an ANOVA test on different groups to understand the differences between them. The F statistic is given by the ratio of between group variability to within group variability

Below is the formula for f Statistic.

Since both the numerator and denominator possess square terms, F statistic cannot be negative.

23
Q

28) Correlation between two variables (Var1 and Var2) is 0.65. Now, after adding numeric 2 to all the values of Var1, the correlation co-efficient will_______ ?

A) Increase
B) Decrease
C) None of the above

A

Solution: (C)

If a constant value is added or subtracted to either variable, the correlation coefficient would be unchanged. It is easy to understand if we look at the formula for calculating the correlation.

If we add a constant value to all the values of x, the xi and will change by the same number, and the differences will remain the same. Hence, there is no change in the correlation coefficient.

24
Q

29) It is observed that there is a very high correlation between math test scores and amount of physical exercise done by a student on the test day. What can you infer from this?

High correlation implies that after exercise the test scores are high.

Correlation does not imply causation.

Correlation measures the strength of linear relationship between amount of exercise and test scores.

A) Only 1
B) 1 and 3
C) 2 and 3
D) All the statements are true

A

Solution: (C)

Though sometimes causation might be intuitive from a high correlation but actually correlation does not imply any causal inference. It just tells us the strength of the relationship between the two variables. If both the variables move together, there is a high correlation among them.

25
Q

30) If the correlation coefficient (r) between scores in a math test and amount of physical exercise by a student is 0.86, what percentage of variability in math test is explained by the amount of exercise?

A) 86%
B) 74%
C) 14%
D) 26%

A

Solution: (B)

The % variability is given by r2, the square of the correlation coefficient. This value represents the fraction of the variation in one variable that may be explained by the other variable. Therefore % variability explained would be 0.862.

26
Q

32) Consider a regression line y=ax+b, where a is the slope and b is the intercept. If we know the value of the slope then by using which option can we always find the value of the intercept?

A) Put the value (0,0) in the regression line True

B) Put any value from the points used to fit the regression line and compute the value of b False

C) Put the mean values of x & y in the equation along with the value a to get b False

D) None of the above can be used False

A

Solution: (C)

In case of ordinary least squares regression, the line would always pass through the mean values of x and y. If we know one point on the line and the value of slope, we can easily find the intercept.

27
Q

33) What happens when we introduce more variables to a linear regression model?

A) The r squared value may increase or remain constant, the adjusted r squared may increase or decrease.

B) The r squared may increase or decrease while the adjusted r squared always increases.

C) Both r square and adjusted r square always increase on the introduction of new variables in the model.

D) Both might increase or decrease depending on the variables introduced.

A

Solution: (A)

The R square always increases or at least remains constant because in case of ordinary least squares the sum of square error never increases by adding more variables to the model. Hence the R squared does not decrease. The adjusted R-squared is a modified version of R-squared that has been adjusted for the number of predictors in the model. The adjusted R-squared increases only if the new term improves the model more than would be expected by chance. It decreases when a predictor improves the model by less than expected by chance.

28
Q
A