BIO 211: Statistics and Data Analysis

0.0(0)
Studied by 8 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/307

flashcard set

Earn XP

Description and Tags

lectures 1-7 (quiz 1), Lectures 9-13 (quiz 2), Lectures 15-17( quiz 3), lecture 19 (quiz 4)

308 Terms

1
New cards

Science

A way of understanding the natural world by testing explanations

2
New cards

t-statistic for one sample test gets larger when

the difference between null and actual increases

3
New cards

null hypothesis of single sample t-test

actual mean is near the given mean

4
New cards

5 steps of single sample t-test

  1. calculate sample mean

  2. calculate standard deviation

  3. calculate standard error of the mean

  4. calculate t statistic

  5. compare to t-distribution with degrees of freedom


5
New cards

3 types of t-tests

  • compare data to a fixed number

  • compare two groups of paired data

  • compare two groups of unpaired data


6
New cards

z value’s 0.05

1.96

7
New cards

95% confidence interval

2 SE above and below the mean

8
New cards

applications of t

  • confidence interval of the mean

  • compare estimate of the mean to given value

  • compare paired groups

  • compare unpaired groups


9
New cards

does z or t reject the null more?

t

10
New cards

degrees of freedom is related to

sample size

11
New cards

the t distribution

  • always centered at zero

  • has a single parameter, degrees of freedom

  • as degrees of freedom gets bigger, it gets closer to a normal distribution


12
New cards

z =

observation - mean /SD

13
New cards

whats the problem if we try to find the Z of the sampling distribution of the means?

the denominator, we dont know the standard deviation of the sampling distribution of the mean

14
New cards

how is the t distribution different

it has a bell shape but the tails are thicker, making it more likely for observations to fall beyond two standard deviations from the mean

15
New cards

t distribution is not

normal because it has thicker tails and the standard error is not constant and it depends on the sample, adding error to our estimate of t. however, as sample size increases SE gets better and t gets closer to z

16
New cards

thick tails of students t

helpful for resolving problem with a less reliable estimate of standard error when n is small

17
New cards

anatomy of a test statistic

point estimate - null value / SE of point estimate

18
New cards

SE =

s / sqrt n

19
New cards

students t has its own

t distribution

20
New cards

how do we fix the z equation for sampling distributions?

use students t = Y-u / SE

21
New cards

z score

the number of standard deviations it falls above or below the mean

22
New cards

observations more than 2 SD away from the mean

|z| > 2

23
New cards

A p value is not…

  • the probability that the null hypothesis is true

  • the probability that the alternative hypothesis is false

  • not the probability of random chance

  • does not indicate the magnitude of importance


24
New cards

Type 1 error

rejecting the null hypothesis when it is true, false positive

25
New cards

if we dont want a type 1 error

decrease a

26
New cards

statistical power

the probability that a random sample will lead to a rejection of the false null hypothesis (type 2 error); increases with sample size; complement of beta

27
New cards

fixing probability of type 1 error

  • make alpha smaller, divide by number of tests, bonferroni, can be too restrictive

  • accept a certain number of errors


28
New cards

The probability of making at lease 1 type 1 error in N tests

1- (1-a)^N

29
New cards

The probability of making no errors in N tests

(1-a)^N

30
New cards

problem with multiple tests

by chance, 5% of data will give you a false positive

31
New cards

type 2 error increases with

overlap between null and alt

32
New cards

if we dont want a type 2 error

increase a

33
New cards

area to the right of the critical value of the alt graph

reject null, when you are supposed to, or statistical power

34
New cards

if the test statistic is to the left of the critical value

the p value is larger than the alpha value

35
New cards

p value on graph

to the right of the test statistic

36
New cards

increasing a increases

error rate

37
New cards

p(type 1 error | H0 true) =

5%

38
New cards

to the left of the critical value on the alt hypothesis curve

the probability for a type 2 error or beta

39
New cards

when using a 5 % significance level there is a

5% change of making a type one error

40
New cards

we dont want to incorrectly reject the null more than…

5% of the time

41
New cards

Type 2 error

not rejecting the null hypothesis when we should have, false negative

42
New cards

normal distribution

natural, and artifically made, most widely used assumption in statistics; gaussian distribution

43
New cards

standard normal distribution

mean is 0 and sd is 1; x axis = z values; area under curve is probability; infinite tails

44
New cards

low p-value

unlikely, reject

45
New cards

high p-value

likely, accept

46
New cards

chi squared does not work with…

proportions

47
New cards

chi square distribution

distribution of the statistic under the null hypothesis

48
New cards

