























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!
























Lecture 1 Introduction to statistical methodology This lecture introduces "statistics" as a science that deals with describing data and making predictions that have a much wider scope than merely summarizing the collected data. Fundamental role of statistical methods in quantitative research. Increasingly many jobs require a knowledge of statistical methods as a basic work tool. They are used in a wide variety of areas such as governmental agencies, business organizations, and health care. Statistical science helps to evaluate which arguments are valid and which are invalid. Statistics isn’t just about data analysis or numbers; it is about understanding the world around us. Data Information gathering is at the heart of all sciences, providing the observations used in statistical analyses. The figures gathered on the characteristics of interest are called data. To generate data, the social sciences use a wide variety of methods – distinguished into DIRECT (such as direct observation of behaviour in natural settings or experiment) and INDIRECT approaches including surveys using questionnaires. Social scientists also use data already collected for other purposes, such as administrative records or census files. Existing archived collections of data are called databases. Many sources of information and databases are available on the Internet. Data and “data source” The DATA SOURCE indicates the entity producing the data or the specific publication, database or other «repository» from which the data are extracted. Whenever data are used it is essential to indicate the source and therefore it means: i) specifying who produced the data; ii) providing information on the publication (volume, online database, etc.) such as the title, publisher or date of publication. The specification of the source of the data is important because it allows readers/users to clearly understand the content of the information and to assess its quality. Considering the DATA PRODUCER, it is possible to distinguish between:
time, lower probability of non-sampling errors. Disadvantages: In addition to possible survey errors, presence of sampling error due to sample size and 'design'. Statistical science Statistics consists of a body of methods for obtaining and analyzing data. Statistical science provides methods for:
A variable is called categorica l when the measurement scale is a set of categories. As an example marital status with categories (single, married, divorced, widowed), is categorical. Distinct categories differ in quality, not in numerical magnitude. Categorical variables are often called qualitative.
most common nonprobability sampling method is volunteer sampling. A large sample does not help, the bias remains.
The variability of the data - the spread around the center. The mean describes the center and the standard deviation describes the variability. Relative frequencies - categorical data To make it easier to compare different categories, we report proportions or percentages in the categories, also called relative frequencies. The proportion equals the number of observations in a category divided by the total number of observations. It varies between 0 and 1. A frequency distribution is a listing of possible values for a variable, together with the number of observations at each value (absolute frequency). When the table shows the proportions or percentages instead of the numbers, it is called a relative frequency distribution.
Relative frequencies can also be represented using intervals. As with any summary method, we lose some information as the cost of achieving some clarity. The intervals of values in frequency distributions are usually of equal width. The intervals should include all possible values of the variable. They should be mutually exclusive.
a variable denoted by y, its observations are denoted by {y1, y2,... , yn}. The sample mean is denoted by y¯, Properties of the mean The mean is appropriate only for quantitative variables. The mean can be highly influenced by outlier(s). The mean is pulled in the direction of the longer tail of a skewed distribution (skewed to the right of GDP distribution, according to Tab3 data). The mean is the center of gravity (balance point) of the observations. The sum of the distances to the mean from the observations above the mean equals the sum of the distances to the mean from the observations below the mean. The overall sample mean for the combined set of (n1 + n2) observations is the weighted average, The Median The mean is a simple measure of the center. But other measures are also informative and sometimes more appropriate. The median is the observation that falls in the middle of the ordered sample. It splits the sample into two parts with equal numbers of observations, when they are ordered from lowest to highest or from highest to lowest. The median is the value of observation (n+1)/2 in the ordered sample. When the sample size n is odd, a single observation occurs in the middle. Ex.: n=9, the median is the value of the 5th smallest observation. When the sample size n is even, two middle observations occur, and the median is the midpoint between the two. Ex.: n=10, the median is the average of the 5th and 6th observations. Median - examples 1 quantitative variables: value of HDI, ranking “High human development”. Properties of the median The median, like the mean, is appropriate for quantitative variables. Since it requires only ordered observations, it is also valid for ordinal-scale data. It is insensitive to the distances of the observations from the middle. It is not affected by outliers. For symmetric distributions, the median and the mean are identical.
Median compared to mean The median is usually more appropriate than the mean when the distribution is very highly skewed. The median also applies for ordinal scales. By contrast, for the mean we need quantitative (interval-scale) data.
s is a sort of typical distance of an observation from the mean. The larger the standard deviation, the greater the spread of the data. Example: discrete variable m “number of computer crashes”, n=5, m¯ = 2. Standard deviation - Properties s ≥ 0; s=0 when...? Use (n-1) rather than n in the denominator of s in the case of sample data. This provides a better estimate of the parameter for the population. Use n when data refer to the population. The units of measurement are those for the original data. If data are rescaled, the standard deviation is also rescaled (Ex.: transform data from dollars to thousands of dollars). The (sample) variance s 2 is the square of s. s 2 is approximately the average of the squared deviations. The units of measurement are the squares of those for the original data, since it uses squared deviations. This makes the variance difficult to interpret. Magnitude of s - The empirical rule More precise ways to interpret the size of s require further knowledge of the shape of the frequency distribution. The following rule, called Empirical Rule, applies only to empirical distributions that are approximately bell-shaped.
Two other commonly used percentiles are the lower quartile and the upper quartile. The 25th percentile (p=25) is called the lower quartile : one quarter of the data fall below it. The 75th percentile (p=75) is called the upper quartile : one quarter fall above it. The quartiles together with the median split the distribution into four parts, each containing one-fourth of the observations. The lower quartile is the median for the observations that fall below the median. The upper quartile is the median for the observations that fall above the median, that is, for the upper half of the data. Interquartile range (IQR) The difference between the upper and lower quartiles is called the interquartile range (IQR). This measure describes the spread of the middle half of the observations. IQR increases as the variability increases; it is useful for comparing variability of different groups. IQR is not sensitive to outliers (contrary to the ordinary range or standard deviation). For bell-shaped distributions, the distance from the mean to either quartile is about two-thirds of a gi. Then, IQR equals approximately (4/3)s. Box-Plot: graphing 5 number summary of positions The median, the quartiles, and the maximum and minimum are five positions often used to describe center and variability. The box of a box plot contains the central 50% of the distribution, from p25 to p75. The median is marked by a line drawn within the box. The lines extending from the box are called whiskers. These extend to the maximum and minimum; outliers are marked separately. Side-by-side box plots are useful for making comparisons (relative frequency distributions and histograms).
dominates every Lorenz curves. The Lorenz curve is increasing and lies in the first quadrant of the Cartesian plane in the case of positive values of the variable. It is equal to the 45-degree line in the case of complete equality, i.e. it represents the distribution that would arise if all the households had the same wealth. In all the other cases it lies below the 45-degree line. Intuitively, the closer the Lorenz curve is to the 45-degree line, the more equal the distribution is. This means that if the y_i’s are of different sizes then the Lorenz curve falls below the line of equality, and the variable has a certain level of concentration. 4 Since, by construction, Qi ≤ Qi+ for all i = 0,... , n − 1 then the Lorenz curve is always convex. Luca Secondi Data Analysis for S. Properties... If every observation is multiplied for the same constant, the Lorenz curve does not change. If every observation is replicated the same number of times, the Lorenz curve does not change. If there is a transfer from a richer to a poorer person (without altering the ordering of the subjects) then the Lorenz curve goes up. Consider the Lorenz curves for three different distributions of income, but with the same total sum. L2 is above L1 and closer to the diagonal, so that it dominates L1 (i.e., it is always at the same level or above L1). Therefore, the total income of is distributed more equally (it is less concentrated) in y2 than in y1. L3 also dominates L1, so that the total income of y is distributed more equally in y3 than in y1. On the contrary, L2 and L3 cannot be compared in terms of the Lorenz curve; the dominance according to Lorenz may result to be an incomplete ordering. Relative concentration index The relative concentration index is just the proportion of the area between the line of equality and the Lorenz curve, with respect to the area below the line of equality. The importance of Gini index and concentration analysis at international level