Docsity

Basic research methods - Descriptive statistics, Appunti di Metodologia della ricerca

Toggle sidebar
bg1
Part 7 - Descriptive statistics
Descriptive statistics
Descriptive statistics refer to a set of techniques for summarizing and displaying data.
Variables have three fundamental features, each of which can be described using
appropriate descriptive statistics:
1. Shape of the distribution
2. Central tendency of the distribution
3. Dispersion (or variability) of the distribution
Descriptive statistics and measurement scales
Not all descriptive statistics can be applied to all variables:
1. Shape:
- Frequency tables → measured on ordinal/interval or ratio scale
- Histograms → measured on ordinal/ interval or ratio scale
- Skewness coefficient → measured on interval or ratio scale
2. Central tendency
- Mean → measured on interval or ratio scale
- Mode → measured on categorical/ordinal/interval or ratio scale
- Median → measured on ordinal/ interval or ratio scale
3. Dispersion
- Range → measured on interval or ratio scale
- Interquartile range → measured on interval or ratio scale
- Variance, standard deviation, standard error → measured on interval or
ratio scale
For categorical variables, only the concept of central tendency makes sense, while for
ordinal scales the concept of dispersion doesn’t apply. On the other hand, shape, central
tendency and dispersion are all concepts that apply to interval or ratio scales
Shape of the distribution
The concept of distribution of a variable and the concept of frequency are closely related.
For a specific value (or level) of a variable, the frequency simply indicates the number of
people in the sample or in the population characterized by that value (or level) of the
variable.
The distribution of a variable is a generic term that refers to how the frequencies are
distributed across all the possible values/levels of a variable.
Note that counting the frequency associated to each level (or value) of a variable is not the
same as measuring the variable. Measuring a variable refers to the act of assigning a value
or level of a variable to an individual. Calculating frequencies refers to the act of counting
how many individuals are characterized by each level/value of the variable. Frequencies can
be calculated only after a variable has been measured.
The shape of a variable can be represented by means of frequency tables
and/or histograms → they provide the same info. Consider the following
frequency table, that represents the distribution of scores on the Rosenberg
Self-Esteem Scale for a hypothetical sample of 40 participants.
Note that in frequency tables the scores are listed from the largest to the
smallest.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Anteprima parziale del testo

Scarica Basic research methods - Descriptive statistics e più Appunti in PDF di Metodologia della ricerca solo su Docsity!

Part 7 - Descriptive statistics

Descriptive statistics

Descriptive statistics refer to a set of techniques for summarizing and displaying data. Variables have three fundamental features, each of which can be described using appropriate descriptive statistics:

**1. Shape of the distribution

  1. Central tendency of the distribution
  2. Dispersion (or variability) of the distribution**

Descriptive statistics and measurement scales

Not all descriptive statistics can be applied to all variables:

1. Shape: - Frequency tables → measured on ordinal/interval or ratio scale - Histograms → measured on ordinal/ interval or ratio scale - Skewness coefficient → measured on interval or ratio scale 2. Central tendency - Mean → measured on interval or ratio scale - Mode → measured on categorical/ordinal/interval or ratio scale - Median → measured on ordinal/ interval or ratio scale 3. Dispersion - Range → measured on interval or ratio scale - Interquartile range → measured on interval or ratio scale - Variance, standard deviation, standard error → measured on interval or ratio scale For categorical variables, only the concept of central tendency makes sense, while for ordinal scales the concept of dispersion doesn’t apply. On the other hand, shape, central tendency and dispersion are all concepts that apply to interval or ratio scales

Shape of the distribution

The concept of distribution of a variable and the concept of frequency are closely related. For a specific value (or level) of a variable, the frequency simply indicates the number of people in the sample or in the population characterized by that value (or level) of the variable. The distribution of a variable is a generic term that refers to how the frequencies are distributed across all the possible values/levels of a variable. Note that counting the frequency associated to each level (or value) of a variable is not the same as measuring the variable. Measuring a variable refers to the act of assigning a value or level of a variable to an individual. Calculating frequencies refers to the act of counting how many individuals are characterized by each level/value of the variable. Frequencies can be calculated only after a variable has been measured. The shape of a variable can be represented by means of frequency tables and/or histograms → they provide the same info. Consider the following frequency table, that represents the distribution of scores on the Rosenberg Self-Esteem Scale for a hypothetical sample of 40 participants. Note that in frequency tables the scores are listed from the largest to the smallest.

