Biostatistics Midterm #2!!!

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

1/123

flashcard set

Earn XP

Description and Tags

I can do it!!!!

124 Terms

1
New cards

what is the real world problem we encounter when dealing with true population mean?

we will never know the true value

2
New cards

define what equation this is and then tell me what each of the variables are in this equation

is is the confidence interval

x bar: sample mean

z : z-value, we get through how much confidence we set (ex. 95%, 99%)
sigma: the standard deviation of the population which we get through the expert
n : # of observation in the sample

<p>is is the confidence interval <br><br>x bar: sample mean</p><p>z : z-value, we get through how much confidence we set (ex. 95%, 99%)<br>sigma: the standard deviation of the population which we get through the expert <br>n : # of observation in the sample</p>
3
New cards

when we look at the letter z, what do we presume?

z is for normal distribution, otherwise known as a normal bell curve

4
New cards

how to we get the z value 1.96 or any z value for that matter in R?

qnorm(0.0025)
qnorm(0.975)

or

qnorm(c(0.025, 0.975)

which yields -1.96 & 1.96

5
New cards

what is mu?

mu is the true population mean

6
New cards

how do we interpret the confidence interval?

for every 100 random samples of the sample population, 95 of the sample confidence intervals will include the true population mean (mu)

7
New cards

what is alpha?

100 - confidence

8
New cards

define alpha

it is the chance in which we missed the mu

9
New cards

the more confidence you are, the ______ the alpha

smaller

10
New cards

two -sided confidence interval cue words

“between this # and this #”

11
New cards

one-sided confidence interval cue words

“larger than”, “less than”, no more than”

12
New cards

how does a two sided confidence interval equation look like?

knowt flashcard image
13
New cards

what happens to the confidence interval when we increase sample mean?

the confidence interval moves to the right

14
New cards

what happens to the confidence interval when we decrease sample mean?

the confidence interval moves to the left

15
New cards

what happens to the confidence interval when we increase alpha

the confidence interval becomes narrower

16
New cards

what happens to the confidence interval when we decrease alpha

the confidence interval becomes wider

17
New cards

what happens to the confidence interval when we increase the population standard deviation

the confidence interval becomes wider

18
New cards

what happens to the confidence interval when we decrease the population standard deviation

the confience interval becomes narrower

19
New cards

what happens to the confidence interval when we increase the sample population?

the confidence interval gets narrower

20
New cards

what happens to the confidence interval when we decrease the sample population

the confidence interval becomes wider

21
New cards

what happens when we don;t have sigma or the population standard mean?

we use t-intervals

22
New cards

what does the s stand for in the t interval equation?

sample standard deviation

23
New cards

the higher the degrees of freedom, t gets closer and closer to ___________?

normal distribution or (z)

24
New cards

how to we calculate degrees of freedom?

dof = n - 1

25
New cards

where do we get empirical distributions?

straight from data, observations in the real world

26
New cards

what is a theoretical distribution?

all possible outcomes from the data, we will never see this in the real world

27
New cards

what is the first thing we do when we sort out out the empirical data?

we check for normality!

28
New cards

what are the four ways we can assess for normality for empirical data?

histogram

29
New cards

when performing a shapiro-wilkes test, what do we consider normal?

p > 0.05, then normal

0 < 0.05, then not normal

30
New cards

when performing skewness, what is wininger’s rule of thumb?

-0.3 < s < 0.3 or -0.5 < s < 0.5

then normal

31
New cards

what do we consider normal data or normality?

a regular bell curve!

1sd —> 65%
2sd —> 95%
3sd —> 99%

32
New cards

what is the difference between theoretical distributions and empirical distributions?

theoretical distributions yield the same every time while empirical distributions do not

33
New cards

what is discrete data?

we are counting, no decimals

34
New cards

what is continuous data

measuring, measurement units

35
New cards

know the difference between left and right skewed

36
New cards

what are examples of left skewed data

  • hearing quality

    • blood oxygenation


37
New cards

what is an exmaple of right skewed data?

  • income

    • body weight


38
New cards

how do we know if we need to perform a poisson test for testing normality?

rate!!!! rate data!!!

39
New cards

in R, how do we conduct a poisson test?

ppois( 11, 50 × 0.2)

40
New cards

in R, how do we conduct a binomial test?

pbinom( 11, 50, 0.2)

41
New cards

draw out the chart for determining which test we should decided based on the data

standard normal, normal, poisson, uniform, binomial

42
New cards

no we are talking about sampling distributions

the more samples we do, the ______ the sampling distribution mean.

taller

43
New cards

the larger samplings we conduct the _____ ______ sampling distribution mean.

more convergent

44
New cards

in R, when we want to do a bunch of sampling distributions, how would we code that?

replicate( 1000, mean(sample, univ, 10, replace = T)

45
New cards

and the more samples we conduct for theoretical distributions… what happens?

you would eventually converge to the true population mean

46
New cards

what are the 3 configurations of the central limit theorem

  1. the more samples you do, the more normal the distribution becomes

  2. the mean of the sampling distribution is mu

  3. sd of distribution is sigma/ sq rt of n


47
New cards

when we want to get the probability of area under a curve, what function do we use?

pnorm(z value)

ex. pnorm(-3.11)

48
New cards

when we want to get probability of an area under the curve using t interval, what function do we use?

qt( z value, dof = n-1)

ex. qt(-2.55, 19)

49
New cards

steps for yielding p value

  1. calculate t statistic

  2. plug into theoretical distribution

  3. yields p value

  4. interpret p value


if less then 0.05, different, if more than 0.05 fine


50
New cards

what is the scale function in R?

the scale function is use to find outliers in our data

51
New cards

what is the syntax of the scale function in R?

scale (x)


which(abs(scale(x) > 3)))

52
New cards

what is computer zero

such a tiny number

53
New cards

n = (z x sigma/ x bar = mu)²


know what happens to n when we manipulate each of the variables

why is this important in science???

it’s what drives grant proposals

54
New cards

when do we use critical values

we use critical values when determining if two distributions are different or not different

55
New cards
term image

when we manipulate each of these variables, what happens?

56
New cards

if the t value is inside the zone, what do we do?

we reject, it is not different

57
New cards

if the t value is outside the zone, what do we do?

we accept, it is different

58
New cards

true or false: H0 + HA = 1

true

59
New cards

the alternative hypothesis is always towards the disparity

true

60
New cards

the null hypothesis is always no disparity

true

61
New cards

comparing the t value against the critical value is the same as ….

comparing p value against alpha

62
New cards

different means the test is

two sided

63
New cards

larger than or smarter than or smaller than means the t-test is

one-sided t test

64
New cards

type II error

fail to reject the null when it is actually false

65
New cards

type 1 error (alpha)

reject the null when it is actually true

66
New cards

to fix the type II error, how can we manipulate the data?

increase n, or decrease the sigma (standard deviation of the population)

67
New cards

how do we calculate power?

1 - beta

68
New cards

if we manipulate the variables in this equation, what happens to n?

knowt flashcard image
69
New cards

what is the sample size that get's us closest to a normal distribution of a t value for a normal distribution

27

70
New cards

the larger the sample size, the ,pre close the t value is to….

1.96 or normal distribution

71
New cards

hazard ratios

we yield unity or 1, null is unity

72
New cards

discrepancy

a-b = , null is 0

73
New cards

how do we know whether to reject or not reject the null

if 1 is included in the confidence interval

74
New cards

HR = 0.68, CI(0.43, 1.09)

do we reject or not reject the null

1 is part of the confidence interval so we cannot reject because it is a plausible value

75
New cards

HR = 0.48, CI(0.29, 0.80)

do we reject or not reject the null value

we reject the null because the null value (1) for hazard ratios is not included in the confidence interval, therefore, the p value is highly significant

76
New cards

any study with a large enough sample size (n) can do what to the p value?

it’ll make the p value really small

77
New cards

shapiro-wilkes test only works between what sample sizes?

what is the alternative?

3-5000

skewness

78
New cards

here is a confidence interval (920-1087)

1004 is the mean

is the p value greater than or less than 0.05

the p value is greater then 0.05 because the mean is in the confidence interval, therefore, there is no significant difference

79
New cards

default t test in R is paired or unpaired/

defualt is unpaired


paired =TRUE to make sure it is a paired t-test

80
New cards

with paired data you are testing

mean difference for paired t-test

81
New cards

in R how to we decipher if it is a one-paired or two-paired t-test?

mean of X → unpaired

mean difference —> paired

82
New cards

if you have equal variance what is your dof?

it yields an integer

83
New cards

if you have unequal variance in t -tests what is the dof

non-integer

84
New cards

can pairs happen through unpaired data?

yes it is called propensity matching

85
New cards

in R, what function do we use for propensity matching and what does propensity matching do?

matchit(x) via MatchIt package

86
New cards

what is power?

ability to see a difference when there is one, think microscope

87
New cards

paired examples for one-one mapping

doctor and patient, driver and passenger, twins

88
New cards

t.test(y ~ x): which is dependent and independent and which one is categorical and numerical?

y: dependent, numerical

x: independent, categorical

89
New cards

paired lengths always have to…?

they always have to match

90
New cards

in R, how do we conduct an ANOVA test?

summary(aov(x))

91
New cards

anova yields what values?

yields an F value and a P value

92
New cards

we use anova when there are….

multiple groups

you can use anova for 2 groups but usually for three or more

93
New cards

when we use anova for normality, what do we use?

we look at the residuals

94
New cards

for testing variance using anova, what test do we conduct?

we use the bartlett test

bartlett.test for variance

95
New cards

in anova, if we get a large F value what happens

we reject the null hypothesis

96
New cards

in anova, if we get a small F value, what do we do?

we fail to reject the null hypothesis

97
New cards

what is the problem with anova?

anova tells us if there’s a difference or no difference, but it does not tell you which group is different

98
New cards

what is important to know about anova in relation to degrees of freedom?

F value is indexed by 2 dof,

k-1

n-k

99
New cards

what tests can we conduct to determine which group is different after we conduct an anova test

pairwise.t.test ( data , groups)

tukeyHSD

100
New cards

what is the the problem with finding out which group is different after conducting the ANOVA test

it leaves a lot of room for a type 1 error