













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!














Data are empirical material organised in a form that can be analysed Excel is very old but efficient and it can be considered an important basis for other platforms Spreadsheet is an interactive computer app for organisation analysis and storage of data in tabular form, it consists of a table of cells arranged into rows and columns and referred as X and Y locations Cell - > box for holding data Worksheet - > grid of vells with raw data (values) or formulas in the cells Values - > raw data or a value that can be based on a formula (numbers, text, data) Formulas - > say how to mechanically compute new values from existing values Functions - > built-in functions Charts - > graphical display of data
the contents of the cell
You can write
A cell reference identifies a cell’s location in the worksheet based on its column letter and row number There are different types of cell references:
Data analysis is a process of gathering, inspecting, transforming and modelling data with the goal of discovering useful information
Units of analysis are objects or subjects to which the properties investigated pertain
A variable is an empirical measurement of a characteristic It has a name and at least two values A value is each of the different category of a property (variable) A variable can change:
A constant is a variable that doesn’t change for all units of analysis
Variables can be classified according to the operations that can be carried out on them
Highest level of information since it can be used for operations They have full numerical meaning ▪ Cardinal - > can be used for mathematical operations ▪ Ordinal
It communicates relative differences between units of analysis ▪ Discrete ▪ Orderable - > it exists an order The distance between one category and the other is known
It communicates differences between units of analysis on the characteristic being measured ▪ Discrete - > finite number of categories ▪ Non-orderable - > no order or hierarchy can be established Classification is the process of assigning categories to each unit of analysis (exhaustive and mutually exclusive) Categorical
Descriptive statistics summarise the information in a collection of data by graphs, tables, numbers…. Different types of descriptive statistics are:
It is a list of possible values for a variable, together with the number of observations at each value 1 - List the categories 2 - How many of each category there are The total of all the categories should be equal to the number of observations =COUNTIF (RANGE;VALUE) Relative frequency distribution is shown through proportions or percentages FOR CONTINUOUS VARIABLES: It can’t always be used since usually there are a lot of different values that the variable can be Its useful to define bins which are consecutive, non-overlapping intervals of a variable, they should be exhaustive and mutually exclusive =FREQUENCY (RANGE;BINS) – then press CTRL + SHIFT + ENTER
Statistics that show what a typical observation is like
We can have more than one mode =MODE (NUMBER1,NUMBER2…) There can also not be a mode (#NA) If we use it with nominal or ordinal values, we have to recall them with numbers =MODE.SNGL (NUMBER1,NUMBER2…)
With odd number of observations it is the central value With even number of observations it is the average of the two middle observations It isn’t affected by outliers (data points that differs significantly from the other observations) =MEDIAN (NUMBER1,NUMBER2…)
It is highly sensitive to outliers It is pulled in the direction of the longer tail of the data =AVERAGE (NUMBER1;NUMBER2…) =SUM(…)/COUNT(…) If the median and the mean are very different it is better to use the median Each of the different type of variable can hold for different measures of central tendency:
Measures of central tendency don’t really inform about distribution of the values Measures of variability specify the variability within a dataset Measures of variability are:
To save an excel file as a comma-delimited file:
Data validation is useful to ensure data integrity, to make sure that it respects some rules
We can decide the type or style of data and also the input and error message We can also decide to include a drop-down menu in which we insert a list of possible options to choose There we can specify the range, linking a list that may be already present in the data worksheet)
Formatting is useful to change the way in which data appears to make it easier to read The main tools can be found in the ‘home’ tab Conditional formatting is useful to find a formatting rule based on data criteria There are different types of conditional formatting the cells:
You can also specify new rules by clicking on ‘New rule’
Feature that expedites formatting, filtering and calculations
There is a new tab (‘Design’) in which there are more options for the table design Adding the ‘Total row’ is useful in order to have a row at the bottom of the table, in which you can specify the operation To return from a table to normal range click on ‘convert to range’ In the tables we can use structured reference, in the formulas, instead of writing the name of the cell, we can use the heading of the row/column
A pivot table is a table of statistics that summarises the data of a more extensive table It is called ‘pivot’ because we can easily move variables between rows and columns
A chart is a graphical representation of numeric data in a worksheet They help conveying a message in an easier way We can use charts to:
Since there are a lot of possible different charts, it’s always useful to choose the right one:
Compare values across categories or a time period, data points are vertical rectangles Useful for:
Illustrate comparisons among individual terms when axis labels are long, data is represented as horizontal rectangles Useful for:
Compare the size of the items in one data series and how each slice compares with the whole Data points are displayed as a percentage of a circular pie
Useful for:
Relative frequency distribution for a quantitative variable If we use it with a continuous variable we have to divide the values in mutually exclusive intervals Useful for:
Displays the central tendency and spread Useful for:
Show trends in data at intervals, displays continuous data over time set against a common scale Data points are represented as points along a line Useful for:
Emphasise the magnitude of change over time, shows relationships of parts to the whole Data points are represented as shaded areas Useful for:
Show relationships of one numeric set of data against another numeric set of data to look for a correlation The independent variable is usually on the horizontal axis, while the dependent is on the vertical axis Useful for:
Three-way comparison based on a scatterplot Useful for:
Bivariate analysis is the analysis of the association between two different variables It also describes the nature of this association An association exists if particular values of one variable are more likely to occur with certain values of the other variable Its always important to distinguish between:
When the independent variable is categorical, it defines the groups to be compared with respect to the response variable When the independent variable is quantitative, we examine how different values of the explanatory variable relate to changes in the response variable
1 - Define your research question (what we want to investigate) 2 - Define the dependent and independent variables 3 - Define how to measure the variables (EX. Survey data) 4 - Contingency tables (simple table that displays counts for two categorical variables): o Rows - > categories of the independent variable o Columns - > categories of the dependent variable Each entry in the table is the number of observations (joint frequency) in the sample at a particular combination of categories The process of cross-tabulation of the data consists in taking a data file and finding the frequencies for the cells of a contingency table (insert a pivot table with one variable in the rows and one in the columns, insert one of the two in the value and select ‘count’) 5 - Conditional proportion - > convert frequencies of one variable within each category of the other to proportion/percentage and compare them: o Find the total of the row (show the number and the 100%) o Calculate the % of the row total o Select to show results of the value as ‘% of row total’ We can represent the conditional distribution with a column chart (if we don’t have many categories) Two categorical variables are independent if the population conditional distributions for one of them are identical to each category of the other The variables are dependent (associated) if the conditional distributions are not identical Two events A and B are independent if P(A) (Probability of A) is the same as the conditional probability of A, given B, denoted by P(A/B) To formally test the association between two categorical variables:
1 - Define the hypothesis for the test: H 0 - > the two variables are independent Ha - > the two variables are dependent 2 - Compute the expected cell count (joint frequencies if the two variables were independent) It satisfies the null hypothesis of independence 3 - Chi-squared test statistic - > it measures how close the observed cell counts fall to the expected cell counts When the H 0 is true, the X^2 value tends to be smaller When the H 0 is false, the X^2 value tends to be higher 4 - To evaluate if the chi-squared is statistically significant we can use the P-value The P-value doesn’t tell the strength of an association but it measures the probability that the X^2 statistic for a random sample would be larger than the observed value if the variables are truly independent o P-value ≤ 0.05 - > reject the null hypothesis of independence (the variables are dependent) o P-value > 0.05 - > accept the null hypothesis of independence (the variables are independent) =CHISQ.TEST (actual_range, expected_range)
b is 0 - > it is a straight horizontal line We can also use the function: = LINEST (KNOWN_Y’S, [KNOWNX’S], [CONST], [STATS]) In which:
A mixed association is an association between a quantitative dependent variable and a categorical independent variable When a mixed association occurs we investigate how the outcome on the response variable tends to change between the categories of the explanatory variable 1 - Create a box-plot of the quantitative variable for each value of the categorical variable (to compare the distribution) 2 - Compute measures of variability and central tendency for the quantitative variable for each category of the categorical variable Use a pivot table to show descriptive statistics (average, standard deviation, count) by putting the independent variable in rows and the dependent variable in values 3 - Then compare these statistics and see whether there is a variation across the categories of the independent variable If the categorical variable has only two categories we can use the T-test:
supported
the same mean
variable)
independent variable)
variance) We can also perform the t-test using the data analysis tool pack (‘two-sample assuming unequal variance’) If the categorical variable has more than two categories we can:
Formally we can test it with ANOVA (One-Way Analysis Of Variance) present in the data analysis tool pack
When analysing associations between variables we need to be cautious about certain potential problems:
data That is linked to the fact that not always the association in the future will behave as in the past
An outlier can have a substantial effect on the correlation and regression (influential)
It’s also useful to present your work in a way that is easy to understand Figures and tables can be used for presenting data and explain concepts
It’s also important to reference at it in the text When using a figure we should consider:
Report always a title and a caption 2
Data analysis is a process of inspecting, cleansing, transforming and modelling data with the goal of discovering useful information, informing conclusions and supporting decision-making Data are empirical material organized into a form that can be analysed
Units of analysis are the objects to which the properties investigated pertain A variable is an empirical measurement of a characteristic, it has a name and at least two values, it can variate over time or among cases There can be different levels of measurement of the variables:
and can be counted and measured A spreadsheet is an interactive application for organization, analysis and storage of data in tabular form, it is a table of cells arranged in rows and columns A cell is a box for holding data, it is referenced by its column and row A worksheet is a grid of cells with raw data, celled values or formulas in the cells Values are row data, it can also be the result of a formula or of a calculation A formula is an equation that performs calculations (it must be entered with =) Built-in functions are arithmetic operations, trigonometric functions, statistical functions… A chart is a graphical display of data A cell reference identifies a cell’s location in the worksheet based on its column letter and row number, there are three types of cell reference:
How to structure a dataset: 1 - Put variables in columns, observations in rows and data in cells 2 - Include a unique identifying number for each observation 3 - Put variable names in the first row 4 - Use a separate column for each piece of information 5 - When entering dates include a 4 digit year 6 - Decide on ‘missingness’ conventions 7 - Be consistent in the data entry 8 - Document the database with a codebook (variable names, data type, label or longer name and units of the variable, codes for any categorical variable, missingness conventions and notes) Different tools of data management are:
Descriptive statistics summarise the information in a collection of data