Three participants obtained a score of 24, five participants obtained a score of 23, ten participants obtained a score of 22 etc. Frequency tables can also be used for categorical variables (e.g., nationality). However, in the case of categorical variables, frequency tables and histograms cannot be used to evaluate the shape of the distribution. Although the concept of frequency applies to categorical variables, the concept of shape of the distribution does not. Frequency tables can be used for combinations of levels/values of two or more variables: Frequency tables can be used for combinations of levels/values of two or more variables:

Distribution shape: histograms

Histograms can be used to graphically represent the distribution of variables. Conceptually, they are the same as frequency tables.

Histograms are used to assess the shape of the distribution of quantitative variables (ordinal, interval, ratio). The concept of distribution shape is not applicable to categorical variables because the shape depends on the order of the values on the horizontal axis, but for categorical variables that’s arbitrary (ex. the shape changes if you have Italian first or last in the axis). The distribution of a quantitative variable is said to be unimodal when the corresponding histogram shows one single «peak». Instead, the distribution of a quantitative variable is said to be bimodal when the histogram shows two distinct «peaks»

When the distribution of a quantitative variable is unimodal, it can be further classified as

  • symmetrical → the central values within the range of possible values are the most frequent and the values uniformly decrease on the left and the right
  • positively skewed → the small values are the most frequent
  • negatively skewed → The large values are the most frequent

of the distribution because according to this you have apply different statistical models if this assumption is violated, the conclusions drawn from the model may be unreliable, depending on the severity of the violation.

Normality tests

There are three approaches to assess the extent to which a variable's distribution approximates normality:

  1. visual/ graphical tests
  2. numerical tests
    • skewness coefficient: → the skewness coefficient of the normal distribution equals 0. → A skewness coefficient >0 indicates a positively skewed distribution, → a skewness coefficient <0 indicates a negatively skewed distribution. → Skewness coefficients between -1 and 1 most of the times indicate that the distribution is sufficiently close to normal
  3. Statistical tests

Statistical tests

