Docsity

Statistics - English preparatory notes, Appunti di Statistica

Toggle sidebar
bg1
STATISTICS
_______________________________________________________________________________________
Variable: A specific characteristic about a set of individuals.
Data: Any observation that has been collected about a characteristic.
Population: The complete set of all items that interest an investigator.
Sample: An observed subset of the population.
Parameter: A quantitative measure that describes a specific characteristic of a population.
Statistic: A quantitative measure that describes a specific characteristic of a sample.
Random sampling: Procedure in which each member of the population is chosen strictly by chance,
is equally likely to be chosen and every possible sample of n objects is equally likely to be chosen.
Systematic sampling: Assure that the population is arranged in a way that is not related to the
subject of interest. Select every jth item from the population, where j is the ratio of the population
size to the same sample size. Randomly, select a number from 1 to j for the first item selected.
BRANCES OF STATISTICS
Descriptive statistics: A set of graphical and numerical procedures to collect, process (analyze,
summarize, present) and interpret data…
Statistical inference: … developed to make predictions and estimates for drawing conclusions or
making decisions about a population based on sample results.
VARIABLES
A variable is a specific characteristic of an individual or object. They can be qualitative – no measurable
meaning to the difference in numbers – or quantitative – measurable meaning to the difference in
numbers.
Categorical: produce responses that belong to groups or categories
oNominal: words that describe categories or classes of response
oOrdinal: indicate the rank ordering of items and values are words that describe responses
Numerical: produce a response that comes from numbers
oDiscrete: produce a response that comes from a counting process
oContinuous: arises from a measurement process
Interval: indicates rank and distance from an arbitrary zero measured in unit
intervals
Ratio: indicate both rank and distance from a natural zero, with ratios with ratios of
two measurements being meaningful
Definition of the problem
Design of research (source of data)
Data collection
Statistical procedures
Data analysis
Information
Statistical procedurestheory, experience, literature
Knowledge (presentation)
Decision
Facing the problem
pf3
pf4
pf5
pf8

Anteprima parziale del testo

Scarica Statistics - English preparatory notes e più Appunti in PDF di Statistica solo su Docsity!

STATISTICS


Variable : A specific characteristic about a set of individuals.

Data: Any observation that has been collected about a characteristic.

Population: The complete set of all items that interest an investigator.

Sample: An observed subset of the population.

Parameter: A quantitative measure that describes a specific characteristic of a population.

Statistic: A quantitative measure that describes a specific characteristic of a sample.

Random sampling: Procedure in which each member of the population is chosen strictly by chance,

is equally likely to be chosen and every possible sample of n objects is equally likely to be chosen.

Systematic sampling: Assure that the population is arranged in a way that is not related to the

subject of interest. Select every j

th

item from the population, where j is the ratio of the population

size to the same sample size. Randomly, select a number from 1 to j for the first item selected.

BRANCES OF STATISTICS

Descriptive statistics : A set of graphical and numerical procedures to collect, process (analyze,

summarize, present) and interpret data…

Statistical inference : … developed to make predictions and estimates for drawing conclusions or

making decisions about a population based on sample results.

VARIABLES

A variable is a specific characteristic of an individual or object. They can be qualitative – no measurable

meaning to the difference in numbers – or quantitative – measurable meaning to the difference in

numbers.

Categorical : produce responses that belong to groups or categories

o Nominal : words that describe categories or classes of response

o Ordinal : indicate the rank ordering of items and values are words that describe responses

Numerical : produce a response that comes from numbers

o Discrete : produce a response that comes from a counting process

o Continuous : arises from a measurement process

Interval : indicates rank and distance from an arbitrary zero measured in unit

intervals

Ratio : indicate both rank and distance from a natural zero, with ratios with ratios of

two measurements being meaningful

Definition of the problem

Design of research (source of data)

Data collection

Statistical procedures

Data analysis

Information

Statistical procedurestheory, experience, literature

Knowledge (presentation)

Decision

Facing the problem

GRAPHS TO DESCRIBE CATEGORICAL VALUES

Frequency distribution : is a table used to organize data. The left column includes all possible