steps of chi squared

  1. question, anything interesting in the data?

  2. null hypothesis

  3. find chi squared

  4. is the test statistic grater than the critical value?

  5. make conclusion


49
New cards

why do we square in chi square?

  • negatives will become positive

  • unusual differences will be exaggerated


50
New cards

df =

number of categories - 1

51
New cards

x2 =

sum of (observed-expected)2 / expected

52
New cards

Null hypothesis (H0)

you want to reject, what you would expect if the world was boring

53
New cards

hypothesis testing framework

  • null hypothesis

  • alternative hypothesis

  • conduct hypothesis under assumption that null hypothesis is true

  • use test results to determine if null hypothesis is true or not


54
New cards

P-value

probability of obtaining the observation or more extreme value if the null hypothesis is true, probability measured as area under the curve to the right of the chi squared

55
New cards

null distribution

sampling distribution of the test statistic assuming H0, describes the probability distribution of expected outcomes under H0

56
New cards

Alternative hypothesis (HA or H1)

the interesting hypothesis you want to support; cannot be proven by null hypothesis testing

57
New cards

How is null hypothesis testing used in science?

to see if we have sufficient evidence to support a scientific claim

58
New cards

The standard deviation of the sampling distribution for proportion is the same as…

the standard error of the estimated proportion

59
New cards

example of multinomial distribution

chances of something happen on days of the week

60
New cards

discrete data

usually finite countable numbers, but can be infinite

61
New cards

what plots are used for discrete probability distributions?

bar plots

62
New cards

What rule can we use in discrete probability distributions and why?

because the data is mutually exclusive, you can use the sum rule

63
New cards

probability density function of continuous probability distributions

a smooth curve

64
New cards

How to find the probability of something using a continuous distribution?

the proportion of data in the shaded area

65
New cards
term image
66
New cards

since continuous probabilities are estimated as the area under the curve, the probability of an exact value is….

0

67
New cards

N(u, o)

normal with mean u and standard deviation o

68
New cards

not all bell shaped curves are

normal distributions

69
New cards

Pr [a<x<b]

integral between a and b; generalized sum rule

70
New cards

binomial distribution is…

a function over each possible outcome

71
New cards

probability of proportion calculated using..?

binomial probability formula

72
New cards

proportion =

successes / trials

73
New cards

binomial distribution depends on..

p and n

74
New cards

Pascals triangle

  • sides are all ones

  • second row diagonal: 1,2,3,4…

  • each number is the sum of the ones on top

  • 1’s are zeros

  • n = 5, k = 3. row 5 column 3


75
New cards

simple binomial distribution formula

number of scenarios x probability of single scenario

76
New cards

k

number of successes

77
New cards

# of scenarios

(n/k) = n! / k! (n-k)!

78
New cards

0!

1

79
New cards

(n/k)

n! / k! (n-k!)

80
New cards

(n/n-1) =

n

81
New cards

n!

n x n-1 x n-2 …

82
New cards

1!

1

83
New cards

choose function

calculates the number of ways to choose k successes in n trials

84
New cards

P(single scenario)

pk (1-p)n-k

85
New cards

n

number of trials

86
New cards

if we selected four individuals to participate in the experiment, how would we find the probability of a certain number of individuals succeeding or failing?

Since they are independent joint (and) variables, multiply each persons probability together, and then multiply by the amount of ways it could possibly happen, aka which person does what

87
New cards

Bernoulli random variable

when an individual trial has only two outcomes

88
New cards

since 35% of people refused to administer a shock, the probability of SUCCESS is

0.35

89
New cards

failure milgrams

administers shock

90
New cards

Success milgrams

refuses to administer shock

91
New cards

Trials in Milgram’s experiment

each person

92
New cards

Milgram Experiment

  • Stanley Milgram

  • Experimenter orders teacher to shock the learner each time they answer a question incorrectly

  • shocks are not real

  • 65% of people would give the shocks


93
New cards

What did the Milgram experiment measure?

the willingness of participants to obey an authority figure who instructed them to perform acts that conflicted with their personal conscience

94
New cards

Sensitivity

High probability of true positives, fewer false negatives; Pr (+|has disease) = TP / TP + FN

95
New cards

Specificity

High probability of True negatives, fewer false positives; Pr(-|doesn’t have disease) = TN / TN + FP

96
New cards

Is it better to know if the test will be positive given you have the disease, or that you have the disease given the test is positive.

knowing if you have the disease given the test is positive.

97
New cards

Precision

Pr [has disease | positive result] = TP / TP + FP

98
New cards

False negative / Type 2 error

test says negative when truly positive

99
New cards

False positive / Type 1 error

tests says positive when really negative

100
New cards

True Negative

Test predicts negative when truly negative.