One statistical test is the Shapiro-Wilk test , which is used to verify if the distribution of a variable differs from the normal distribution in a statistically significant manner. The concept of statistical significance relates to inferential statistics, a specific branch of statistics that includes different tests that vary according to the variable that we’re taking into consideration and what we’re testing. The fundamental characteristic of inferential statistics (not in the exam) is the presence of two alternative hypotheses, which are tested using a statistical test. The two alternative hypotheses are conventionally labeled as H0 and H1, representing the null hypothesis and the alternative hypothesis, respectively. The exact definition of H0 and H1 depends on the specific context. The two hypotheses are always complementary. In the present context:

  • The null hypothesis → H0: “The variable is normally distributed in the reference population from which the sample was drawn”
  • The alternative hypothesis → H1: “The variable is NOT normally distributed in the reference population from which the sample was drawn” Note that H0 and H1 refer to the reference population, not the specific sample. Data from the sample are used to draw inferences about the reference population , which is why it is called inferential statistics. We can only make inferences about the population because its characteristics are unknown. Inferential statistics relies on a dichotomous decision-making process in which the researcher chooses between two possible alternatives:
  • Accept H0 and reject H
  • Accept H1 and reject H0The Shapiro-Wilk normality test – a taste of inferential statistics Graphical and numerical tests provide a continuous evaluation of how closely the distribution approximates normality. In contrast, the Shapiro-Wilk normality test is part of inferential statistics and results in a dichotomous decision:
  • Accept H0: “The variable is normally distributed in the reference population from which the sample was drawn” → sufficiently similar to normal distribution
  • Accept H1: “The variable is NOT normally distributed in the reference population from which the sample was drawn A fundamental characteristic of inferential statistics is that the decision to accept H0 and reject H1 (or vice versa) depends on a probability value known as the p-value. The exact interpretation of the p-value depends on the context and on the two hypotheses. In this case, it represents the probability of obtaining the observed shape of the variable's distribution in our sample, assuming that the variable follows a normal distribution in the reference population (i.e., the population from which the sample was drawn). The p-value is a probability value, and as such it can only vary between 0 and 1. A p-value:
  • close to 0 indicates that it is highly unlikely to obtain the observed distribution shape in the sample, assuming that the sample was drawn from a population in which the variable is normally distributed → unlikely to observe that distribution if it’s true that the sample comes from a population in which the distribution is normal → unlikely that in the population the distribution is normal
  • close to 1 indicates that it is very likely to obtain the observed distribution shape in the sample, assuming that the sample was drawn from a population in which the variable is normally distributed. The threshold:
  • p-value < 0.05 → It is too unlikely (less that 5% of probability) to obtain the observed distribution shape in our sample, assuming that the sample was drawn from a population where the variable is normally distributed. We reject H0 and accept H1, concluding that the variable's distribution is not normal in the population from which our sample was drawn.
  • p-value ≥ 0.05 → It is sufficiently likely (at least 5% probability) to obtain the observed distribution shape in our sample, assuming that the sample was drawn from a population where the variable is normally distributed. We reject H1 and accept H0, concluding that the variable is normally distributed in the population from which our sample was drawn. The logic underlying the interpretation of the p-value is based on the concept of likelihood. If the variable is normally distributed in the reference population and the sample is drawn from that population, it is unlikely that the sample will show a strong deviation from normality. The p-value increases as the sample distribution becomes closer to normal and decreases as the sample distribution deviates from normality. Limits of inferential statistics:
  1. For instance, the results may not be particularly reliable when the sample size is very small (as a rough rule of thumb, less than 20). However, this threshold depends on a complex set of factors.
  2. Results are also unreliable if the sample is not representative of the reference population due to sampling bias.

Central tendency

The central tendency of a distribution refers to the portion of the distribution where the most frequently observed values are located. Central tendency is typically measured using a single value that should best represent the overall central tendency of the distribution. The three most common statistics of central tendency:

Descriptive statistics of dispersion provide information about the variability of the data within the distribution, which is the extent to which the scores vary their central tendency. Since the interpretability of a central tendency index also depends on dispersion, statistics like the mean should always be accompanied by at least one measure of dispersion. Suppose to conduct a study in which you measure the IQ of a small group of 10 male and 10 female students of Psychology. Let’s compare two hypothetical cases:

  • Scenario 1: low dispersion (variability) of the scores → The difference between the mean IQ of males and females is 5.
  • Scenario 2: high dispersion (variability) of the scores. → The difference between the mean IQ of males and females is again 5.9.
  • The lower dispersion of scores in Scenario 1 indicates that each of the two means is highly representative of the corresponding group's scores, as all members' scores are relatively close to the group mean. Consequently, the difference between the means is also representative of the difference between the scores observed in the two groups.
  • The higher dispersion of scores in Scenario 2 indicates that each of the two means is not representative of the corresponding group's scores, as many members' scores are relatively far from the group mean. Consequently, the difference between the means is not representative of the difference between the scores observed in the two groups. The key point is that we would remain unaware of this crucial fact if we relied solely on the means and their difference, as the difference between the means is the same in both scenarios. The mean (or a mean difference) provides reliable information only when the dispersion of the scores is relatively low. Central tendency and dispersion are equally crucial for any consideration about a variable or a relationship between variables. Without information about the dispersion of the scores, the mean provides partial information that can be misinterpreted, such as concluding that there is a difference between groups when, in fact, there is none. The three most important measures of dispersion are: **1. Range
  1. Interquartile range
  2. Standard deviation** These can only be applied to variables measured on interval or ratio scales

Range The simplest (and less informative) dispersion statistic is the range , that corresponds to the difference between the maximum and the minimum value observed in the distribution

Interquartile range

