Lectures Notes Flashcards

1
Q

what are the two types of categorical data?

A

nominal and ordinal

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

what is nominal data? give examples

A

categorical data with no natural order

e.g. blood group, sex

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

what is ordinal data? give examples?

A

ordered categorical data.

e.g. pain severity, social class, grade of breast cancer

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

what are the two types of numerical data?

A

discrete and continuous

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

what is binary data?

A

a form of nominal categorical data, where there are only two categories

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

how might you display categorical data?

A

bar chart, pie chart

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

how might you display numerical data?

A

dot plot, stem and leaf, histogram, box and whisker

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

how do you calculate the mean of a data set?

A

total all the values, and divide by the number of values

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

how do you calculate the median of a data set?

A

order the values, median is the middle value.

if there is an even number of values, take the mean of the middle two values.

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

how do you calculate the mode of a data set?

A

the most common value observed

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

what’s the main advantage of using a median of a data set?

A

robust to outliers.

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

what’s the main advantage of using the mean of a data set?

A

uses all the data.

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

when would you use median vs mean?

A

symmetrical data = mean

skewed data = median

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

list the three main approaches to quantifying variability

A

range
interquartile range
standard deviation

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

what is the interquartile range of a data set, and how could you display it graphically?

A

the middle 50% of your data.
upper quartile - lower quartile.

box and whisker plot.

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

how do you calculate variance?

A
  1. draw a table
  2. calculate difference between observed value and mean for each value
  3. square each of these values
  4. calculate the total of the squared differences from mean
  5. divide this by n-1

(n= number of values)

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

how do you calculate standard deviation (SD)?

A

square root of variance

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

how many decimal places should you use when calculating SD?

A

usually 2 or 3 more decimal places than the original data

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

what is the relationship between mean and SD in Normally distributed data?

A

mean ± 1 SD covers 68% of data

mean ± 2 SD covers 95% of data

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

how do you calculate the ‘normal reference range’ of an investigation?

A

mean ± 2 SDs

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

what is the relationship between the mean and the median in Normally distributed data?

A

will be the same!

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

formula for risk

A

risk = no. events observed / number in the group

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

formula for risk difference

A

RD = risk (exposed group) - risk (unexposed group)

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

what’s the difference between risk difference and ABSOLUTE risk difference?

A

in ARD you ignore the sign - so it’s always expressed as a positive number, but it might represent an increase or decrease in risk

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

your 95% CI for a relative risk includes 1.00 - what does this mean?

A

there is NO difference between groups

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

formula for number needed to treat (or harm!)

A

1/ARD

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

formula for odds

A

no. people with disease / no. people without

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

formula for odds ratio

A

odds (exposed) / odds (unexposed)

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

if an event is rare, what is the relationship between odds and risk ratios?

A

they’ll basically be the same - but for a common event, they can be really different

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

____ is a useful measure of spread when data is distributed symmetrically

A

standard deviation

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

if data is symmetrically distributed, what percentage of data lies within 2 SD of the mean?

A

95%

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

what would you see on a histogram of positively skewed data?

A

peak of data is at the left, tail extends to the right.

the mean will be greater than the median.

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

how can you tell which direction data is skewed in from the mean and median?

A

mean = median : symmetrical
mean > median : positive skew
mean < median : negative skew

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

what would you see on a histogram of negatively skewed data?

A

peak of data is at the right, tail extends to the left.

mean will be less than the median.

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

what summary measures would you use for positive/negative skewed data?

A

median and interquartile range

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

formula for the addition rule of probability

A

P(A or B) = P(A) + P(B)

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

formulae for the multiplication rule of probability

A

P(A and B) = P(A) x P(B)

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

if an event has a probability of 0, what does this mean? what about 1?

A
0 = it can never happen
1 = it definitely happens
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

define standard error

A

estimate of the precision of a sample estimate - a measure of how far from the true population value a sample estimate is likely to be.

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

what type of distribution will a set of sample means take, given a large enough sample size?

A

Normal

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

formula for standard error of a mean

A

SD / sq root of n

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

formula for standard error of a proportion

A

square root of:
p(1-p) / n

(p = sample proportion)

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

how do you calculate the standard error of the difference between two sample means

A

SD of first sample / n for that sample
+
SD of second sample / n for that sample

square root the answer

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

what does a large standard error mean?

A

that your estimate of a population mean is imprecise

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

what does a small standard error mean?

A

that your estimate of a population mean is precise

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

if sample size increases, does standard error go up or down?

A

down - we get a more precise estimate

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

what is the general formula for calculating a 95% CI?

A

mean ± (1.96xSE)

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

what is the technical definition for a 95% confidence interval?

A

if the study were to be repeated 100 times, of the 100 resulting 95% CIs, we would expect 95 of these to include the population mean

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

what is the correct way to interpret a 95% CI of 120-130mmHg, mean 125

A

We are 95% confident that the true population mean sys. BP lies between 120 and 130, but the best estimate we have is 125.

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

explain the difference between standard deviation and standard error

A

