Docsity

Topics 1-6, Apuntes de Estadística

Toggle sidebar
bg1
Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 1
STATISTICS APPLIED TO PSYCHOLOGY I
Part Ia: Univariate descriptive Statistics
1. Introduction
2. Summarizing data: Frequency distributions and graphical representations
3. Measures of location and central tendency
4. Measures of variability
5. Measures of shape: Skewness and kurtosis
6. Standard scores
Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 2
UNIT 1
INTRODUCTION
1.1. Basic concepts
1.2. Variables
1.3. Scales of Measurement
1.4. Types of variable
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Vista previa parcial del texto

¡Descarga Topics 1-6 y más Apuntes en PDF de Estadística solo en Docsity!

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 1

STATISTICS APPLIED TO PSYCHOLOGY I

Part Ia: Univariate descriptive Statistics

  1. Introduction
  2. Summarizing data: Frequency distributions and graphical representations
  3. Measures of location and central tendency
  4. Measures of variability
  5. Measures of shape: Skewness and kurtosis
  6. Standard scores

U NIT 1

INTRODUCTION

1.1. Basic concepts

1.2. Variables

1.3. Scales of Measurement

1.4. Types of variable

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 3

1.1. BASIC CONCEPTS

Population. The totality of potential observations or the entire set of elements that share a specified characteristic of interest. It is the group about which the researcher wishes to draw conclusions

Sample. Any subset of a population. The sample size, N is the number of elements that constitute the sample. Often it is simply called “data set”

Observation, score, case, datum. Any individual element of a sample

Eg.  Students of Psychology in EU  First-year students of Psychology at UCM  People suffering from schizophrenia  Schizophrenic patients under treatment with haloperidol

What constitutes a population or a sample of it depends entirely on the context in which the question arises

Statistics ( plural ): “Statistics is a mathematical science pertaining to the collection, analysis, interpretation or explanation, and presentation of data” (Wikipedia)


For us, as psychologists, Statistics will be a tool to judiciously :

(i) organize, summarize, and present data collected from a sample Descriptive Statistics

(ii) draw inferences about the “target” population being studied Inferential Statistics

Descriptive Statistics Probability  (sample)

Inferential Statistics (population)

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 7

Stevens ( 1946, Science , 103, 677–680 ) proposed four types of scales of measurement that still are in use:

a. Nominal.- Two objects are assigned the same number if they have the same value of the attribute Eg. Birthplace

  • Valid operations: membership and equivalence

b. Ordinal. - The property of magnitude holds: when an object has more of the attribute than another object it is given a bigger number  Objects are assigned numbers such that the order of the numbers reflects an order relation defined on the attribute Eg. School grades

  • Valid operations: membership, equivalence, and order

c. Interval. - The property of intervals also holds: the unit of measurement means the same thing throughout the scale of numbers  Objects are assigned numbers such that distances between the numbers reflect differences of the attribute. Eg. Temperature in Celsius degrees (note, that the origin of the scale, i.e., the zero point , is arbitrary)

  • Valid operations: all of the above, and addition/subtraction

d. Ratio. - There is also an absolute zero  Objects are assigned numbers such that ratios between the numbers reflect ratios of the attribute Eg. Height

  • Valid operations: all of the above, and multiplication/division  Often, real measurements do not correspond precisely to any to these scales  Certain assumptions are made, but never completely satisfied, with respect to the meaning of numbers

1.4. TYPES OF VARIABLE

Qualitative variables. The categories cannot even be ordered and numbers simply serve as a convenient tag to name the category uniquely

Quasi-quantitative variables. The categories can be rank-ordered but they are nor equally spaced

Quantitative variables. The categories of the variable always satisfy the properties of magnitude and intervals. Sometimes, there is also an absolute zero

  • Discrete variables. They that can only take on a finite number of values within its range
  • Continuous variables. They that can take on an infinite number of values within its range

Relation between types of variable and levels of measurement

Qualitative nominal Weakest Quasi-quantitative ordinal

