Docsity

Statistics for Arts module I (Sironi), Appunti di Statistica

Toggle sidebar
bg1
1
STATISTICS FOR ARTS
Statistics is important in the field of economics and management because here the decisions are
made on limited information. Assessments of the market (and the level of demand) must be made.
The manufacturer is interested in the possible buyers of the product (target population), but since
maybe the number of that population is too high so he focuses on smaller samples.
Definitions:
• Population is the collection of all items of interest or under investigation (N represents the
population size). A sample is an observed subset of the population (n represents the sample
size).
• A parameter is a numeric characteristic of a POPULATION, while a statistic is a specific
characteristic of a SAMPLE – values calculated from sample data. In general, statistics are
not equal to parameters – to overcome this problem, is to make statements based on sample
data that have validity about the population at large.
→ for this reason, it is FUNDAMENTAL to select good samples. So, samples that are
representative of the population – it gives a small picture of what happens to the wider
population.
How to select representative samples?
ESPECIALLY through simple random sampling: each member of the sample is chosen strictly by
chance, the selection of one member does not influence the selection of another member, each
member of population is equally likely to be chosen.
→ the result sample is the random sample – excel has a tool that allows for the selection of random
samples.
Two branches of statistics:
- Descriptive statistics: techniques for collecting (ex. SURVEY), summarizing (TABLES or
GRAPHS), and processing data (SAMPLE MEAN) to transform data into information.
- Inferential statistics: all the techniques aimed at extending the results of a sample to the
whole population. Ex. computes the margin of error, etc.
Data
A variable is a specific characteristic of an individual or an object. It can be categorical or numerical:
• Categorical variables produce responses belonging to groups and categories. Such data is
divided between nominal data (ex. male or female) and ordered data. An example is: eye
color, marital status, etc.
• Numerical variables produce responses which are numerically coded. They are divided in
discrete variables if they assume a finite number (countable – ex. number of children: 1, 2,
3, 4 …) of values and continuous variables if they may take a value in an interval (uncountable
– ex. voltage, weight).
→ in the case of discrete variables, we can create a correspondence with the set of natural
numbers. Ex. 0, 1, 2, 4 children → nothing can be placed in the middle (we can’t have 1,5
children). If we consider grades, we can also create a set with 6; 6,5 ; 7. Even in this case this
is a sequence of countable numbers. There is still a relationship with the set of natural
numbers.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Anteprima parziale del testo

Scarica Statistics for Arts module I (Sironi) e più Appunti in PDF di Statistica solo su Docsity!

STATISTICS FOR ARTS

Statistics is important in the field of economics and management because here the decisions are made on limited information. Assessments of the market (and the level of demand) must be made. The manufacturer is interested in the possible buyers of the product ( target population ), but since maybe the number of that population is too high so he focuses on smaller samples. Definitions:

  • Population is the collection of all items of interest or under investigation (N represents the population size). A sample is an observed subset of the population (n represents the sample size).
  • A parameter is a numeric characteristic of a POPULATION, while a statistic is a specific characteristic of a SAMPLE – values calculated from sample data. In general, statistics are not equal to parameters – to overcome this problem, is to make statements based on sample data that have validity about the population at large. → for this reason, it is FUNDAMENTAL to select good samples. So, samples that are representative of the population – it gives a small picture of what happens to the wider population. How to select representative samples? ESPECIALLY through simple random sampling: each member of the sample is chosen strictly by chance, the selection of one member does not influence the selection of another member, each member of population is equally likely to be chosen. → the result sample is the random sample – excel has a tool that allows for the selection of random samples. Two branches of statistics:
  • Descriptive statistics: techniques for collecting (ex. SURVEY), summarizing (TABLES or GRAPHS), and processing data (SAMPLE MEAN) to transform data into information.
  • Inferential statistics: all the techniques aimed at extending the results of a sample to the whole population. Ex. computes the margin of error, etc. Data A variable is a specific characteristic of an individual or an object. It can be categorical or numerical :
  • Categorical variables produce responses belonging to groups and categories. Such data is divided between nominal data (ex. male or female) and ordered data. An example is: eye color, marital status, etc.
  • Numerical variables produce responses which are numerically coded. They are divided in discrete variables if they assume a finite number (countable – ex. number of children: 1, 2, 3, 4 …) of values and continuous variables if they may take a value in an interval (uncountable
  • ex. voltage, weight). → in the case of discrete variables, we can create a correspondence with the set of natural numbers. Ex. 0, 1, 2, 4 children → nothing can be placed in the middle (we can’t have 1, children). If we consider grades, we can also create a set with 6; 6,5 ; 7. Even in this case this is a sequence of countable numbers. There is still a relationship with the set of natural numbers.