SD describes the variability of the observations in the sample, whereas SE is a measure of the precision of an estimate of the population mean.

51
Q

what are the four main steps in hypothesis testing?

A
  1. state null hypothesis
  2. choose a significance level
  3. obtain P-value
  4. use P-value to decide whether to reject your null hypothesis
52
Q

how should you interpret a P-value?

A

the probability of observing your results, or more extreme, if the null hypothesis is true

53
Q

how do we obtain P-values?

A

carry out a statistical significance test, and that generates a test statistic.
we then use the test statistic and distribution tables to find the P-value.

54
Q

what is the general formula for a test statistic?

A

observed value - hypothesis value

all divided by standard error

55
Q

define the “power” of a study

A

the probability of rejecting the null hypothesis when it is actually false.
i.e. probability of concluding that there is a difference, when a difference truly does exist.

= 1 - beta
(beta = type II error)

56
Q

what is type II error?

A

same as a false negative - probability of not rejecting the null hypothesis, when it is in fact false.

57
Q

what is type I error?

A

this is the P-value!

same as false positive - probability of rejecting null hypothesis when it is in fact true

58
Q

If a confidence interval includes 0, will this be a statistically significant result?

A

NO.

but if it doesn’t - don’t need the P-value, as it shows that it is statistically significant to the 5% level

59
Q

what are parametric tests?

A

a type of statistical test, that assume data are distributed according to a specific distribution (e.g. Normal distribution)

60
Q

give some examples of parametric tests

A

t-test
analysis of variance (ANOVA)
linear regression techniques

61
Q

what are non-parametric tests?

A

type of statistical test that does not make any assumptions about the shape of the data. used when you can’t meet assumptions for parametric test, data is skewed, or there are outliers.

useful for data that is skewed, ranked or ordinal.
robust to outliers.
based of ranks of the data, not the actual data.

62
Q

explain the difference between paired and unpaired data

A

paired data = same individuals studied at two different times.
independent = data collected from two separate groups.

63
Q

what are the two assumptions underlying a paired t-test?

A
  • that the differences between values are Normally distributed (e.g. difference in PHQ9 score at 0 and 4 months)
  • that the differences are independent of each other
64
Q

what is the Wilcoxon (matched pairs) signed rank test, and when would you use it?

A

non-parametric equivalent of the paired t-test!

used when you can’t meet the assumptions of the paired t-test.

65
Q

name two tests you can use when your data consists of more than 2 groups?

A
  • analysis of variance (ANOVA) - parametric.

- Kruskal-Wallis test (non-parametric version)

66
Q

what two tests might you use to comparing data from two independent groups?

A

Chi-squared, difference in proportions, or Fisher’s exact test

67
Q

when can you compare independent groups using the difference in proportions?

A

when the sample is large enough.
np and n(1-p) should both be greater than 5.

n = total no. individuals in both samples.
p = proportion of individuals with the condition (regardless of group)
68
Q

when would you use Chi-Squared test?

A
  • two nominal categorical variables that can form a r x c contingency table
  • at least 80% of expected cell counts >5
  • all expected cell counts >1
69
Q

when is Yates’ correct used for Chi-squared tests?

A

should be used for all chi-squared tests on 2x2 tables

70
Q

when would you use Fisher’s exact test?

A

when values are too small to do chi-squared!

71
Q

what test is used to compare paired proportions?

A

McNemar’s test

72
Q

what is bivariate data?

A

data where there are two variables, either categorical or numerical

73
Q

when would you use correlation over regression?

A

when you aren’t implying an order or causation, just an association

74
Q

when would you use regression over correlation?

A

when one variable (Y) is a response to another variable (X) - you could use value of X to predict Y

75
Q

what is meant by “correlation coefficient”?

A

it’s a measure of the linear association between two variables

(cannot use to predict one variable from another)

76
Q

what are the properties of Pearson’s correlation coefficient (r)

A

r must be between -1 and +1
+1 = perfect positive linear association.
-1 = perfect negative linear association.
0 = no linear relation at all.

77
Q

how does regression work?

A

plot scatter plot with the X (predictor/explanatory variable) on X axis, and the Y (response) variable going up Y axis.

Then finds line of best fit using “least squares” model.
equation from that line can be used to predict Y from X.

78
Q

what is the generic regression equation?

A

Y = a + bX

a = intercept
b = slope
79
Q

what is multiple regression?

A

form of regression used when there are multiple variables influencing the outcome variable.

80
Q

give 3 reasons for carrying out a multiple regression analysis?

A
  1. to identify any explanatory variables that may be associated with the Y variable
  2. to investigate extent to which 1+ variables are linearly related to Y, after adjusting for other variables
  3. to predict value of Y from X variables
81
Q

how does a multiple regression equation work?

A

Y = a + then multiple ‘b’s (coefficients), which you multiple by each corresponding variable (X)

82
Q

what is the conventional minimum power for a study?

A

0.80

83
Q

how do you calculate the standardised effect size?

A

difference in means between intervention and control group, divided by the standard deviation of the outcomes

84
Q

