Stats Midterm 2

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

1/52

encourage image

There's no tags or description

Looks like no tags are added yet.

53 Terms

1
New cards

Formula for Covariance

Cov(X,Y) = E(XY) - E(X)*E(Y)

2
New cards

Var(aX + bY). Formula of variance with constants

a²Var(X) + b²Var(Y) + 2ab * Cov(X,Y)

3
New cards

Can Covariance be negative?

Yes, when negative it represents the direction of the linear relationship: Inverse relationship between X and Y (As one increases, the other decreases).

4
New cards

Can Variance be negative?

No

5
New cards

How to compare Linear Associations between two different Covariances?

Correlation, the normalized version of Covariance

6
New cards

Correlation Formula

Cov(X, Y) / (sigma_x * sigma_y)

7
New cards

Correlation (R/rho) Units

None, thats the point of correlation, so compare different situations that contain different units.

8
New cards

Positve vs Negative Correlation (R/rho) vs 0 Correlation.

Positive 1 indicates a perfect, linear association between the variable. -1 is perfect negative linear association. 0 indicates no linear correlation, but could be sinusoidal, exponential, etc. Does NOT mean independent.

9
New cards

Linear Correlation Graphs


10
New cards

Parameter

Quantity that is used to describe a characteristic of a population. Generally unknown.

11
New cards

Parameter Examples

Mean income of all employees at a company, Total number of injuries as the result of some treatment for all the residents in the country. (Both kinda unknown/ difficult to attain)

12
New cards

Statisitc

A quantity computed from the values in a sample, like a subset of all instead of everyone. Representative of the entire population.

13
New cards

Sampling Variability

Any statistic is a random variable, using a different sample would get a different result. Samples can look different and it’s good to know that.

14
New cards

Sampling Distribution

the probability distribution of a specific statistical value (like a sample mean or proportion) calculated from all possible random samples of a fixed size drawn from a given population

15
New cards

A (simple) random sample (SRS)

Of size n, is a sample selected in a way that every possible sample of size n has the same chance of being selected.

16
New cards

Simple Random Sample (SRS) Qualities

1. Suppose the population is finite of size N and sample size is n.

2. We often refer to values of the variable as the random sample rather than the individuals.

3. Unless otherwise stated, all data presented in examples are obtained from a simple random sample.

17
New cards

Sample Mean Denoted By:

X bar

18
New cards

Sample Mean Formula (Where N represents the total number of items or data points in the sample)

X bar = (x1+ x2 … + xn) / n

19
New cards


What does sample distribution represent?

(TBD), the average of all of the samples?

20
New cards

The Distribution of the Sample Mean (Mean)

mean (mew) = E(X-bar) = mean of X-bar (mew x-bar)

21
New cards

The Distribution of Sample Mean (Standev)

standev of X-bar² (sigma X-bar²) = V(X-Bar) = sigma² / n and sigma X-bar = sigma over sqrt(n)

22
New cards

The Distribution of Sample Mean (Total)

(TBD)

23
New cards

Central Limit Theorem

Normality rule of thumb: 30 or larger. If the original population is already normally distributed, the sample means will be normal even for smaller sample sizes. The mean for the sample will be similar to the mean of sampling the individual directly because there is enough data.

24
New cards

Point Estimation (theta)

A parameter (theta) is a single number that can be regarded as a sensible value for theta.

25
New cards

How is a Point Estimation Obtained?

Selecting a suitable statistic and computing its value from sample data. The selected statistic is call the point estimator of theta, denoted by theta hat.

26
New cards

Point Estimate for Binomial Data

P (probability of success) = x / n (successes over total number of trials)

27
New cards

Point Estimate for Continuous Measurements

mew (mean) = (TBD) chapter 6 notes

28
New cards

Which Estimator to Use?

Ideally, theta hat = theta. More realistically, get it as close as possible by saying theta hat = theta + error of estimation. The bias is the difference betweent the two thetas.

29
New cards

When is theta hat unbiased

THETA HAT IS UNBIASED IF ITS PROBABILITY DISTRIBUTION IS CENTERED AT THE TRUE VALUE OF THE PARAMETER.

30
New cards

X bar (Sample mean) = mew?

True

31
New cards

Biased vs Unbiased Statisitc

TBD, chapter 6 early notes

32
New cards

Which is the Better UNbiased Estimator?

The one which has less variance, like a skinier buldge on a graph:


33
New cards

What does the hat mean on a variable?

It is an estimator

34
New cards

How To Calculate Variance of Estimators?

Minimum Variance Unbiased Estimator (MVUE)

Even though it has a larger variance, MVUE breaks the tie?

35
New cards

Standard Error

Standard Deviation of Estimator. sigma / sqrt(n)

36
New cards

Method of Moments

a technique in statistics used to estimate population parameters (such as the mean, variance, or rates) by matching theoretical population moments to empirical sample moments.

37
New cards

Different k population moments meaning

1 is expected value, 2 is variance, 3 is skewness, 4 is kurtosis?