→ continuous variables are uncountable because the possible values it can assume is infinite, between a first point A and a second point B there is always a third point in the middle, and so on. Data can be qualitative or quantitative – in the case of qualitative data, there can be nominal or ordinal levels of measurement. For what concerns nominal, the “number” associated to the different individual is only used to “identify” that person. The number is used for convenience and does not entail a ranking. While with ordinal data, there is a ranking of items. An example in in the case of “product quality rating”, where 1 Is poor, 2 is average, 3 is good. CHAPTER 1.3, 1.4, 1. Graphical Presentation of Data The type of graph used depends on the type of data we have to summarize.

For categorical variables, we use

  • frequency distribution: tabulating data – this is a table used to organize data ad summarize it. On the left column, we have all the possible responses on a variable being studies (called categories → ex. analysing gender, possible answers are female and male; so these are the two categories.) Then, number of observations of frequency → how many times that category comes up. For example, if 30 people said they were female, 30 is the number. This is also called the ABSOLUTE FREQUENCY. Or we can compute RELATIVE FREQUENCIES – pi – ratio between total number of observations for that category divided by the number of total number of observations. CATEGORY NUMBER (fi) FREQUENCY (pi) female 2 2/ male 4 4/ The following two are usually used for qualitative (category data). The height of the bar or the size of the pie shows the frequency or percentage for each category.
  • bar chart: graphing data → SEPARATION between the bars /categories. The height of the bar represents the frequency. This is called on excel a HISTOGRAM, even if in statistics we call this BAR chart.
  • pie chart: represents the percentage of frequency for each category (each slice of the pie represents one category and its width it’s the percentage of frequency). N.B Ordered variables (when we can count from 1 to the rest – ex. primary school, secondary school): better with the bar chart, while with nominal variables (impossible to order: ex. blonde, brunette, etc cannot be ordered) we can choose freely between bar and pie charts.

For numerical variables , in the case of discrete variables, we can use:

  • frequency distribution: left column all the possible responses, right column has frequencies → absolute (fi) or relative (pi). Ex: desired number of children considering a sample of 8 people X fi pi 0 2 0, 1 3 0,
  • It is considered skewed if the observations are not symmetrically distributed around the center: to the right if the tail is to the right ( positively skewed ), and to the left if the tail extends to the left ( negatively skewed ) → ex. age of death, majority of people dies at an older age rather than at a younger one. CHAPTER 1. Other graphs Used to illustrate when two variables co-exist: to display the relationship between variables:
  • For numerical variables: Scatter plots → in this case, one variable is measured on the vertical axis and the other variable is measured on the horizontal axis. There are also time-series data graphs → Line Chart is used to show how a variable changes over time. Time is measured on the horizontal axis.
  • For categorical variables: Cross tables or contingency tables - list the number of observations for every combination of values for two categorical or ordinal variables. The combination of all possible intervals for the two variables defines the cells in a table. Cross tables Y1 Y2 …. Yc X1 F X2 F … Xr Ex: F21: number of observations connected to category 2 of variable x and category 1 of variable y. Example Cross table for the favourite cultural activity by gender: Cinema Theatre Museum Male 20 40 60 Female 40 20 20 Yj variable divided into categories: cinema, theatre, museum; Xj variable divided into categories: male, female. So, 40 are the total individuals who are female AND who prefer cinema. Then, we have marginal frequencies. Defined as the sum of the frequencies of the first row. Cinema Theatre Museum Ri Male 20 + 40 + 60 = R1 120 Female 40 + 20 + 20 = R2 80 Cj 60 60 80 200 Now, we can compute relative frequencies - → total is 200, so male individuals who like cinema are 20/200 so 0.1 over the total. Cinema Theatre Museum Ri Male 20/200= 0.1 40=0.2 60 = 0.3 R1 120= 0.