responses on a variable. The right column is a list of frequencies, or number of information for each

class. A relative frequency distribution is obtained by dividing each frequency by the number of

observations and multiplying the result by 100%.

Bar chart : draw attention to frequency for each category. In a bar chart, the height of a rectangle

represents each frequency.

Cross table : relationships between categorical or ordinal variables. Lists the number of

observations for every combination of values for every combination of vales for two categorical or

ordinal variables. The combination of all possible intervals for the two variables defines the cells in

a table.

Pie chart : draw attention to the proportion of frequencies in each category. The circle represents

the total, and the segments cut from its center depict shares of the total.

Pareto diagram : managers who need to identify major flaws and attempt to correct them quickly

with a minimum cost. It is a bar chart that displays the frequency of defect causes. The bar on the

left indicates the most frequent cause and going rightwards the bars indicate decreasing frequent

causes.

GRAPHS TO DESCRIBE NUMRICAL VALUES

Frequency distribution : Determine k, the number of classes. Classes should be the same width, w.

the width is determined as the ratio between the difference of the largest observation and the

smallest one, all divided by the number of classes – always round class width up. Class must be

inclusive and non-overlapping.

Histogram : is a graph that consists of vertical bars constructed on a horizontal line that is marked

off with intervals for the variable being displayed. The intervals correspond to the classes in a

frequency distribution table. The height of each bar is proportional to the number of observations

in the interval.

Ogive : is a line chart that connects points that are cumulative percent of observations below the

upper limit of each interval in a cumulative frequency distribution.

Stem-and-leaf display : is an EDA graph that is alternative to the histogram. Data are grouped

according to their leading digit(s) – stems – and the final digits are listed separately for each

member of the class.

Scatter plot : prepare a scatter plot by locating one point for each pair of two variables that

represent an observation in the data set. The scatter plot provides a picture of the data, including

the range of each variable, the pattern of values over the range, a suggestion as to a possible

relationship between the two variables, an indication of outliers (extreme points).

SHAPE OF A DISTRIBUTION

  • SYMMETRICAL : If the observations are balanced, or approximately evenly distributed, about its

center.

  • ASYMMETRICAL : A distribution is skewed if the observations are not symmetrically distributed on

either side of the center

o Left-skewed

o Right-skewed

MEASURES OF CENTRAL TENDENCY AND LOCATION

A parameter refers to a specific population of characteristic. A statistic refers to a specific sample

characteristic. Measures of central tendency are usually computed from sample data rather than from

population data.

remainder of the data. The second quartile, Q 2

or 50

th

percentile, is the median. The third quartile,

Q 3

or 75

th

percentile, separates approximately the smallest 75% from the rest of the data.

Q 1

= the value in the 0.25(n+1)th ordered position

Q 2

= the value in the 0.5(n+1)th ordered position

Q 3

=the value in the 0.75(n+1)th ordered position

The five-number summary refers to the five descriptive measures: minimum, Q 1

, Q

2

, Q

3

, maximum.

MEASURES OF VARIABILITY

Range is the difference between the largest and the smallest observation. The greater the spread

of the data from the center of the distribution, the larger the range will be. Although the range

measures the total spread of the data, the range may be an unsatisfactory measure of variability

because of outliers , either very high or very low observations influence it.

Interquartile range : the interquartile range (IQR) measures the spread in the middle 5% of the

data; it is the difference between the observation at Q 3

and those at Q 1

 IQR=Q 3

-Q 1

Box-and-whisker plot : a box-and-whicker plot is a graph that describes the shape of a distribution

in terms of the five-number summary. The inner box shows the numbers that span the range from

the 1

st

to the 3

rd

quartile. A line is drawn through the box at the median. There are two whiskers:

one is the line from the 25

th

percentile to the minimum value, the other one is the line from the 75

th

percentile to the maximum value.

Variance : the sample variance, s

2

, is the sum of the square differences between each observation

and the sample mean divided by the sample size, n, minus one. The population variance, σ

2

, is the

sum of the squared differences between each observation and the population mean divided by the

population size, N.

s

2

∑

i= 1

n

(x

i

−´x)