The interquartile range is the difference between the third and the first quartile of the distribution. In an ordered sequence of observed values of a variable (as done for calculating the median), the first quartile of the distribution (or 25th percentile) corresponds to the value below which 25% of the data fall. The third quartile of the distribution (or 75th percentile) corresponds to the value below which 75% of the data fall. The median corresponds to the second quartile of the distribution (or 50th percentile).

  • The 25th percentile of a score distribution is also called the “first quartile”.
  • The 75th percentile is also called the “third quartile”.
  • The 50th percentile corresponds to the median.
  • The Inter-Quartile Range: 75 th percentile (score) – 25 th percentile (score) The percentile rank of a score is the percentage of scores in the distribution that are lower than that score. One way to calculate the percentile rank of a score is to organize the scores from lowest to highest, count how many scores are lower than the target score, divide that number by the total number of scores, and multiply by 100. For instance, consider the following set of ordered scores: 1, 6, 7, 7, 7, 9, 10, 11, 13, 23, 25, 45.1, 6, 7, 7, 7, 9, 10, 11, 13, 23, 25, 45. Imagine that we want to find the percentile rank of score 7. Two scores (1 and 6) are lower than 7. We divide two by twelve (the total number of scores) and multiply the result by 100. 2/12 × 100 = 16.67. We say that score 7 is at the 16th percentile of the distribution (we round the obtained result to the closest smaller integer).

Standard deviation In raw terms, the standard deviation is the mean distance between the values in a distribution and the mean of the distribution → how on average the scores vary from the mean The equation shows the standard deviation of variable x (Sx) for a given sample. The xi symbol indicates the value of variable x for the’ i-th member of the sample, Mx is the mean of variable x for the sample, and N is the sample size (i.e., number of people in the sample). An alternative measure of the dispersion of the data around the mean is the variance , which is simply the square of the standard deviation. It provides the same information as the standard deviation, but it’s more used in inferential statistics statistics than in descriptive statistics. The variance and the standard deviation should be expressed with the corresponding measurement unit. Additional measures of dispersion:

1. Standard Error Where N is the sample numerosity. 2. Confidence interval It corresponds to an interval of values around the mean. It is always associated with a certain percentage. The «95% confidence interval» is usually reported in scientific papers. Formulas for the calculation of the 95% confidence interval:

Otherwise it means that the results are determined by the presence or absence of just a few numbers.

The problem of missing data

In some cases, certain data may be missing from the dataset (i.e., missing values). This may occur, for example, if a participant refuses or forgets to respond to a survey item. Before addressing missing data, the researcher should consider potential reasons for its absence, such as the survey item being too complex or overly intrusive. The most common strategies for managing missing data are:

  1. ignoring (i.e., filtering out) missing data;
  2. replacing missing data with the sample mean.

Relationships between variables

Psychological research typically focuses on the relationship between variables. A research question is usually an inquiry into the potential relationship between two or more variables … In the majority of research questions, there are at least one independent variable and one dependent variable. Independent variable → The variable that is presumed to affect the dependent variable. Dependent variable → The variable that is presumed to be affected by the independent variable. The relationship between the independent and dependent variables can be evaluated through:

  1. Descriptive statistics (including numerical indices and graphs) 2. Inferential statistics We will consider only cases involving quantitative (primarily interval) dependent variables, as this is the most common scenario in psychological research. Regardless of the type of graph used to represent the results, the independent variable is typically displayed on the horizontal axis, while the dependent variable is represented on the vertical axis.

Graphs

1. Bars graphs Used for categorical independent variables, or for quantitative independent variables with a relatively small number of possible values (2-10, but it’s just a very rough rule of thumb). They are generally used to present and compare the mean scores for two or more groups or conditions. Note that in some cases the error bars represent the upper and the lower margins of the 95% confidence interval, rather than ± the standard error. In scientific papers, the meaning of the error bars should always be described in the figure caption (e.g., “the error bars represent the standard error of the mean”, or “the error bars represent the 95% confidence interval of the mean”).

2. Line graphs They are equivalent to bar graphs as they represent the same type of information, but typically a bar graph is used when the independent variable is categorical and the line graph when it’s quantative. That is, means and standard errors (or confidence intervals) of the dependent variable, at different levels of the independent variable.