Variables Scales of measurement Quantitative (discrete & continuous)

interval ratio (^) Strongest

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 9

To sum up

 Statistical analyses provide conclusions about the numbers entered into them, but relating these conclusions to the substantive issues depends on the measurement operations

 Thus, scales of measurement should be taken into account when selecting a statistical technique to analyze a given data set

 However, some flexibility is unavoidable in Psychology Most of our measurements are really somewhere between ordinal and interval scales: although the difference between consecutive categories is not constant, it is often of the same order of magnitude

  

substantive question Is alcohol consumption related to depression?

statistical question Are the depression scores of heavy drinkers significantly higher on average than those for teetotalers?

statistical conclusion

substantive conclusion

U NIT 2

SUMMARIZING DATA

2.1. Frequency distributions 2.1.1. Classes or intervals

2.2. Graphical representations 2.2.1. Bar charts 2.2.2. Histograms 2.2.3. Frequency polygons 2.2.4. Stem-and-leaf diagrams 2.2.5. Dot plots 2.2.6. Other graphical representations

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 13

2.1.1. Classes or intervals

  • When a variable has too many categories (or values) they can be grouped into classes (qualitative and quasi-quantitative variables) or class intervals (quantitative variables)
  • Classes should be exhaustive and mutually exclusive (i.e., “no gaps and no overlaps”)

-Example X : Height (in cm) Raw data: {151, 160, 185, ..., 155}; N = 32

X apparent limits

X exact limits Interval width^ Class mark (midpoint)^ n^ i^ c. ni^ pi^ c. pi. 150-159 [149.5, 159.5) 10 154.5 4 4 0.13 0. 160-169 [159.5, 169.5) 10 164.5 7 11 0.22 0. 170-179 [169.5, 179.5) 10 174.5 10 21 0.31 0. 180-189 [179.5, 189.5) 10 184.5 8 29 0.25 0. 190-199 [189.5, 199.5) 10 194.5 3 32 0.1 1 32 ~

  • Interval width : L sup – L inf, where L sup is the (exact) upper limit and L inf is the (exact) lower limit
  • Class mark : midpoint of the class intervals, L inf + ( L sup – L inf)/2 = ( L inf + L sup )/

Steps for forming class intervals

  1. Compute the range spanned by your data
  2. Set either the number of intervals or their width
  3. Find the counterpart (interval width or number of intervals) required to span the range
  4. Determine where the first interval should begin (evenly distributing the remaining space)
  5. Compute the limits (boundaries) of all intervals
  6. Count the number of observations falling into each interval and construct the frequency distribution table

Further guidelines

  • Between 5 and 15 class intervals will usually suffice ( Recall that our purpose is to obtain a relatively simple and organized picture of the data and proceed accordingly)
  • In general, all intervals should be the same width (and an integer, if possible) (... but there are exceptions like open-ended distributions)
  • Intervals should be continuous throughout the distribution (i.e., don’t delete an interval just because you don’t have observations in it)
  • The lower limit for the first interval will typically be a multiple of the interval width (i.e, as a general rule, don’t use the smallest value in your data as the lower limit for the first interval)

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 15

(^01 )

1

Has a paid job

Relative frequency

(^01 2 3 4 )

20

40

60

80

100

Expected grade in Statistics I

Absolute frequency

(^01 2 3 4 )

20

40

60

80

100

120

140

160

180

200

Expected grade in Statistics I

Cumulative absolute frequency

2.2. Graphical representations

 Always plot your data!

  • Keep your graphs as simple as possible (e.g., avoid false third dimensions)
  • Look for the overall pattern (shape, center and spread)
  • In quantitative variables try to identify outliers (extreme observations that fall outside the overall pattern)

2.2.1. Bar charts (qualitative and quasi-quantitative variables)

1: No2: Yes

1 = “Suspenso”4 = “Sobresaliente” 2 = “Aprobado”5 = “Matrícula de honor” 3 = “Notable” Cumulative^ (quasi-quantitative variables only) 1 = “Suspenso”4 = “Sobresaliente” 2 = “Aprobado”5 = “Matrícula de honor” 3 = “Notable”