2

n− 1

and

σ

2

∑

i= 1

N

(x

i

−μ)²

N

Standard deviation : the population standard deviation, σ, is the (positive) square root of the

population of the population variance -

σ = √

σ

2

. The sample standard deviation, s, is the square

root of the sample variance – s= √s ²

. To compute the variance requires squaring the distances,

which then changes the unit of measurement to square unit. The standard deviation restores the

data to their original measurement unit. The standard deviation measures the average spread

around the mean.

 Shortcuts for variance :

s

2

∑

i= 1

n

x

i

2

∑

x

i

n

n− 1

and

s

2

∑

i= 1

n

x

i

2

−´x ²

n− 1

Coefficient of variation : The coefficient of variation, CV, is a measure of relative dispersion that

expresses the standard deviation as a percentage of the mean (provided that the mean is positive).

The population coefficient of variation is

CV =

σ

μ

if μ > 0. The sample coefficient of

variation is CV =

s

´x

∙ 100 % if ´x > 0.

CHEBYSHEV’S THEOREM

For any population with mean μ, standard deviation σ and k > 1, the percentage of observations that lie

within the interval [μ ± kσσ] is at least 100[1 - (1/k²)] %, where k is the number of standard deviations.

For many large populations (mounded, bell-shaped), the empirical rule provides an estimate of the

approximate percentage of observations of the mean:

 Approximately 68% of the observations are in the interval

μ ± 1 σ

 Approximately 95% of the observations are in the interval μ ± 2 σ

 Almost all the observations are in the interval μ ± 3 σ

Z-score : A z-score is a standardized value that indicates the number of standard deviations a value

is from the mean. A z-score greater than 0 indicates that the value is greater than the mean; a z-

score smaller than 0 indicates that the value is lower than the mean and 0 z-score means that the

value is the mean. If the dataset is the entire population of data and the population mean, μ, and

the population standard deviation, σ, are known, then for each value x

i

, the corresponding z-score

associated with x i

is defined as follows:

z=

x

i

−μ

σ

MEASURES OF RELATIONSHIPS BETWEEN VARIABLES

Covariance (Cov) is a measure of the linear relationship between two variables. A positive value indicates a

direct or increasing linear relationship. A population variance is

Cov ( x , y )=σ

xy

∑

i= 1

N

