Population:
The entire collection of individuals or measurements about which information is desired.
Sample:
A subset of the population selected for study. Primary objective is to create a subset of population whose center, spread and shape are as close as that of population.
Mthods of sampling: Random sampling, stratified sampling, systematic sampling, cluster sampling, multistage sampling, area sampling etc.
3. Parameter and Statistics
3.1 Parameter vs. Statistic
Parameter:
Any statistical characteristic of a population.
Statistic (estimator):
Any statistical characteristic of a sample.
How to estimate the mean parameter in a normal distribution?
mean/median: It depends
3.2 Statistical inference
We sample the population (in a manner to ensure that the sample correctly represents the population) and then take measurements on our sample and infer (or generalize) back to the population.
A numeric seta of data: Shape, Center, Variability
A categorical set of data: Frequency, percentage or proportion of each category
4.2 Variable
Categorical variable:
Nominal:
Categorical variables with no inherent order or ranking sequence such as names or classes. Value may be a numerical, but without numerical value (e.g., I, II, III).
The only operation that can be applied to nominal variables is enumeration.
Ordinal:
Variables with an inherent order or rank, e.g. mild, moderate, severe.
Can be compared for equality, or greater or less, but not how much greater or less.
Continuous variable:
Variables with all properties of interval plus an absolute, non-arbitrary zero point, e.g. age, weight, temperature.
Addition, subtraction, multiplication, and division are all meaningful operations.
Independent⇒Correlation=0,Correlation=0⇏Independent
证明: Use Counter-example Z∽N(0,1) and Cor(Z,Z2)=E(Z⋅Z2)−E(Z)E(Z2)=0−0=0
But Z in not independent of Z2
6 Normal Distribution
6.1 PDF
X∽N(μ,σ2) (μ:期望, σ2:方差)
f(x)=σ2π1e−2σ21(x−μ)2,−∞<x<+∞
标准正态:X∽N(μ=0,σ2=1)
f(x)=2π1e−21x2,−∞<x<+∞
Properties
X, Y are normal, X+Y is normal
Cor(X,Y)=0 and X, Y are normal, then X, Y are independent
整理注: 正态变量之和的正态性与零相关推出独立,需联合正态等附加条件;只有边缘分布正态不足以推出。
6.2 The 68-95-99.7 Rule (记住)
68% of the observations fall within σ of the mean μ
95% of the observations fall within 2σ of the mean μ
99.7% of the observations fall within 3σ of the mean μ
6.3 Standardizing and z-scores
if x is an observation from a normal distribution that has mean μ and standard deviation σ, the standardized value of x is
A standardized value is often called a z-score. If x is normal distribution with mean μ and standard deviation σ, then z is a standard normal variable with mean 0 and standard deviation.
2. (Review CLT)
Let x1,x2,…,xn be n i.i.d(独立同分布,缩写为iid、 i.i.d.、IID)normal random variables each with mean μ and standard deviation σ.
The sum of all of them ∑xi is also a normal with mean nμ and standard deviation σn.
Why standard deviation σn?
X, Y are independent, Var(X+Y)=Var(X)+Var(Y)
Variance = square of standard deviation
The distribution of average xˉ=n∑xi is also normal with mean μ and standard deviation σ/n.
Why standard deviation σ/n?
Var(cX)=c2⋅Var(X),c=const
The standardized score of the mean xˉ is
z=σ/nxˉ−μ
The mean of this standardized random variable is 0 and standard deviation is 1.