38
New cards

How to Find the mean of a Distribution? example 6 on chapter 6 notes

TBD

39
New cards

What is Wrong with the Method of Moment Estimator?

Derived from the distribution of the data to formulate the estimators. For example, if there is a uniform distribution 1,1,2,4,12. After calculating, theta hat = 2*X bar = 2(20/4) = 8. But we observed a value of 12, which wouldnt be possible on a uniform distribution on the interval [0,8]. (12 doesn’t fit in this)

40
New cards

Maximum Likelihood Estimation

Instead of using moments, use parameter estimation where the joint density of the responses is considered as a function of the parameters with the data fixed.

L(theta;y) = F(y:theta)

L is likelihood, f is the probability density, y is the vector of respones, and theta is the vector of parameters.

This result can be obtained by Bayes’ Rule.

Given a set of y, what is the likelihood of theta?

41
New cards

IID (usually for xi)

Independent and Individually Distributed

This is important because they have to come from the same pmf (ie poisson) … ?

42
New cards

MLE of Poisson Distribution

Find derivate of p(x;mew). Can do this by splitting it up with natural logs with respect to mew. This is the same of the Method of Moments Estimator (MoME), but the results will not always be the same. WE still need to check if this solution is a maximum? Can check this by doing the sign of the second derivative and whether it is opening up or down.

43
New cards

How to Determine if the MoM or MLE is better if they’re different?

Look at the bias of the two estimators. If they’re both unbiased, whichever one has a smaller variance.

44
New cards

MLE of Gamma Distribution

f(x1, x2, … xn; alpha, Beta)

= f(x2;alpha,Beta) * f(x2;alpha,Beta) * … f(xn;alpha,Beta)

etc. using natural log-likelihood

cant even do this because of partial derivatives I guess so we gotta use numerical methods

45
New cards

Confidence Interval (CI)

An interval calculated from the data that has a given probability of covering the true parameter of a value. This probability is known as the confidence level

46
New cards

Two Assumptions for a Confidence Interval for the population mean mew:

  1. The population follows a normal distribution

  2. The value of the population standev sigma is known (generally sigma is harder to know considering its a parameter, so its not always given)


47
New cards

CI formula Given Sigma and Normal

In the example for 95% confidence, the Z was 1.96. 95% confident mew (of the ENTIRE population) is contained in the given confidence interval.

For the z value, you use inverse Normal (invNorm). IE: invNorm(0.025, 0, 1) is for 95% confidence. 0.025 if the 0.05 on either side of the normal curve div by 2.

If you wanted 90% confidence, alpha is 0.1. 0.05 is on either side of the normal curve. InvNorm(0.05, 1, 0) = 1.645.


<p>In the example for 95% confidence, the Z was 1.96. 95% <strong>confident</strong> mew (of the ENTIRE population) is contained in the given confidence interval. </p><p>For the z value, you use inverse Normal (invNorm). IE: invNorm(0.025, 0, 1) is for 95% confidence. 0.025 if the 0.05 on either side of the normal curve div by 2.</p><p>If you wanted 90% confidence, alpha is 0.1.  0.05 is on either side of the normal curve. InvNorm(0.05, 1, 0) = 1.645.</p><img src="https://assets.knowt.com/user-attachments/75527c5d-c8e2-4e00-8a94-5ecd04370aca.png" data-width="50%" style="display: block; width:    50%; margin-left: auto; margin-right: auto;" data-align="center"><p></p>
48
New cards

What does a larger sample size do to confidence level?

Shrinks the confidence interval because its more representative of the population. A better snapshot, it just cost more time and money to get more samples

49
New cards

Suppose someone wants to have a specific sized confidence interval, what sample size is needed? (Presuming we know sigma)

solve for n in confidence interval formula, but you gotta round UP to the nearest sample: n = ((Z_a/2)*(sigma / E))². E is margin of error, which is ½ the width of mean.

50
New cards

What to do if you want to find CI but you don’t have sigma?

You estimate using sample standard deviation, called s, more specifically finding s² which is unbiased, but can use s because whatever. As long as our sample gets upward of 30, its close enough to plug in s instead of sigma. s is calculated from the data.

51
New cards

Confidence for Proportions instead of Means

Proportion is binary, if its there than 1, if it isn’t then its 0.

To calculate CI using proportion (if n is big enough), its p~ +- z_a/2 ~=~ [image].

The calculator does this formula for p hat, not for p tilda.

Well how do we know we have enough samples? np >= 10, n(1-p hat) >= 10. Both of these must be met.

<p>Proportion is binary, if its there than 1, if it isn’t then its 0.</p><p>To calculate CI using proportion (if n is big enough), its p~ +- z_a/2 ~=~ [image].</p><p>The calculator does this formula for p hat, not for p tilda.</p><p>Well how do we know we have enough samples?     np &gt;= 10,  n(1-p hat) &gt;= 10. Both of these must be met.</p>
52
New cards
53
New cards