Docsity

1 Variables and Data, Exams of Statistics

Toggle sidebar
bg1
1 Variables and Data
Definitions and introduction to terminology used in statistics.
Definition: Data are numbers with a context.
A data set includes cases. For each case the data set records information in form of variables.
Cases in a particular data set usually possesses many different characteristics (variables):
Example:
Student is case Variables: age, height, weight, sex, hair color, grade in STAT 161.
Definition:
•Cases (experimental units) are the objects about which information is desired. Cases
may be people, animals, bacteria, companies, bicycles, cars, stocks, etc..
•Avariable is any characteristic of an individual. A variable can take different values for
different cases.
•The entire collection of cases is called the population of interest.
•A sample is a subset of the population, selected for study in some prescribed manner.
1.1 Two types of Statistics
1. In descriptive statistics the purpose is to describe a data set with the help of numerical
and graphical methods. Usually the interest is just in the sample presented
2. In inferential statistics the goal is to draw conclusions about an entire population based
on the findings in a sample. We use the sample to estimate, predict and make decisions
about the entire population
Example 1
1. The proportion of students at MacEwan who attended high school in the Capital Area.
The OUR (Office of the University Registrar) can provide this information. This describes
a purely descriptive statistical application.
2. Does attendance matter in student success. In a study a random sample of students
enrolled in college courses the attendance rate and the midterm and final exam results
are recorded. Then this data is used to test if attendance has a significant influence on
the marks obtained in an exam for students enrolled in college courses.
This describes the setup of a study employing inferential statistics. Data on a sample of
cases is used to draw conclusion about all students enrolled in college courses.
Warning: This is a very simplistic view, success in a course depends on many other
variables (subject, year of study, university, time class is scheduled, etc.)
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download 1 Variables and Data and more Exams Statistics in PDF only on Docsity!

1 Variables and Data

Definitions and introduction to terminology used in statistics.

Definition: Data are numbers with a context. A data set includes cases. For each case the data set records information in form of variables.

Cases in a particular data set usually possesses many different characteristics (variables):

Example: Student is case Variables: age, height, weight, sex, hair color, grade in STAT 161.

Definition:

  • Cases (experimental units) are the objects about which information is desired. Cases may be people, animals, bacteria, companies, bicycles, cars, stocks, etc..
  • A variable is any characteristic of an individual. A variable can take different values for different cases.
  • The entire collection of cases is called the population of interest.
  • A sample is a subset of the population, selected for study in some prescribed manner.

1.1 Two types of Statistics

  1. In descriptive statistics the purpose is to describe a data set with the help of numerical and graphical methods. Usually the interest is just in the sample presented
  2. In inferential statistics the goal is to draw conclusions about an entire population based on the findings in a sample. We use the sample to estimate, predict and make decisions about the entire population

Example 1

  1. The proportion of students at MacEwan who attended high school in the Capital Area. The OUR (Office of the University Registrar) can provide this information. This describes a purely descriptive statistical application.
  2. Does attendance matter in student success. In a study a random sample of students enrolled in college courses the attendance rate and the midterm and final exam results are recorded. Then this data is used to test if attendance has a significant influence on the marks obtained in an exam for students enrolled in college courses. This describes the setup of a study employing inferential statistics. Data on a sample of cases is used to draw conclusion about all students enrolled in college courses. Warning: This is a very simplistic view, success in a course depends on many other variables (subject, year of study, university, time class is scheduled, etc.)

Definition:

  • A population is the set of all cases of interest in a study.
  • A sample is a subset of a population, of which information (data) is obtained.

For inferential statics random samples are required!

1.2 Types of Variables

categorical ↗ Variable discrete ↘ ↗ quantitative ↘ continuous

Example:

  1. qualitative: sex, hair color, species, scales (very good.. ., very bad), artist
  2. quantitative discrete: number of siblings, number of people crossing an intersection (often result of counting), number of band members
  3. quantitative continuous: height, weight, distance, length of time (often result of measure- ment)

Definition:

  1. A categorical variable places an individual into one of several groups or categories.
  2. A quantitative variable measures a numerical quantity or amount in each individual.
  3. The distribution of a variable tells us what values it takes and how often it takes these values.

Definition:

  1. A (quantitative) discrete variable can assume only a finite or countable number of values.
  2. A (quantitative) continuous variable can assume the infinitely many values corresponding to the points in an interval.

Quantitative data is discrete if the possible values are isolated points on the number line.

Numerical data is continuous if the set of possible values forms an entire interval on the number line.

Data: Values of variables for different individuals.

category frequency relative frequency percentage wood 50 0.25 25% tiles 10 0.05 5% linoleum 20 0.1 10% carpet 120 0.6 60% total 21 1 100%

Such a table is called the frequency distribution for qualitative data or statistical table. Once the data is summarized in a frequency distribution table, the data can be displayed in a bar chart or pie chart. The bar chart will effectively show the frequencies or percent in the different categories whereas the pie chart will show the relationship between the parts and the whole.

Example: Why do youth vote? In the National Youth Survey participants were asked why they vote: The following table summarizes the results. General Attitude towards Politics collapses the following answers: It is a civic duty to vote Because I think it is important to vote It allows me to express my opinions/views I can/It’s my right Out of habit It’s important that youth vote My vote counts

Political Influencers: Because a friend, family member, or other person encouraged me to vote

Interest in Politics: To support or oppose a political party I want to/I want change To support or oppose a specific candidate I care about different issues sample size=number of observations=n=

category frequency relative frequency percentage angle Attitude 707 0.70 70% 252 Influencers 34 0.03 3% 11 Interest 266 0.26 26% 94 Other 7 0.01 <1% 3 total 1014 1 100% 360

2.1.1 Bar chart

A bar chart is a graph of the frequency distribution of a qualitative data variable

  • For every category the x-axis is marked with a tick.
  • Each category is represented by a bar, which hight is proportional to the corresponding frequency (relative frequency).
  • label the y-axis.

Remark: The width of each bar should be the same, so the height is proportional to the corresponding frequency (or proportion, or percentage).

Example 3 Suppose the frequency distribution of the mainly used flooring products is:

frequency relative freq wood 50 0. tiles 10 0. linoleum 20 0. carpet 120 0.

Example 4 For the Question from the National youth Survey the bargraph looks like

Example 5 For the Question from the National Youth Survey the piechart looks like

M&M’s example: On the M&M’s webpage the following information on the distribution of colors in peanut M&M’s is provided

color brown yellow red blue orange green percent 12% 15% 12% 23% 23% 15 In order if this distribution is a ”true” description of what is in a bag, someone bought a bag with 200 peanut M&M’s and wants to describe the colors of the contents.

Color is a qualitative variable, so a relative frequency table shall be obtained.

color count rel. freq. percentage brown 50 0.25 25% yellow 28 0.14 14% red 14 0.07 7 % blue 52 0.26 26% orange 36 0.18 18% green 20 0.1 10% Total 200 1 100%

And a bar chart would look like this:

For the pie chart the angles of the slices have to be determined

color count rel. freq. angle brown 50 0.25 90 o yellow 28 0.14 50. 4 o red 14 0.07 25. 2 o blue 52 0.26 93. 6 o orange 36 0.18 64. 8 o green 20 0.1 36 o Total 200 1 360 o

This results in the following pie chart

It shows: center, range, concentration, nature of distribution (unimodal, bimodal, multi- modal), unusual values, skewed to the right/left. Sometimes the available stem choices result in a plot that contains too few stems and a large number of leaves within each stem. In this situation you can stretch the stems by dividing each into several lines.

The two common choices for dividing stems are:

  • Into two lines, with leaves starting with 0 to 4 and 5 to 9
  • into 5 lines, with leaves 0-1, 2-3, 4-5, 6-7, 8-

Example 7

You also can use stem and leaf plots for the comparison of the distribution of two groups:

Example 8

Acceptance rates of law schools: 32.9, 34.2, 33.6, 34.0, 37.3, 34.0, 31.5, 31.9, 32.4, 31.1, 29.7, 31.6, 33.0, 30.5, 29.2, 29.6, 31.

Back-to-back or comparative stem and leaf plot:


1 | 2: represents 12, leaf unit: 1 BusSchools LawSchools


| 1 | 2| 1 | | 1 | 76| 1 | 9| 1 |

_____________________

n: 25 17


Interpretation: Centres of the distributions seem to be similar, but much more spread in the acceptance rates for Business Schools than for Law Schools.

2.2.2 Histograms

The most common graph for describing numerical continuous data is the histogram. It visualizes the distribution of the underlying variable very well. How a histogram looks like:

Definition:

It shows: center, range, concentration, nature of distribution (unimodal, bimodal, multimodal), unusual values, skewed to the right/left.

Histogram shapes

  1. number of peaks: unimodal, bimodal (often occurs if you have observation from two groups (men, women), multimodal
  2. symmetry: if you can draw a vertical line so that the part to the left is a mirror image of the part to the right, then it is symmetric.
  3. nonsymmetric graphs are skewed. If the upper tail of the histogram stretches out farther than the lower tail, then is the histogram positively skewed, or skewed to the right. Is the lower tail longer than the upper tail the histogram is negatively skewed.

Check a distribution for shape, center, and spread and look for deviations from the overall pattern.