( x

i

−μ

x

)( y

i

−μ

y

N

where x i

and y i

are the observed values, μ x

and μ y

are the population means and N is the population size.

A sample covariance is

Cov ( x , y )=s

xy

∑

i= 1

n

x

i

−´x

y

i

− ´y

n− 1

where x i

and y i

are the observed values, ´x and

´yare the sample means and n is the sample size. Covariance does not provide a measure of the strength

between two variables. The most common measure to overcome these shortcomings is called Pearson’s

product-moment coefficient of correlation. It is generally a more useful measure because it provides both

the direction and the strength of a relationship. The covariance and the respective correlation coefficient

have same sign.

Correlation coefficient : The correlation coefficient is computed by dividing the covariance by the

product of the standard deviations of the two variables. A population correlation coefficient, ρ, is

ρ=

Cov (x , y )

σ

x

σ

y

. A sample correlation coefficient, r, is

r =

Cov (x , y )

s

x

s

y

. A useful rule is that the

following relationship holds:

|r|≥

√

n

. It can be shown that the correlation coefficient ranges from

-1 to +1. The closer r is to +1, the closer the points are to an increasing straight line, indicating a

positive linear relationship. When r = 0, there is no linear relationship – but not necessarily a lack of

relationship. Correlation does not imply causation. It is possible for two variables to be highly

correlated but that does not mean that one variable causes the other variable.

DISCRETE RANDOM VARIABLES

Expected value : The expected value E[X] of a discrete random variable X is defined as

E [ X ] =μ=

∑

x

xP(x )

Where the notation indicates that the sum extends over all the possible values of x. The expected

value of a random variable is also called the mean and it is denoted by μ.

Variance : Let X be a discrete random variable. The expectation of the squared deviations about the

mean, (x – μ)², is called the variance, denoted as σ² and given by

σ

2

=E [ ( x−μ)

2

]=

∑

x

(x−μ) ² P ( x)

The variance of a discrete random variable X can also be expressed as

JOINTLY DISTRIBUTED DISCRETE RANDOM

VARIABLES

Joint probability distribution : Let X and Y be a pair of discrete random variables. Their joint

probability distribution expresses the probability that simultaneously X takes specific value x and Y

takes specific value y, as a function of x and y. The probability of the intersection of bivariate

events, P(A i

∩B

i

), using random variables P (x, y) is P ( x , y )=P ( X =x ∩Y = y )

Marginal probability distribution : Let X and Y be a pair of jointly discrete random variables. In this

context, the probability distribution of the random variable X is called marginal probability

distribution, and is obtained by summing the joint probabilities over all possible values, that is

P ( x )= ∑

y

P( x , y )

and similarly

P ( y )= ∑

x

P( x , y)

.

Let X and Y be discrete random variables with jointly probability distribution P (x, y). Then:

  1. 0 ≤ P(x, y) ≤ 1 for any pair of values x and y;
  2. The sum of the joint probabilities P(x,y) over all possible pairs of values must be 1.

Conditional probability distribution : Let X and Y be a pair of jointly distributed discrete random

variables. The conditional probability distribution of a random variable Y, given that the random

variable X take the value x, expresses the probability that Y takes the value y when x is fixed for X.

This is denoted P(y|x) and so, by the definition of conditional probability

P ( y|x )=

P (x , y )

P ( y)

and the

conditional probability distribution of X, given Y=y is P ( x| y )=

P (x , y )

P(x )

Independence of jointly distributed random variables : The jointly distributed random variables X

and Y are said to be independent if and only if their joint probability distribution is the product of

their marginal probability distributions, that is if and only if P ( x , y )=P( x )∙ P( y ) for all possible

pairs of values x and y. K random variables are independent if and only if

P

x

1

, x

2

, … , x

kσ

=P

x

1

∙ P

x

2

∙ … ∙ P( x

kσ

If random variables X and Y are independent: P(y|x) =P(x) and P(x|y) =P(y).

The conditional mean is computed using the following

μ

y∨ x

=E [Y|X ]=

∑

y

P( y∨x)

Expected values of functions of jointly distributed random variables : Let X and Y be a pair of

discrete random variables with joint probability distribution P(x,y). The expectation of any function

g(X,Y) of these random variables is defined as follows:

E

[

g ( X ,Y ) ]

∑

x

∑

y

g ( x , y ) P(x , y )

Linear combination of random variables: W = a + bX

μ

x

=E

[

W

]

=a μ

x

  • bμ

x

∧σ

x

2

=a

2

σ

x

2

  • b

2

σ

y

2

  • 2 abCov( X ,Y )

 Linear combination of random variables: W = a 1

X 1

  • a 2

X 2

  • … + a k

X k

μ

W

=E [W ]=

∑

i= 1

kσ

a

i

μ

i

∧σ

W

2

∑

i= 1

K

a

i

2

σ

i

2

∑

i= 1

kσ− 1

∑

j= 1

kσ

a

i

a

j

Cov ( x

i

, y

j

Covariance : Let X be a random variable with mean μ

x

and let Y be a random variable with mean μ

y

.

The expected value (X- μ x

) (Y- μ y

) is called the covariance between X and Y. For discrete random

variables,

Cov ( x , y )=E [ ( X−μ x ) (Y −μ y ) ]= ∑

x

∑

y

( x−μ x ) ( y−μ y ) P ( x , y )

. An equivalent

expression as follows:

Cov ( x , y )=E [ XY ]−μ

x

μ

y

∑

x

∑

y

xyP ( x , y )−μ

x

μ

y

Correlation : Let X and Y be jointly distributed random variables. The correlation between X and Y is

as follows: ρ=Corr ( X , Y )=

Cov (X , Y )

σ

x

σ

y

. This results in a standardized measure of relationship

that varies from-1 to +1.

Statistical independence : if two random variables are statistically independent, the covariance

between them is 0. However, the converse is not true.