(^00 1 2 3 4 5 )

10

20

30

40

50

60

70

80

Time spent studying on a typical weekday (hours)

Absolute frequency

(^00 1 2 3 4 5 )

50

100

150

200

250

Cumulative absolute frequency

Time spent studying on a typical weekday (hours)

(^00 1 2 3 4 5 )

10

20

30

40

50

60

70

80

Time spent studying on a typical weekday (hours)

Absolute frequency

(^00 1 2 3 4 5 )

50

100

150

200

250

Cumulative absolute frequency

Time spent studying on a typical weekday (hours)

2.2.2. Histograms (grouped quantitative variables) Cumulative

-The intersection of the two axes should be the zero point. If it isn’t, introduce a break in the corresponding axis to indicate that a portion has been omitted

2.2.3. Frequency polygons (grouped quantitative variables) Cumulative

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 19

U NIT 3

M EASURES OF LOCATION AND CENTRAL TENDENCY

3.1. Basic concepts

3.2. Measures of location

3.3. Classic measures of central tendency (“averages”) 3.3.1. The arithmetic mean 3.3.2. The median 3.3.3. The mode

3.4. Resistant measures of central tendency

3.5. Some guidelines for choosing a measure of central tendency

3.1. BASIC CONCEPTS

Summary measures  (parameters & statistics)

Condense the information contained in the data set Compare different data sets

Parameter. A summary measure calculated from the entire population  It is a numerical quantity measuring some aspect of the population Greek letters are used to designate parameters: μ, , , ...

Statistic. A summary measure calculated from a sample  It is a numerical quantity that describes some aspect of a sample Latin letters are used to designate statistics: X , s (^) X , r, ...

 The best summary measure for qualitative data is the proportion

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 21

3.2. MEASURES OF LOCATION ( “QUANTILES ” )

  • They indicate the standing of a single observation (or score, or datum) relative to the performance of its reference group (i.e., the sample) (see also Standard Scores , in Unit 6)

Percentiles ( Pk ; also “centiles” )

A percentile is a value of the variable below which a given percentage k of the cases in the distribution fall (i.e., score that has k % of the data below it)  k is called the percentile rank (= percentage of cases in a distribution that Pk is greater than)

Several algorithms exist for finding percentiles (there is no standard definition of percentile, although all definitions yield very similar results when the sample size is large)

  • Calculation for raw (ungrouped) data
    1. Sort your data in ascending order
    2. Find the position of the percentile (i.e. number of observations that P (^) k leaves below it)
    3. Identify the value of the variable at that position  That is P (^) k

 When the variable is continuous, or when the data is scarce, linear interpolation can be used (see next page) assuming intervals of width 1 unit (eg. 1  [0.5, 1.5), etc. )

  • Calculation for grouped data
    1. Use the frequency distribution (cum prop. or %) to identify the target interval
    2. Compute Pk using linear interpolation:

P (^) k  L (^) l  k^ ^ N , 100

 n (^) b  A n (^) w

where L l is the lower limit of the target interval, A is the interval width of the target interval N is the sample size, nb is the cumulative frequency b elow the target interval, and nw is the frequency w ithin the target interval

Deciles ( Dk ) Nine values which divide a set of data into 10 equal parts, each of which contains about the 10% of the data (eg, D 1 is the value of the variable below which 10% of the data falls)

Quartiles ( Qk ) Three values of the variable which divide the distribution into 4 parts, each of which contains about 25% of the data

Equivalencies D 1 = P 10 , D 2 = P 20 , ..., D 9 = P 90 Q 1 = P 25 , Q 2 = P 50 = D 5 , Q 3 = P 75

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 25

Properties

