











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!












What is Statistics?
Scales of Measurement In which unit these variables are measured? There are four broad scales of measurements: nominal, ordinal, interval and ratio and they determine the type of analysis that can be conducted on a variable.
A key concept in sampling is randomness and it has to do with the chances of each person/object in the population to be selected for the study → Random sampling means that samples are chosen so that every sample in a population has an equal chance of being chosen → it is important to prevent bias! (if a certain group is over/underrepresented, the sample is considered to be biased, and it could lead to inaccurate conclusions about a population) There are several causes of sampling bias: o The timeframe at which data are collected o Certain subjects may be more likely to be selected (biased selection by either researchers (e.g. choose friends, or haven’t advertised the study that much) or subjects themselves (often the people who take the time to respond to surveys are those who really care about the topic)) Statistical sampling methods: o Simple Random Sample : samples are randomly selected from the population Randomness is defined by the chances of being selected: every subject has an equal chance of being selected E.g. select a simple random sample of 10 people from a population consisting of 100 people. You can assign each person in the population a number (from 1 to 100) and then use a random number generator to select 10 people from this population. A specific type of random sampling is the systematic sample, in which you sample every k th person from the population (in our example, every 10th person) o Stratified Random Sample : take into account different layers within the population E.g. survey the opinions about the difficulty of the DIS program from students. Randomly select a sample of students from each of the program’s years. We ensure that our sample is representative of the population by also keeping the same ratio of sample sizes as the ratio of the population strata (indeed, the respective sample sizes (inner rectangles in the picture) mimic the size of the population) Stratified sampling is beneficial to ensure that enough data from each category is collected to make a meaningful inference, and it also allows us to draw conclusions within each of the groups o Cluster Sample : focuses on representative subsets within a population E.g. we wish to study Maths performance of elementary school students. The city school district with 8 elementary schools is the population (the rectangle) and we randomly select 3 of these schools (clusters) for our sample. Within each of the 3 schools, we select a random sample of students for our study. It is used when it’s difficult or impractical to randomly draw samples across an entire population. It is important that the clusters from which the samples are drawn are representative of the population. Otherwise, the samples, themselves, will not be representative of the population → the clusters must be homogeneous!→ since the clusters are homogeneous, they are interchangeable! (≠ stratified random sample, which is used when the layers are not homogeneous)
The Sample Size depends on 4 criteria: a. Population size : the larger the population, the larger the sample should be b. Population variation (= extent to which members of the population differ from each other; e.g. high variation in the income of Chicago residents; low variation in the income of students in a private school in an upper-class area - thus in Chicago you would have to obtain a much larger sample-to-population size ratio to adequately represent this population): the larger the variation in the population, the larger the sample (and the larger the sample-to-population size ratio) should be c. Resources available : the more resources available to you, the larger the sample can be d. Amount of error that can be tolerated : the more tolerant you are of error, the smaller the sample can be. Sampling error : difference between the sample statistic and the population parameter E.g. if you measure each and every person in the class, you’d obtain the true average height for the class. This true average is called the population parameter. If you take a sample of 20 students, you would obtain an estimate of the true average based on your sample. This is called the sample statistic A survey of 100% of the population would result in a sampling error of zero. However, as you reduce the sample size, you’d generally be working with a less accurate representation and increasing the sampling error It would make most sense for you to obtain the largest sample you are able to obtain. Nevertheless, if you are just after a general estimate of the population parameter and would be happy with a rough figure, you can reduce your sample size (and save your resources!) → it’s difficult to judge the size of a sample based if we don’t have much information about it (e.g. a survey on the opinions of 40 top M.&A. bankers and lawyers). In order to know if a sample is sufficiently large, we’d need to know the total population size, the extent their opinions vary (population variation), whether we can afford to survey more people (available resources), and how accurate we want or need to be in our conclusions (tolerable error) Errors:
Frequency Tables for Qualitative Data → qualitative data are those measured on the nominal and ordinal scales, and the only operation we can perform with such data are counts and proportions Which country dominated the 2016 Summer Olympics? Based on your data, you construct the frequency table, which lists the true medal counts for the top ten countries. Each row provides a value (i.e., a country) alongside this value’s observed frequency (i.e., the number of gold medals won by the country) → a pie chart could also be used Another example: you survey 30 co-workers ( statistical unit ) to obtain the following data on their mobile providers ( variable ) We could also use bar charts and pie charts to represent data: Frequency Tables for Quantitative Data Quantitative data are numerical and can be either discrete (integers - countable) or continuous (generally uncountable, as listing all the values present in a data set would result in much too large a frequency table). For the most part, with quantitative data we cannot simply list all the values in our data set since often that would result in very large frequency tables. For example, if we wish to observe the frequencies of grades on a percentage scale, it does not make sense to have a table with 100 rows for each possible grade: We group values into classes before constructing a frequency table. Classes must be mutually exclusive and exhaustive :
There are 3 important points we can make with respect to this example: a) We still have a relatively large number of classes (10) for a relatively small number of observations (50) → we may wish to consider a different way of grouping data into classes (e.g. representing the grades A, B, C, D, F) b) Since we defined our classes in terms of integers, we are not capable of handling half grades like 79.5 (would you place it in class 8 or 9) c) We defined our classes arbitrarily as intervals of 10 and some of these have very low frequencies, so it may be better to first consider the data and research requirements before defining classes → 2 important decisions involved in constructing frequency tables: 1) determining the number of classes to use, and 2) determining the width of these classes Creating Classes Step 1: Number of Classes ➢ There are no strict rules for determining the right number of classes to use, and the decision is generally guided by the number of observations in the data set, the researcher’s knowledge of what is being described by the data, and other research requirements ➢ rule of thumb: any number between five and twenty classes is acceptable ➢ the alternative is Sturges’ formula , which offers a way to calculate the number of classes to use for a data set of size n: E.g. if there are 200 observations in the above data set and no business logic to determine the optimal amount of classes, we can use Sturges’ formula as: 1+3.3*log(200)= 8.59 = 9 classes (best to always round up classes to ensure that no values are left out!)
Stem and Leaf Plot A different way of graphing quantitative data
What we need is some measure of the number of people who fall in each class, relative to the size of the group. The relative frequency is the measure we are looking for, as it describes the frequency of occurrence of specific values as a percentage of the total number of observations. To create the relative frequency (rfi) distribution table, we divide the frequency of each class (fi) by the total number of observations (N) → rfi = fi/N The relative frequency provides a more accurate view of the share of each class (out of the total number of observations) in a data set. You can obtain a similar view of the data by using a pie chart A pie chart displays how the total data set (the whole pie, or 100%) is divided among the five classes: the larger the slice, the larger the relative frequency of that class. Comparing the two purple slices, which represent the class of 500 wpm to 599 wpm, we can see that this constitutes a larger part of the pie on the right, which is the pie chart for the ‘Course’ group. Further, compare the area captured by the two lower classes (red and blue) and you can see that it is smaller in the ‘Course’ group than in the ‘No Course’ group Cumulative Relative Frequency Another type of analysis you can do is add together the relative frequencies of these two classes (the dark blue - 200 to 299 - and red - 300 to 399 - slices) and compare these combined shares for both groups. Note that 45% students in the ‘No Course’ group read at a slower pace (399 wpm or lower), compared with about a third of the students in the ‘Course’ group (33.67%). The above calculation provides us with what is called the cumulative relative frequency. The cumulative relative frequency is obtained by adding up the relative frequencies of classes as you move down a frequency table.
Other possible relationships we might observe using scatter plots are a negative linear relationship , where the variables move in opposite directions (e.g., the lower the price of a product, the higher the demand for the product), and nonlinear relationships. An example of a non-linear, or curvilinear, relationship is that of diminishing marginal productivity: adding additional units of labour contributes less and less to the total quantity of goods being produced. Line graphs are commonly used to describe time series data (aka the values of a given variable over time). From the graph you can clearly see the trends in the stock market over time. For example, the stock market crash of 2008-2009 is shown as the large dip in the centre of the line MEASURES OF CENTRALITY AND VARIATION Fundamental to any interpretation of data in statistics, as well as in other fields, is the context in which these data lie. Context refers to the circumstances or conditions in which an event occurs. A commonly used context is the distribution from which specific data values are drawn, for instance, you might wish to find out how your grade compares to the grades obtained by the others. Specifically, we need to understand two types of measures - those that describe the centre of the frequency distribution, called measures of centrality , and those that describe the dispersion of data around the centre of the distribution, called measures of variation. We describe distributions using: o Central tendencies (where the centre of the distribution lies) → mean, median, mode o Variation (how values are spread around the centre) → range, standard deviation, variance → we will work mostly with quantitative data (interval/ratio) Capital letter: variable (e.g. X) aka population values (e.g., N represents the size of the population) Lower case letter: value of the variable (E.g. x) aka sample values (e.g., n represents the size of a sample) Number of ?: small n (n)
The central tendency of a frequency refers to where its centre lies, but there are different ways to statistically define a distribution’s centre : o centre is the most common class → mode o centre is the value that splits the distribution in half, meaning 50% of values below it → median o actual centre → mean The Mean
Variance : variation means that not all people are created equal. Researchers are often interested in studying expected versus observed variance or in comparing the variance of two data sets under different scenarios Example : test scores of 10 students The mean is 77, and all students except for one got either below or above average test scores Plot: Compare two sections: The graph on the right shows higher variation around the mean Deviation : The distance between each student’s grade and the mean is called a deviation. These deviations represent the fact that the grades in this data set are not identical. o refers to the difference between each observation and the mean (e.g. each student’s grade and the mean of 77), thus representing that the values in the data set are not identical o the extent of deviations tells you the extent of variation that exists in the data o the sum of all deviations is zero (because of how the mean is computed, positive deviations cancel out negative deviations, so the sum of all deviations from the mean is always zero) and, therefore, we use the squared deviations in our calculation
Variance : o is calculated as the average of the squared deviations of a data set for population variance , we divide the sum of squared deviations by the population size (N) for sample variance , we divide the sum of squared deviation by the sample size minus 1 (n-1) The variance of the sample of ten quiz grades in our example is calculated as: Standard Deviation
E.g. In the case of 10 SAT scores used earlier: 60th percentile L60 = (10+1)60/100 = 6.6 → the value located in place 6.6 is the 60th percentile o To calculate the actual value of the 60th percentile, you can use the weighted average E.g. the value is located 60% of the way between 1371 and 1381, so: 0.41371+0.6*1381= Interquartile Range