Female 40 = 0.2 20= 0.1 20 = 0.1 R2 80= 0. Cj 60 = 0.3 60 = 0.3 80 = 0.4 200= 1 A category is more often observed → 0.3 but we have to take into consideration that the amount of men are more than women (120 instead of 80). We have to consider the same numerical amount. How to solve this problem? We have to consider two separate wholes for males and females. So the total is 120 for male and the total is 80 for female. IMPORTANT TABLE Cinema Theatre Museum Ri Male 20/120 = 0.17 40/120= 0.33 60 /120= 0.5 120/120= Female 40 /80 = 0.5 20/80= 0.25 20/80=0.25 80/80= These are called row conditional frequencies - computed and compared across rows : males are more likely to prefer museums rather than women. Conversely, females show higher preferences for cinema. The conditional distribution of Y given the category X=xi is defined as Fr (Yj|Xi) = Fij / Ri. Cinema Theatre Museum Male 20/ 6 0 = 0. 333 40/ 6 0= 0. 667 60 / 80 = 0. 75 Female 40 / 60 = 0. 667 20/ 6 0= 0. 3333 20/80=0. 60 /60 = 1 60 /60 = 1 80 /80 = 1 The conditional distribution of X. There is a correlation. This is called column conditional frequencies.

The best approach is the ROW conditional frequency table – to study correlation. The X variable cannot vary (gender) but preferences (Y) can. So, these rows are important as it explains the DIRECTION of causality (that goes from gender to causality). → cause: explanatory variable (gender); consequence: dependent variable (preference)£. In general, it is better to compute the frequencies of the dependent variable, conditionally on the explanatory variable. We favour therefore Fr (Y|X) – the row conditional frequency. Graphing Multivariate Categorical Data

  • Side by side chart: the cause is on the horizontal axis, while the consequence is on the vertical axis.
  • Segmented (stacked) bar chart: on the axis x we put the cause, on the axis Y the consequence. The frequency of the column given the row (Frequency of Y given X or FR(Y|X))→ conditional row frequency. Generally, the best choice is to compute frequencies of the dependent variable, conditionally on the explanatory variable → the explanatory variable is that which can be assumed as the cause in the causal chain. Graphing Multivariate Categorical Data Side by side chart: the cause is on the horizontal axis, while the consequence is on the vertical axis. Segmented (stacked) bar chart: on the axis x we put the cause, on the axis Y the consequence.

Independence and Association

In the example presented above, we say there is an association between the explanatory and

the dependent variable. This is because the conditional distributions of the favourite cultural activity vary between the groups defined by the gender. → men prefer museums while females like cinema – associated to the gender. HOWEVER, when frequency distributions for rows (or for columns) do not vary between the groups

defined by the explanatory variable, we state that the variables are independent.

Another example: Preferences (dependent variable):

  • Dance: number of individuals who like dance are 15
  • Sport: number of people who like sport is 15
  • TV: number of people who like tv is 30 Categories (explanatory variable):
  • Under 30: number of people under 30, there are 20
  • Over 30: number of people who are over 30, there are 40 FREQUENCY FOR THE ROWS As before, we calculate the percentage over the total for each category. Total for under 30 is 20, while total for over 30 is 40. We see, that the percentages compared are the same. 0.25; 0.25; 0.5. So, the variables are independent. There is no association between the explanatory and dependent variables.

The conditional distribution

of favourite leisure activity does not vary between age groups (categories).

CENTRAL TENDENCY INDICATORS