a. Requires that the variable be quantitative  When comparing different groups on a given variable, group means are usually depicted using bar charts or line plots b. The arithmetic mean is responsive to the exact position of each observation in the distribution  Its value is heavily affected by the presence of outliers and strong skewness (see Unit 5) c. It always exists and it is unique  But in grouped data, the value of X may vary depending on the width of the chosen class intervals and it cannot be computed in open-ended distributions or when there are undetermined values  The mean does not necessarily correspond to any of the values used to compute it

d. (^) 

N i  1

( X (^) i  X )  0

e. (^)  ,

N i  1

( X (^) i  X ) 2 < (^) 

N i  1

( X (^) i  q ) 2 q X

f. Let Y be a linear transformation of X ( Y  a  bX , with a and b constant), then, Y  a  bX

g. The weighted mean. It is an arithmetic mean where some observations contribute more than others

X w  ,



J j  1 X (^) j w (^) j



J j  1 w (^) j

where J : total number of observations Xj : j -th observation wj : weight of the j -th observation

h. The grand mean. It is the overall mean for r samples combined. Formally, given r data sets having the means X 1 , X 2 , ..., X (^) r , and consisting of n 1 , n 2 ,..., n (^) r observations each; the grand mean is given by

X grand 



r j  1 X (^) j n (^) j



r j  1^ n^ j



r j  1 X (^) j n (^) j N

i. The overall proportion. It is the overall relative frequency of a given category in r sets of data combined

p  ,



r j  1 p (^) j n (^) j



r j  1^ n^ j



r j  1 p (^) j n (^) j N

where r : number of data sets p (^) j : relative frequency of a given category in the j -th data set nj : size of the j -th data set

 Notice that the arithmetic mean for binned data, the grand mean, and the overall proportion, are merely instances of weighted means

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 27

3.3.2. THE MEDIAN ( Mdn )

Definition and calculation

  • The value which divides an ordered data set into two equal halves so that half of the observations lie above the median and half of the observations lie below it Mdn  P 50 = Q 2 = D 5 - Ungrouped data:  First sort the data in ascending order If N is odd: The median is the middle value of the ordered collection If N is even: The median is the average between the middle two values in the ordered collection
  • Grouped data: Just compute P 50

Properties a. It is applicable to quantitative and quasi-quantitative variables b. It is relatively unaffected by extreme observations  The median is resistant to outliers c. In grouped data, the value of Mdn may vary depending on the width of the class intervals  When comparing different groups on a given variable, group medians are usually depicted using bar charts or line plots

3.3.3. THE MODE ( Mo )

Definition and calculation

The mode is the most common category (or value) that occurs in a data set

- Ungrouped data Category with the highest absolute frequency - Grouped data Modal class: Class interval with the highest absolute frequency Mode: Class mark (midpoint) of the modal class

Properties

a. It is the only measure of central tendency applicable to qualitative variables b. It is also applicable to quasi-quantitative and quantitative variables c. It may not be unique in a particular data set: There are bimodal and multimodal distributions d. In grouped data, the modal class may vary depending on the width of the chosen class intervals

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 31

U NIT 4

M EASURES OF VARIABILITY

4.1. Introduction

4.2. Distance measures of variability 4.2.1. The range 4.2.2. The interquartile range 4.2.3. The quartile coefficient of variation 4.2.4. Properties

4.3. Measures of variability based on the mean 4.3.1. The mean absolute deviation 4.3.2. The variance 4.3.3. The standard deviation 4.3.4. The coefficient of variation 4.3.5. Properties

4.4. Some guidelines for choosing a measure of variability

6^0 4 2 0 2 4 6

50

100

150

200

250

300

350

6^0 4 2 0 2 4 6

50

100

150

200

250

300

350

6^0 4 2 0 2 4 6

50

100

150

200

250

300

350

4.1. I NTRODUCTION

  • Measures of variability or dispersion indicate the degree of spread of the data set
  • They can never take on negative values and they are location-invariant

X  0.021 ; s (^) X^2  4.172 X  0.021 ; s (^) X^2  0.984 X  0.029 ; s (^) X^2  0.

  • Most (but not all) measures of variability are in the same metric as the scores themselves

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 33

