
















Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!

















The information of experiments and surveys is collectively called data
Three main components of statistics:
Design : planning how to obtain data Description : summarizing the data obtained Inference : making decisions and predictions
Probability: framework for quantifying how likely various possible outcomes are
Subjects: entities measured in a study
Population : total set of subjects in which we are interested
Sample : subset of population
Descriptive statistics Inferential statistics methods for summarizing the collected data. Summaries= graphs, averages, percentages
methods of making decisions or predictions about a population, based on data obtained from a sample of it
Measurements and samples vary from person to person so predictions will be more accurate for larger samples
Margin of error: measure of the expected variability from one random sample to another
Statistical significance refers to the claim that a result from data is not likely to occur randomly but is instead likely to be attributable to a specific cause
2.
A variable is any characteristic observed in a study
Categorical Quantitative (numerical)
Categorical variable: if each obs. belongs to one set of distinct categories
Example:
Gender (male or female) Type of residence (apartment, condo, …)
Quantitative variable: if observations take numerical values that represent different magnitude of the variable
Example:
Age Number of siblings Annual income
A quantitative variable is discrete if the possible values form a set of separate numbers (0,1,2,3,…)
A quantitative variable is continuous if its possible values form an interval
Example:
Height/weight Age
The distribution of a variable describes how the observations are distributed across the range of possible values (found through graphs and frequency tables )
Frequency table
Is a listing of possible values for a variable
( n ¿ ¿ i )¿= 100 pi × N
Proportion: is the number of observations in a category divided by the total number of observations
( f ¿¿ i ) ¿= (^) Nni
Dot plot: shows a dot for each observation placed above its value on a number line Stem-and-Leaf Plot: portrays the individual observations Histogram: uses bars to portray data
Dot plot
Horizontal line Label it with the name of the variable Mark regular valued of the variable on it For each observation, place a dot above its value in the number line
Stem-and-Leaf plots
Sort the data from smallest to largest Stems in a column, from the smallest Vertical line to their right On the right side of the line, each leaf in increasing order
Histogram
Provides a versatile way to picture the distribution of a large number of data
Histogram for frequency distribution with unequal classes (intervals of different sizes)
Compute the frequencies density hi= (^) di ¿
Dot plot and steam-and-leaf plot:
for small data sets data values are retained
Histogram: for large data sets compact flexibility to define intervals
The median is the middle value of the observations when they are ordered from the smallest to the largest (or viceversa)
Put the n observations in order of their size
If the number of the observations is:
An outlier is an observation that falls well above or below the overall bulk of the data
The shape of distribution influences whether the mean is larger or smaller than the median
A numerical summary measure is resistant if outliers have little or any influence on its value
The mode is the value that occurs most often and it’s the highest bar in the histogram
INDEX NUMBERS: to study the dynamics of time series
Change from time t-1 to time t is:
yt yt − 1
if the ratio> 1 yt> y t–1 time series increasing
if the ratio< 1 yt< y t–1 time series decreasing
FIXED BASE INDEX NUMBER : I^ t s =^100 ysyt
Percent change= V^ t s = I^ t s −^100
CHAIN BASE INDEX NUMBER: I^ t t − 1 =^100 ytyt − 1
Perfectly simmetric: mean= median Skewed to the left: mean median Skewed to the right: mean median
The median is resistant The mean isn’t resistant
The range is the difference between the largest and the smallest values in the data set
Range= max value- min value
It’s severely affected by outliers because it uses only the extreme values
The deviation of an observation x from the mean x^ is the difference between the observation and the mean ( x-x^ ¿
A deviation is:
Positive if the value falls above the mean Negative if it falls below the mean
The sum of the deviations is always zero
Summary measures of variability from the mean use the squared deviations or the absolute values the average of the squared deviations is called the variance
σ^2 = Σ ( x^ − x )
2 N
The standard deviation gives a measure of variation by summarizing the deviations from the mean of the observations and calculating an average of this deviations.
σ =√ σ^2
coefficient of variation= σ x^100
2.
Finding QUARTILES :
If 0 no association If the value is positive positive association If negative negative association
r = (^) N^1 Σ ( x − σx^ ) x
( y − y ) σy
3.
REGRESSION LINE : predicts value of variable y as a function of the value of x
^ y = predicted value of y = b 0 + b 1 x
b0= y-intercept= value of y when x= 0 b1= slope= Δ Δ^ yx
b1= CXY/DX= ∑(xi-μx)(yi-μy)/ ∑(xi-μx)^
y-intercept= b0= μy-b1μx
RESIDUALS = prediction errors= y −^ ^ y
LEAST SQUARE METHOD: give the regression line
R-SQUARED: percentage of variability in the response variable that can be explained by x
Goodness of fit measure of regression
3.
EXTRAPOLATION: refers to using a regression line to predict y values for x values outside the observed range of data
We search for observations that are regression outliers. They are influential if:
a value is low or high compared to the rest of the data the observation falls quite far from the trend
a strong correlation doesn’t mean that x causes y to change
LURKING VARIABLE : variable usually unobserved that influences the association between the variables
SIMPSON’S PARADOX : when the direction of association changes after we include a third variable
4.
Sample survey: selects a sample of people from a population and collects data of them
Census : count the n of ppl and measure their characteristics
An observational study merely observes rather than experiments with the study subjects.
An experimental study assigns to each subject a treatment and then observes the outcome on the response variable.
Sampling frame: list of subjects from which the sample is taken.
It lists the entire population hard to identify every subjects
Sampling design: method for selecting subjects
A simple random sample of n subjects from a population is one in which each possible sample of that size has the same chance of being selected
Bias: when the results from the sample are not representative of the population exhibit bias
Sampling bias: from using nonrandom samples or having undercoverage (sampling frame that lacks representation from population) Nonresponse b: some sampled objects can’t be reached or refuse to participate or fail answers questions Response b.: when subject gives incorrect response
Simple random sampling gives every possible sample the same chance of selection. In practice, more complex random sampling designs are often easier to implement or are more efficient, requiring a smaller sampling size for the same precision.
Simple random sampling: number the subjects, generate a set of those numbers, sample the subjects Cluster random sampling: divide population in clusters, select a simple random sample of clusters, use the subjects in those clusters Stratified random sampling: divide population in different groups (strata) based on a characteristic, select a simple random sample from the strata
a. Are not in some other event (COMPLEMENT OF THE EVENT) b. Are in one event and in another event (INTERSECTION OF TWO EVENTS) c. Are in one event or another, or both (UNION OF TWO EVENTS)
COMPLEMENT OF THE EVENT : complement of event A consists of all outcomes in the sample space that are not in A denoted as Ac
P ( Ac^ )= 1 − P ( A )
DISJOINT EVENTS: two events are disjoint if they don’t have any common outcomes
INTERSECTION : outcomes both in event A and B
UNION : outcomes that are in A or in B or both
Addition Rule:
For union P(A ∪ B)= P(A)+P(B) – P(A ∩ B)
If events are disjoint P(A ∩ B)= 0 P(A or B)= P(A) + P(B)
Multiplication Rule:
For intersection of independent events P(A ∩ B) P(A) P(B)
5.
For events A and B, the CONDITIONAL PROBABILITY of event A, given event B, is:
P ( A B )= P ( P^ A (^ ∩ B^ ) B )
Denominator: ‘given’ event
Multiplication rule for P(A and B)= P(B) P(AB)
Two events are independent if the probability that one occurs is not affected by whether or not the other one occurs.
Independent if: P(AB)= P(A)/ P(BA)= P(B) P(A and B)= P(A) x P(B)
6.
RANDOM VARIABLE : numerical measurement of the outcome of a random phenomenon
From: Use of random sampling Randomized experiment to gather data
Random v. consists in transforming EVENTS (complex objects of a great variety of kinds) INTO NUMBERS (easy to use object on which we can use math)
The probability distribution of a random variable specifies its possible values and their probabilities advantage of a random variable= possible to specify probabilities
CUMULATIVE PROBABILITY FUNCTION : F(xi)= P(X≤ xi)= ∑ p(xi)
A DISCRETE random variable takes a set of separate values (0,1, 2, …). Its probability distribution assigns a probability P(x) to each possible value x.
The probability falls between 0 and 1 Sum of probabilities= 1
MEAN OF PROBABILITY DISTRIBUTION : multiply each possible value of the random variable by its probability and then sum also called EXPECTED VALUE
μ = Σ xP ( x )
VARIANCE : V ( X )= Σ ( x − μ )^2 P ( x )
BERNOULLI RV : is a random variable which assumes value 1 with prob or value 0 with prob 1 –
XBer(π)
Expected value/μ= π
P ( x )= (^) x! ( nn −^ !x )! px^ ( 1 − p ) n − x
n!= n factorial= product of all integers from 1 to n
ex.: 1!= 1, 2!= 12= 2, 3!= 12*3= 6, …
BINOMIAL MEAN= np
Consider two variables X and Y The probability distribution of the bivariate random variable is the joint probabilities of the two RV
Conditional probability: P(yx) = P(Y=yX=x) is given by
P ( y x )= P P (^ y (^ x,^ ) x )
P ( X = y X = x )= P^ ( Y P^ = ( X^ y^ = ,^ X x =) x^ )
Two random variables are independent if:
COVARIANCE: σ^ XY = E^ ( X − μx ) ( Y^ − μ^ y )
COEFFICIENT OF LINEAR CORRELATION: ρXY^ =^ σXσYσXY
Coefficient of linear correlation= -1 if the pairs x,y are aligned on a decreasing line
If the RV are independent XY=0 and XY=
POPULATION DISTRIBUTION: distribution from which we take the sample. Values for its parameters are fixed but usually unknown.
DATA DISTRIBUTION: distribution of the sample data. With random sampling, the larger the sample size n, the more closely the data distribution resembles the population distribution.
SAMPLING DISTRIBUTION: is the probability distribution that provides probabilities for all the possible values of the statistic.
The sampling distribution of the sample proportion p has:
μ/E= p (proportion)
V= p^ (^1 n −^ p )
np ≥^ 15 and n(1-p) ≥ 15 sampling distribution has a ‘normal’ distribution
Two results:
One result provides formula for the mean and standard deviation of the sampling distribution The other indicates that its shape is often a normal distribution
CONFIDENCE INTERVAL : interval containing the most believable values for a parameter.
CONFIDENCE LEVEL : probability that this method actually produces an interval that contains the parameter close to 1 usually 0.
MARGIN OF ERROR : measures how accurate the point estimate is in estimating a parameter. It’s a multiple of the SD 1,96* (SD) when the sampling distribution is normal.
A confidence interval is constructed by taking the point estimate and adding and subtracting a margin of error. The margin of er. is based on the SD of the sampling distribution of that point estimate.
[point estimate +/– margin of error]
When the sampl. distrib. is normal, a 95% confidence level has a margin of error equal to 1.96 standard deviations.
8.
Population proportion= p
The point estimate of the population proportion is the SAMPLE PROPORTION= ^ p
For large random samples, the central limit theorem tells us that the sampling distribution of the sample proportion ^ p^ is approximately normal.
M (margin of error)= z-score(SD)
[point estimate margin of error] ^ p^ 1.96(standard deviation)
The formula of SD depends on the unknown value p we need to estimate SD as the
FORMULA DEFINITIVA: [point estimate z-score(se)]
In using confidence intervals, we must compromise between the desired margin of error and the desired confidence of a correct inference.
As one gets better, the other gets worse. That’s why we won’t use a 99.99% confidence interval it would have too large a margin of error to tell you where the parameter falls 95% is the most common
The margin of error:
Increases confidence level increases Decreases sample size increases
With fixed m and the confidence level, n can be found=
n =^ p ¿ ¿
The sample mean is the point estimate of the population mean
T DISTRIBUTION: bell shaped and symmetric
Its standard dev. Is a bit larger than 1 depends on the degree of freedom (df= n–1)
The t-distribution has more variability than the standard normal distribution. The larger the df the closer it gets to normal distribution.
t-score * standard error margin of error for a confidence interval for the mean
A 95% confidence interval for the population mean is