what are the 4 ingredients needed for a sample size calculation?

A
  1. target/anticipated effect size (δ)
  2. standard deviation of the outcome data (σ)
  3. power (typically 80-90%)
  4. significance level (0.05)
85
Q

what happens to sample size needed as significance level gets smaller?

A

goes up

86
Q

what happens to sample size needed as power increases?

A

goes up.

this is the same as saying type II error decreases

87
Q

what happens to sample size needed as anticipated effect size decreases?

A

goes up

88
Q

what happens to sample size needed as variability of outcome data decreases?

A

goes down

89
Q

list the 3 factors determining the sample size needed for a survey

A
  1. how precise should estimate be? e.g. within ±5%
  2. probability that estimate is close to the population parameter
  3. some idea of the prevalence in the population under study
90
Q

formula for sensitivity

A

= true positives / no. people with disease

91
Q

formula for specificity

A

= true negatives / no. people without disease

92
Q

definition of sensitivity

A

given that the patient has the disease, sensitivity is the proportion of times the test is positive

93
Q

definition of specificity

A

given that the subject doesn’t have the disease, specificity is the proportion of times the test will be negative

94
Q

definition of PPV

A

probability that someone has the disease when the test is positive

95
Q

formula for PPV

A

true positives / no. positive results

96
Q

definition of NPV

A

probability that someone is without disease when the test is negative

97
Q

formula for NPV

A

true negatives / no. negative results

98
Q

formula for accuracy of test

A

true positives + true negatives / no. people tested

99
Q

how can we decide on a diagnostic cut-off value for tests with continuous outcomes?

A

can use the Receiver Operating Characteristic (ROC) curve - plots sensitivity vs 1-specificity for each distinct cut-off value.

best cut-off point is the one nearest the top left-hand corner.

an ROC curve lying on the 45 degree line is no better than chance!

100
Q

how do you calculate the likelihood ratio of a positive result?

A

sensitivity / 1-specificity

this is the probability of getting this result, if patient is truly diseased vs if they were healthy.
interpret as you would any other ratio!

101
Q

how do you calculate the likelihood ratio for a negative result?

A

inverse of LR(+)

1-specificity / sensitivity

102
Q

how can you interpret likelihood ratios?

A

a large LR(+) e.g. >10 = test could be useful in ruling IN a diagnosis.

small LR(-), close to 0 = test could be useful in ruling OUT a diagnosis

103
Q

which test would you use to compare two independent groups, with continuous, Normally distributed data?

A

Independent samples t-test

104
Q

which test would you use to compare two independent groups with continuous, but not Normally distributed data?

A

Mann-Whitney U

105
Q

which test would you use to compared two independent groups, with ordinal data?

A

Mann-Whitney U

or, Chi-squared test for trend

106
Q

which test would you use to compare two independent samples of nominal data with:
>2 categories
large sample
most expected frequencies >5

A

Chi-squared test

107
Q

which test would you use to compare two independent samples of binary data, with a large sample and all expected frequencies >5?

A

Comparison of two proportions
OR
Chi-Squared

108
Q

which test would you use to compare two independent samples of binary data, but without:
a large sample and all expected frequencies >5?

A

Chi-squared with Yates’ correction
OR
Fishers’ exact test

109
Q

which test would you use for paired, continuous, Normally distributed data?

A

paired t-test

110
Q

which test would you use for paired, continuous, but not Normally distributed data?

A

Wilcoxon matched pairs test

111
Q

which test would you use for paired, ordinal data?

A

Sign test or Wilcoxon matched pairs test

112
Q

which test would you use for paired, binary data?

A

McNemar’s test

113
Q

which test would you use for paired, nominal data with >2 categories?

A

trick question! consult statistician!

114
Q

how many degrees of freedom do you use for the independent t-test?

A

(n1 + n2) - 2

115
Q

how many degrees of freedom do you use for the paired t-test?

A

n-1

116
Q

assumptions for independent t-test

A
  1. two independent groups
  2. continuous outcome variable
  3. outcome data Normally distributed in both groups
  4. outcome data in both groups have similar SDs
117
Q

assumptions for paired t-test

A
  1. the differences between pairs are plausibly Normally distributed (not the actual data itself)
  2. the differences between pairs are independent of each other
118
Q

When calculating the sample size for a randomised controlled trial to compare a new treatment to a standard treatment for a particular disease the power of the study is _____?

A

the probability of NOT making a type II error

119
Q

what are the assumptions required to make linear regression models valid?

A
  1. variance of Y is same at each value of X
  2. standard deviation of Y is same at each value of X
  3. relationship between two variables is linear
  4. residuals are Normally distributed for each value of X
120
Q

list the sample size ingredients for a continuous outcome?

A
  1. target/anticipated effect size
  2. SD of outcome
  3. power
  4. significance
121
Q

with increasing significance level (alpha), sample size ____

A

decreases

122
Q

with increasing power, sample size _____

A

increases

123
Q

with increasing effect size, sample size_____

A

decreases

124
Q

with increasing variance, sample size ______

A

increases