4.2. DISTANCE MEASURES OF VARIABILITY

4.2.1. THE RANGE ( RG )

RG  X max X min

4.2.2. THE INTERQUARTILE RANGE ( IQR )

IQR  Q 3  Q 1 , where Q 1 and Q 3 are respectively the first and third quartiles

4.2.3. THE QUARTILE COEFFICIENT OF VARIATION ( QCV )

QCV 

Q 3  Q 1

Q 3  Q 1

4.2.4. PROPERTIES

a. The three measures are applicable to quasi-quantitative and quantitative variables b. IQR and QCV are resistant measures of variability c. RG and IQR are expressed in the same units of measurement as the variable being measured d. QCV is dimensionless (i.e., it has no units)

4.3. MEASURES OF VARIABILITY BASED ON THE MEAN

4.3.1. THE MEAN ABSOLUTE DEVIATION ( MD )

MD X 

N i  1

| X (^) i  X |

N

  • It is rarely used in practice

4.3.2. THE VARIANCE ( s^2 )

Definition and computation

s (^) X^2 



N i  1 ( X (^) i  X ) 2 N

  • Ungrouped data: s (^) X^2 



N i  1 ( X (^) i  X ) 2 N ^



N i  1 X (^) i^2 N ^ X^

2

  • Grouped data:

s (^) X^2  , with J , Xj , nj and N as in the formula for



J j  1 n (^) j ( X (^) j  X ) 2



J j  1 n (^) j



J j  1 n (^) j ( X (^) j  X ) 2 N ^



J j  1 n (^) j X (^) j^2 N ^ X^

(^2) X

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 37

4.4. SOME GUIDELINES FOR CHOOSING A MEASURE OF VARIABILITY

Measures of variability based on the arithmetic mean

  • Applicable only to quantitative variables (In general, the same restrictions that apply to the use of the mean as measure of central tendency apply to the use of these measures of variability)

(i) Variance and standard deviation: First choice except when - the frequency distribution is strongly skewed, or

  • there are outliers

(ii) Coefficient of variation:

  • Compare variables measured in different units (eg. weight and height in children)
  • Compare very different groups on the same variable (eg. weight in ants and elephants)

Distance measures of variability (i) Interquartile range:

  • Quasi-quantitative variables
  • Quantitative data with strongly skewed distributions (it is a resistant alternative to s (^) X )

(ii) Quartile coefficient of variation:

  • Compare quasi-quantitative variables
  • Replaces CV when any of the distributions is strongly skewed or there are outliers

U NIT 5

M EASURES OF SKEWNESS AND KURTOSIS

5.1. Introduction

5.2. Skewness

5.3. Kurtosis

5.4. Boxplots

5.5. Data transformations that modify the shape of the distribution

Rocío Alcalá-Quintana Statistics Applied to Psychology I - Page 39

(^00) 0.2 0.4 0.6 0.8 1

100

200

300

400

500

600

(^00) 0.2 0.4 0.6 0.8 1

100

200

300

400

500

600

(^00) 0.2 0.4 0.6 0.8 1

100

200

300

400

500

600

(^0) 4 2 0 2 4 6

20

40

60

80

100

120

140

160

180

(^0) 4 2 0 2 4 6

20

40

60

80

100

120

140

160

180

(^0) 4 2 0 2 4 6

20

40

60

80

100

120

140

160

180

5.1. INTRODUCTION

  • Skewness and kurtosis refer to the shape of the distribution

Negatively skewed distribution Symmetrical distribution Positively skewed distribution

Platykurtic distribution Mesokurtic distribution Leptokurtic distribution

5.1. INTRODUCTION

Moments

  • About the origin:

m (^) k . Notice that the arithmetic mean is the 1st^ moment about the origin

N i  1

X (^) ik

N

  • About the mean (central moments):

cm (^) k . Notice that cm 2 is the variance

N i  1

( X (^) i  X ) k

N

  • Higher order moments can be used to define statistics that quantify skewness and kurtosis