In JASP, the process for creating graphs and computing descriptive and inferential statistics for the relationship between variables depends on the type of research design. To begin, we must determine whether the independent variable has two levels/values or more than two levels/values. To create graphs in JASP, we must also evaluate whether the research design is a between-subjects or within-subjects design. In psychological research, there are two main types of research designs (considering designs with one independent variable):

  1. Between-subjects designs
    • each participant experiences only one level or value of the independent variable
    • A common example of a between-subjects design is research where the independent variable is "Group" (e.g., patients vs. control group or residents in different geographical regions). When the independent variable is a "Group" variable, its levels correspond to the different categories that constitute the "Group" variable (e.g., patients/controls – 2 levels; residents in the North/Central/South of Italy – 3 levels). In all these cases, each participant is assigned to only one level or value of the independent variable. For instance, a participant cannot belong to both the group of patients and the control group.
  2. Within-subject designs
    • each participant experiences all levels or values of the independent variable
    • A typical example of a within-subject design involves using Time as the independent variable. For instance, the same group of participants may be tested at two time points (e.g., before and after a treatment) or at three time points (e.g., before, immediately after, and one year post-treatment). Each participant is tested at all levels of the independent variable (Time), meaning each participant is assessed at Time 1, Time 2, and, if applicable, Time 3. Thus, each participant experiences every level of the variable.

The great advantage of bar and line graphs is their simplicity and the difference between the means is very clear. However, they also have two major limitations:

  1. They provide no information about the distribution of the dependent variable.
  2. They provide no information about the possible presence of outliers. As previously discussed, distribution and outliers may have a strong influence on the mean, which is the main information represented in bar graphs and line graphs → we don’t know if the mean is reliable or not.

Finally, the straight line that best fits the points in the scatterplot, which is called the regression line , can also be included. For each participant, the number of psychosomatic symptoms and the stress level (measured via a survey) are reported. The goal is to explore the potential relationship between the number of diagnosed psychosomatic symptoms and the level of stress.

Effective size indices

Here we consider two common situations, in which two different types of effect size indices must be used → how much the difference between the groups affects the scores

Cohen’s d and partial eta squared First situation:

- independent variable → categorical

  • dependent variable → quantitative No difference between between and within subject designs The most straightforward approach to comparing the two groups is to examine the mean values of the dependent variable (IQ). If MIQF is the mean IQ for females, and MIQM is the mean IQ for males, then MIQF– MIQM quantifies the mean difference between the two groups. However, a proper comparison between groups or conditions must also consider the dispersion (or variability) of the dependent variable within each group. The most widely used descriptive index of the difference between the groups is Cohen’s d :

M1 = mean of the first group M2 = mean of the second group Spooled= pooled-within groups standard deviation = average standard deviations of both groups

where S1 is the standard deviation of the first group, S2 is the standard deviation of the second group, N1 is the size of the first group, and N2 is the size of the second group.

The formula for is much simpler when N1 = N2, that is, when the two groups have the same number of participants:

Conceptually, Cohen’s d is the difference between the two means expressed in standard deviation units. A Cohen’s d of 0.50 means that the two group means differ by half a pooled standard deviation. A Cohen’s d of 1.20 means that they differ by 1.20 pooled standard deviations. Cohen’s d is also referred to as the effect size. The American Psychological Association (APA) suggests the following guidelines for the interpretation of the value of Cohen’s d:

The sign of Cohen’s d is arbitrary , as it just reflects the order of M1 and M2 at the numerator of the formula → what matters is the absolute value Cohen’s d is useful because it has the same meaning regardless of the variable being compared or the scale it was measured on. A Cohen’s d of 0.20 means that the two group means differ by 0.20 standard deviations whether we are talking about scores on the Rosenberg Self-Esteem scale, reaction time measured in milliseconds, number of siblings, or diastolic blood pressure measured in millimeters of mercury. Not only does this make it easier for researchers to communicate with each other about their results, it also makes it possible to combine and compare results across different studies using different measures. Simply calling the difference an “effect size” does not make the relationship a causal one.