MEAN: sum of the observed values or the population values DIVIDED by the sample or population size. Obviously, these two numbers can be different. Briefly, the SUM of values divided by the number of VALUES. IMPORTANT!!!!! Population mean is described with the symbol 𝜇 (it is a parameter – over a population size defined with an uppercase N), while the mean of the sample is defined with 𝑋̅

(it is a statistic – calculated over a sample size defined with a lowercase n).

The problem with the mean is the fact that it is affected by extreme values (outliers). If there is

a distribution of 1 – 2 – 3 – 4 – 5, the mean is 3. If the distribution is 1 – 2 – 3 – 4 – 10 , the mean is

  1. But it doesn’t tell us anything about the fact that only one number is so high (10). There is a high variability.

MEDIAN: in an ordered list, the median is the middle number. So, in order to obtain it, we must

arrange the data in an increasing (or decreasing) order. Median is not affected by extreme values.

  • Sample of: 1,2,3,4,5 MEDIAN = 3
  • Sample of: 1,2,3,4,10 MEDIAN = 3 If the number of values is an odd number, the median is the middle observation. Otherwise, we have to make the average between the two numbers.

There is a formula to find the LOCATION of the media (not the value – the

value is the value attached to the location number found by the formula).

Example: Sample: 1 2 4 6 9 10. We have 6 observations so Q2 → 0.5 (6+1) = 0.5 x 7 = 3. So, we must make the mean between value in position 3 and number in position 4 → 4+6/2 = 5. MODE: it is the value that occurs most often. It is not affected by extreme values. There might be either NO mode or SEVERAL modes. For example, if there are two modes – we say it is BI-MODAL. Whether we use median, mode or mean depends on several elements → it is context specific.

  1. One factor that influences our choice is the type of the variable taken into account: categorical data are best described by the mode or the median. → if the variable is categorical and nominal (cannot provide an order between the observations), only the mode can be applied. → if the variable is categorical and ordinal, both the mode and the median can be used.
  2. Mean is generally used, unless external values ( outliers ) exist – are present in the distribution. Another factor that affects the choice of the correct central tendency indicator is the presence (or less) of OUTLIERS. → Outliers are data points that differ significantly from the other observations. Mean in this case is not robust with respect to the presence of outliers. Median is preferred (it is robust ).

We need indicators that are able to compute variability. These are:

  • Range
  • Interquartile Range
  • Variance
  • Standard Deviation
  • Coefficient of Variation RANGE It is the difference between the largest and the smallest observation in the data set. In numbers,

this definition is RANGE = X max – X min. So, in the case of the data set proposed above, A)

range is 5 – 1 = 4, B) 7 – (– 1) = 8 → the distance between the minimum and the maximum is 8. Therefore, the range in B is bigger than range in A. There is more variability.

  • Disadvantage of this approach: If there is only one outlier (data point that differs significantly from other observations, it wouldn’t be detected. Set C) 0, 1, 1, 2, 3, 4, 4, 125. The first numbers are very near the mean, but only the last one is very different. Range of c is 125. It is very sensible to outliers. INTERQUARTILE RANGE (IQR) Quartile: we first talked about it when discussing the median, therefore the observation located in

the middle of a distribution. A number can be defined as the median, if from the minimum

to the median (included the median) we can observe 50% of the observations. And then, after the media there should be at least 50% of observations (including the median). In other words, A value Q2 is defined to be a median if Fr ( x =< Q2) >= 0.5 → it cuts the distribution in two parts in equal parts. Fr ( x >= Q2) >= 0. But we can furtherly divide the distribution in parts, that aren’t necessarily placed in the middle. We do so with the quartiles (25% on one part, 75% on the other).

  • This is the First Quartile (Q1) – the data under Q1 must be at least 25% or ¼, while above it has to be 75% or 3/4, the second Quartile is the median (Q2), then the third Quartile is (Q3). In set of data 11, 12, 13, 16, 16, 17, 18, 21, 22 Q1 = 0.25 (9 + 1) = 2.5 ( this means that the first quartile is located between the observation 2 and 3 = therefore conventionally we consider the arithmetic mean between the two observations) → 12. Q2 = 0.5 (9 + 1) = 5 Q3 = 0.75 (9 + 1) = 7.

Generalizing the concept, we introduce the concept of p.th percentile. P = percentage between 0 and 1. Quartiles are used to measure the spread of data avoiding the danger of outliers (overcome the limits of the range). A possible solution is to remove the lowest 25% of data and the highest 25 % at the top, and then we compute the range of the remaining observations. IQR = Q3 – Q1. We “cut-off” the extremes. X= 11, 12, 13, 16, 16, 17, 18, 21, 22 Q1 = 12.5 → IQR = 7 Q3 = 19. Still, this measure does not take everything that happens in the middle, it only takes into account the value of two data points: Q1 and Q3. It ignores what happens to all the other observations. VARIANCE It is the main indicator of variability: takes into account the values of all the data points included in the set of data. Variance averages the total distance between each of the data values and the central point of the distribution (the mean). For example, in the set of data A) 1, 3, 5. We compute the distanced between the various points and the means. (1-3), then (3-3), then 5-3). Afterwards, we compute the mean between these differences. Therefore (1-3) + (3-3) + (5 – 3 ) / 3 = 0; B) (- 1 - 3) + (3-3) + (7-3) / 3 = 0. Same distance of the two values from the mean. Still, the distance is greater in set B rather than A. What do we do? We use the power of two the distances. If the distance is – 2 and + 2, we raise them to the power of two → 4 + 4 = 8 is the distance. It emphasizes distances.

An alternative formula is the so-called reduced formula of variance. What is the problem with the variance? It is that it is squared (power of two). It is not our measurement unit. So we need to restore the previous measurement unit by computing the standard deviation. STANDARD DEVIATION This is simply the square root of the variance. COEFFICIENT OF VARIATION When you compare two situations with a relevant difference in seize or two situations with strong differences in measurement units, a comparison of variability using standard deviations is not possible. In this case you compare variability using coefficients of variations. CV (x ) = standard deviation / mean →

This allows to see how significant is the variation.

COVARIANCE

Measures of relationship between variables: we have introduced the scatter plot as a graphical way of describing the relationship between two numerical variables. In this case, we can see that with the increase of Y there is also an increase of Y. Aim of the lesson is how to develop analytical tools to see if there is any relationship between values X and values Y with a FORMULA , not with a graphic. The analytical tool in question is the covariance. When we consider covariance , we focus on a measure of the linear relationship between variables. → what is a linear relationship? A relationship of DIRECT PROPORTIONALITY that when plotted on a graph traces a straight line. A relationship like this is where increasing or decreasing one variable will cause a corresponding increase or decrease in the other variable. It is also very flexible so it can be easily adapted in cases where linearity is not strictly satisfied. The presence of a linear relationship can be studied with covariance. In the population covariance , Ux is the mean of X while Uy is the mean of Y. Population covariance is a parameter. (xi – Ux) means deviation from the mean. Sample covariance, with X bar and Y bar that is the mean of the sample X and Y. For example, we have two data sets X : 3, 4, 7, 9, 12

However, it can also happen that X and Y do not move in the same direction. They move in OPPOSITE DIRECTIONS. An increase of X is followed by a decrease in Y, and the contrary. If X increases from the mean, then Y decreases. X and Y move in opposite directions. There is a negative result. The covariance in this case is < 0. SUMMING UP

  • If COV > 0, x and y tend to move in the same direction, they are positively correlated.
  • If COV < 0, x and y tend to move in opposite directions, they tend to move in opposite directions.
  • Instead, if COV = 0 , this means that x and y are not linearly related (but we cannot exclude different functional relationships. However, covariance does not give us the STRENGTH o f the relationship. Another indicator is needed that preserves the info about the direction of the relationship (same advantage of the covariance), but that also gives us an absolute number – pure number so it can be comparable also with different measurement units.

This is the COEFFICIENT OF CORRELATION:

measures the relative strength of the linear relationship between two variables. Obtained as the ratio between the covariance and the product of two standard deviations (of x and of y).

The coefficient → - 1 <= r >= + 1.