




























































































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!





























































































Statistics def. Science of designing studies and analyzing the data that those studies produce. Goal: translating data into knowledge of the world --> science of learning from data o Statistical units: entity on which we run our measurements Interest in a particular characteristic (that I expect to observe with variability) in a field o Two kind of characteristics that generate two type of data Individual level --> data generated: micro Aggregate level --> data generated: macro Going from individual level to aggregate level is possible, the opposite is not One of the most difficult task in statistics applied in political science is deriving micro data from macro analysis --> ecological fallacy Macro data collection is less expensive than micro analysis --> one of the reasons why used so often Macro data are usually free to the public (ISTAT, UN...) First use of statistics as a government level *Time seen as a proxy of the culture at that moment o Cross-sectional data: data collected only once on a statistical unit o Repeated measurements: measure same characteristics at different time points o Times-series: collect data at macro level at different time points - repeated measurements o Panel data: collected data at individual, micro, level at different time points and at exactly the same units (individuals) Constraint: missing data --> is not sure an individual will be there in x years Repeated cross-section: individuals with precise socio-demographic characteristics analyzed in a given time, other individuals with same characteristics (comparable) analyzed in another period of time
Population seen as a physical element: population as the set of all statistical units on which I might run my measurements Sample: subset of population, of size n. Can be drawn
the sample
Descriptive Statistic: collection of techniques --> describe sample data, using sample statistics Inferential Statistic: collection of techniques --> learn on population parameters, making predictions and decisions about the population, based on sample statistics
Describing data Preamble Youth Participatory Politics Survey, 2012 Aim: investing how in in the USA youth (from various backgrounds) participate in an experience public life online and offline
Describe variables from Q1 to Q4 on YPPS.do
All information about variable Q
Methods to describe data
Frequency distribution tables: effective way to describe a single variable listing of values for a variable with the number of observations for each value method for summarizing both categorical variable and numerical variables with limited distinct values Frequency distribution: number of observations that falls within each class Relative frequency distribution: percentage representing the proportion of observation falling in a certain category relative to the total number of observations Cumulative frequency distribution: percentage of units on which we observe a variable value smaller than or equal to the considered one (percentage of units fallin in a category up to the considered value) Frequency distribution table of variable PPREG
Observations: Variable measures the respondents region of residence Mid-Atlantic's frequency: 384 respondents Relative frequency: 13.16% of the total number of
Q1_recoded is unlabeled Values of Q1 are unlabeled
Value's commands (2 steps procedure: define and assign):
Generation of an additive index:
*exercise: you can redo all the previous steps in the new variable
Bar chart: variables with few values Histogram: numerical variables taking several distinct values x-axis: distinct values (or levels) - same length y-axis: relative frequencies (%)
If sample is odd: median position is in the middle (n+1)/ If sample is even: median position is anywhere (any value) between the two in the middle
Best a: the one that minimize the most the function --> the mean! (--> effective summary of the data) From frequency distribution table:
Strange values (unexpectedly high or low) have a huge impact on the mean Median --> based on frequencies --> not influenced by such extreme values Median more robust than the mean in the presence of unusual values
Measures of location: specify the position of a value relative to all other values
The range Range: difference between the maximum and the minimum value Outliers strongly affect the range The interquartile range The interquartile rage: difference between the 75 th^ percentile and the 25 th^ percentile It measures the spread of the 50% central part of the distribution Variance and standard deviation Variance: average of the squared deviations. Is the overall measure of the distance of each observation from the mean It capture the dispersion (or variability) of a variable It is always positive If all values are the same they are all equal to the mean variance = 0 The greater the variance, the more dispersed (the higher the variability is) the values are around the mean
2
2
2
The standard deviation is the square root of the variance the latter is not expressed in the same unit as the original value, this can be resolved with the standard deviation, that is expressed using the same unit of measurement as the variable.
2
2
2
To find: The mean and standard deviation
The variance and percentile
The coefficient of variation The coefficient variation is computed for variables taking positive values
It expresses the standard deviation as percentage of the mean When comparing variability of two variables (particularly if they have different means) comparing their variances or standard deviations directly may not be appropriate Coefficient of variation allows us to compare the variability of two positive variables (regardless of their units of measurements or differences in their means)
(In case of numerical variable) We can assess the shape of a variable by plotting a histogram or a boxplot If the histogram shows: Data below the central value is a mirror image of the data above it: symmetric
Left-skewed o Median – Q1 > Q3 – median o Q1 – minimum > maximum – Q Frequency is low for low value, high for high value Mean pulled downward by low value, median unaffected Mean < median Introduction to STATA and its use for describing data on one variable Commands:
observations, number of variables , size, date the dataset was created For each variable it provides a description in terms of storage type, format and variable lable
values, number of missing values, value labels and counts for each value
variable itself.
o Labeling values is a two-step process:
Example: o label variable Q1_recoded "Number of Computer Days by Classes" o label define Q1_labels 3 "Up to 3 days" 5 "4 or 5 days" 7 "6 or 7 days"
label values Q1_recoded Q1_labels
Example: o recode Q11 (1/2=0 “rarely”) (3/5=1 “often”) (.=.), generate(Q11_recoded)
Example: o generate Q1 recoded=recode(Q1_DAYS,3,5,7) o Generate is useful when you need to generate new variable by applying a mathematical function to one or more variables in the dataset:
Example: o generate digital_access=Q1_DAYS + Q2_DAYS + Q3_DAYS + Q4_DAYS
Bivariate Descriptive Analysis
Statistical techniques used to assess the association between two variables within a sample. We approach this evaluation from an asymmetric perspective Dependent variable: variable measuring the concept we aim to explain Independent (explanatory) variable: variable measuring the concept identified as a potential determinant of variation in the dependent variable Two scenarios:
Q40 2 levels: yes, no Q11 5 levels: never, less than once a month, at least once a week, daily We assess association by comparing the behavior of Q40 (dependent) in the 5 groups of Q Since the dependent is categorical behavior within each group is described by a frequency distribution Create the table with the distribution of Q40 in the five groups determined by Q Command:
tab Q40 Q11, col Each column is labelled after a value of the independent variable and reports the distribution of the dependent variable in the group of respondents on which the value is observed In the group of those who never post (…) 6% answer they commented on a news story about political campaign. In the group of those who daily post (…) 32.82% answer they commented. These two groups of Q11 exhibit different behavior with respect to variable Q There is an association between the two variables at the sample level! Let’s create a numerical index to measure engagement in participatory politics activities This index will count the number of participatory political acts typically performed by a respondent. We need to record the variables Q36 to Q41 and from Q43 to Q45 in such a way to take value 1 in case of a “yes” and 0 in case of a “no” (these variables are different political acts). In this case we generate 9 dummy variables