Effect size measures are also available for situations in which the independent variable has more than two levels. In those cases, the equivalent of Cohen’s d is the partial eta squared (n^2 p). Like Cohen’s d, it results from an equation in which:

  1. The numerator contains the differences between means;
  2. The denominator contains the pooled variance. Because of how n^2 p is computed, it is always a positive number.

numerator will be positive and the other negative →the result of the multiplication will be negative → sum of negative values = large negative values

  • People who score higher than the mean of x also score lower than the mean of y Inversely proportional

Covariance tends to be close to zero when the four previous combinations are approximately equally distributed → values cancel each other out → no clear increasing and decreasing relationship

Pearson’s correlation coefficient reflects the covariance, adjusted for the overall dispersion of the two variables (i.e., the extent to which the two variables co-vary relative to their total variability) → Pearson's r is independent of the measurement you’re using for the variable, while covariance is not → we usually use Pearson’s r Pearson’s r is an effect size measure. It measures how strong is the linear relationship between the two variables. Dividing the covariance by the product of the standard deviations is the key step that makes Pearson’s r a measure of the linear relationship between the two variables. When we analyse the correlation between two quantitative variables we may obtain three possible results:

  1. Positive correlation → 1 indicates the strongest possible positive correlation
  2. Negative correlation → -1 indicates the strongest possible negative correlation
  3. No correlation → 0 indicates no correlation

The strength of the correlation depends on how closely the data points align with an ideal line passing through them. The slope of this ideal line is unrelated to the magnitude of r. In this example, r is larger in the first scatterplot because the points are generally closer to an ideal line, even though the slope of this line is smaller than in the second scatterplot.

Non linear relationships between variables

Sometimes, the relationship between variables is non-linear. In this case r would be close to 0, but this does not mean that there is no relationship between the two variables. The relationship is quadratic , therefore it does not lend itself to be measured with Pearson’s r (a parabolic quadratic model should be applied instead). The correlation between two variables can also be quantified by means of Person’s r^2 and instead of Person’s r:

  1. Pearson’s r^2 is just the square of Pearson’s
  2. Pearson’s r varies between -1 and 1, therefore Pearson’s r^2 varies between 0 and 1.

r^2 is a measure of the absolute strength of the correlation between two variables, as it is independent of whether the correlation is positive or negative. The American Psychological Association (APA) provides the following guidelines for the interpretation of the value of Pearson’s r:

When describing the relationship between two variables, outliers are sample members whose behavior significantly deviates from that of the other sample members with respect to the studied relationship → there are other participants with the same levels of the independent variable, but for example the first one has a low stress score and a high number of symptoms, which is a very different relationship between the variables of the other cases Pearson’s r is very sensitive to the presence of outliers. When testing the existence of a linear relationship between two variables, both Person’s r and the related scatterplot should be reported. The scatterplot allows to exclude that the value of Person’s r could be related to the presence of a few outliers. If the value of Pearson’s r changes substantially depending on the presence or absence of a single data point, that point can be considered an outlier, and the researcher may consider removing it from the dataset. One case in which Pearson’s r can be misleading, other than when we have a non linear relationship, is when one or both of the variables have a limited range in the sample relative to the population. This is referred to as restriction of range.

Presenting descriptive statistics

When you have a small number of results to report, it is often most efficient to write them out. First, statistical results are always presented in the form of numerals rather than words and are usually rounded to two decimal places. They can be presented either in the narrative description of the results or parenthetically—much like reference citations. When presented in the narrative, the terms mean and standard deviation are written out, but when presented parenthetically, the symbols M and SD are used instead. It is especially important to use parallel construction to express similar or comparable results in similar ways. When you have a large number of results to report, you can often do it more clearly and efficiently with a graph.

  1. the graph should always add important information rather than repeat information that already appears in the text or in a table. (If a graph presents information more clearly or efficiently, then you should keep the graph and eliminate the text or table.)
  2. Second, graphs should be as simple as possible. For example, the Publication Manual discourages the use of color unless it is absolutely necessary (although color can still be an effective element in posters, slide show presentations, or textbooks.)
  3. Third, graphs should be interpretable on their own. A reader should be able to understand the basic result based only on the graph and its caption and should not have to refer to the text for an explanation. There are also several more technical guidelines for graphs that include the following: