Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
There are two main branches of statistics: descriptive and inferential. Descrip- tive statistics is used to say something about a set of information that has been collected only. Inferential statistics is used to make predictions or comparisons about a larger group (a population) using information gathered about a small part of that population. Thus, inferential statistics involves generalizing beyond the data, something that descriptive statistics does not do.
Other distinctions are sometimes made between data types.
In everyday life, the word “average” is used in a variety of ways - batting averages, average life expectancies, etc. - but the meaning is similar, usually
the center of a distribution. In the mathematical world, where everything must be precise, we define several ways of finding the center of a set of data:
Definition 1: median. The median is the middle number of a set of numbers arranged in numerical order. If the number of values in a set is even, then the median is the sum of the two middle values, divided by 2.
The median is not affected by the magnitude of the extreme (smallest or largest) values. Thus, it is useful because it is not affected by one or two abnormally small or large values, and because it is very simple to calculate. (For example, to obtain a relatively accurate average life of a particular type of lightbulb, you could measure the median life by installing several bulbs and measuring how much time passed before half of them died. Alternatives would probably involve measuring the life of each bulb.)
Definition 2: mode. The mode is the most frequent value in a set. A set can have more than one mode; if it has two, it is said to be bimodal.
Example 1: The mode of {1, 1, 2, 3, 5, 8} is 1. The modes of {1, 3, 5, 7, 9, 9, 21, 25, 25, 31} are 9 and 25. Thus, the set is bimodal.
——————————–
The mode is useful when the members of a set are very different - take, for example, the statement “there were more Ds on that test than any other letter grade” (that is, in the set {A, B, C, D, E}, D is the mode). On the other hand, the fact that the mode is absolute (for example, 2.9999 and 3 are considered just as different as 3 and 100 are) can make the mode a poor choice for determing a “center”. For example, the mode of the set {1, 2.3, 2.3, 5.14, 5.15, 5.16, 5.17, 5.18, 10.2} is 2.3, even though there are many values that are close to, but not exactly equal to, 5.16.
Definition 3: mean. The mean is the sum of all the values in a set, divided by the number of values. The mean of a whole population is usually denoted by μ, while the mean of a sample is usually denoted by x. (Note that this is the arithmetic mean; there are other means, which will be discussed later.)
square root of the average of the squared deviations from the mean. For a sample, the standard deviation is the square root of the sum of the squared deviations from the mean, divided by the number of samples minus 1. Try saying that five times fast.)
Definition 7: relative variability. The relative variability of a set is its standard deviation divided by its mean. The relative variability is useful for comparing several variances.
A linear transformation of a data set is one where each element is increased by or multiplied by a constant. This affects the mean, the standard deviation, the IQR, and other important numbers in different ways.
Addition. If a constant c is added to each member of a set, the mean will be c more than it was before the constant was added; the standard deviation and variance will not be affected; and the IQR will not be affected. We will prove these facts below, letting μ and σ be the mean and standard deviation, respectively, before adding c, and μt and σt be the mean and standard devia- tion, respectively, after the transformation. Finally, we let the original set be {a 1 , a 2 ,... , an}, so that the transformed set is {a 1 + c, a 2 + c,... , an + c}.
μt = (a 1 + c) + (a 2 + c) + · · · + (an + c) n
a 1 + a 2 + · · · + an + n · c n =
a 1 + a 2 + · · · + an n
cn n
= μ + c
σt =
∑^ n i=
((ai + c) − (μ + c))^2
n
∑^ n i=
(ai − μ)^2
n
= σ IQRt = Q (^3) t − Q (^1) t = (Q3 + c) − (Q1 + c) = Q 3 − Q1 = IQR
where we use the result of the first equation to replace μt with μ+c in the second equation. Since the variance is just the square of the standard deviation, the fact that the standard deviation is not affected means that the variance won’t be, either.
Multiplication.
Another type of transformation is multiplication. If each member of a set is multiplied by a constant c, then the mean will be c times its value before the constant was multiplied; the standard deviation will be |c| times its value before
the constant was multiplied; and the IQR will be |c| times its value. Using the same notation as before, we have
μt =
(a 1 c) + (a 2 c) + · · · + (anc) n
(a 1 + a 2 + · · · + an) · c n =
a 1 + a 2 + · · · + an n
· c = μ · c
σt =
∑^ n i=
((aic) − (μc))^2
n
∑^ n i=
c^2 (ai − μ)^2
n
√ c^2
∑n i=
(ai − μ)^2
n
c^2
∑^ n i=
(ai − μ)^2
n
c^2 · σ = |c|σ IQRt = |Q (^3) t − Q (^1) t| = |Q 3 · c − Q 1 · c| = |c|(Q 3 − Q1) = |c|IQR
There are several ways of measuring the relative position of a specific member of a set. Three are defined below:
Definition 8: simple ranking. As the name suggests, the simplest form of ranking, where objects are arranged in some order and the rank of an object is its position in the order.
Definition 9: percentile ranking. The percentile ranking of a specific value is the percent of scores/values that are below it.
Definition 10: z-score. The z-score of a specific value is the number of standard deviations it is from the mean. Thus, the z-score of a value x is given by the equation z = x − μ σ
where μ is the mean and σ is the standard deviation, as usual.
Example 2: In the set of grade point averages {1.1, 2.34, 2.9, 3.14, 3.29, 3.57, 4.0}, the value 3.57 has the simple ranking of 2 out of 7 and the percentile ranking of 5 7 ≈^71 .43%. The mean is^
15 pages per hour corresponds to a z-score of 15 − 3.^202.^6 = − 1 .75, and 26.2 pages per hour corresponds to a z-score of 26.^23 −. 220.^6 = 1.75. Chebyshev’s Theorem says that 1 − (^1). 7512 = .673 of the values will be within 1.75 standard deviations, so 67.3% of the time, Matt’s reading speed will be between 15 and 26.2 pages per hour.
——————————–
Definition 11: histogram. A histogram is a graphical representation of data, where relative frequencies are represented by relative areas. A histogram’s height at a specific point represents the relative frequency of a certain item.
A histogram is similar to a bar graph, except the sides of the bars are widened until there is no space between bars:
A histogram isn’t limited to displaying frequencies. The y-axis (vertical axis) may labeled with relative frequencies. To determine relative frequency, we use the simple formula
relative frequency =
frequency of item total
In the example we used above, the total is 3 + 1 + 4 + 1 + 5 + 4 + 2 + 3 = 23, so the relative frequencies are as follows:
There are 21 rectangles in all. So if an item has an area of x rectangles, it will have relative frequency 21 x.
item area relative frequency A 2 2 / 21 ≈. 1 B 5 5 / 21 ≈. 24 C 2 2 / 21 ≈. 1 D 3 3 / 21 ≈. 14 E 1 1 / 21 ≈. 05 F 1 1 / 21 ≈. 05 G 4 4 / 21 ≈. 19 H 3 3 / 21 ≈. 14
——————————–
Histograms can be used to show the median, mode, and mean of a distribution. Since the mode is the most frequent value, it is the point on the histogram where the graph is highest. Since the median is in the middle of a distribution (so it divides the distribution in half), it may be represented by the line that divides the area of the histogram in half. Finally, the mean is a line that passes through the center of gravity of the histogram.
If the mean is less than the median, then the distribution is said to be skewed to the left. It will be spread widely to the left. Here is an example of a distribution that is skewed to the left:
Conversely, if the mean is greater than the median, then the distribution is skewed to the right, and it will be spread widely to the right. Here is an example of a distribution that is skewed to the right:
Earlier, we exchanged frequency for relative frequency on the vertical axis of a histogram. In the same spirit, we can label the horizontal axis in terms of z-scores rather than with the names of the items in the set.
One common way that data is given is through percentile rankings. With this information, we can construct a histogram:
Example 6: Construct a histogram using the following data:
z-score percentile ranking -3 5 -2 15 -1 30 0 50 1 80 2 95 3 100
From −∞to − 3, the relative frequency is 0.05. From −3 to −2, the relative frequency increases from 0.05 to 0.15, so the relative frequency at between − 3 and −2 is 0.1. From −2 to −1, the relative frequency increases from 0.15 to 0.3, so the relative frequency between the two is 0.15. Using similar reasoning, we obtain the following:
The stems and leaves need not be single digits, although all leaves should be the same size in order to make the display accurate.
The five-number summary is a group of five numbers that help describe the shape and variation of a distribution. These five numbers are Q2, the median of the set; Q1, the median of the lower half of the set; Q3, the median of the upper half of the set, and the maximum and minimum numbers that are not outliers. (See section 1.3 for the definition of an outlier.)
The box and whisker display is a graphical representation of the five-number summary. Horizontal lines are drawn at Q1, Q2, and Q3; a box is then drawn around these lines, forming a double box with a shared side. Two perpendicular lines (”whiskers”) are drawn from the top and bottom of the box to the max- imum and minimum non-outliers. Any outliers are then plotted as individual points.
The diagram below shows the basic box and whisker format.
Note that because a median splits a set in half, the top whisker represents the top quarter, the top box represents the second quarter, the bottom box represents the third quarter, and the bottom whisker represents the bottom quarter.
Definition 12: probability. The probability of a specific event is a mathematical statement about the likelihood that it will occur. All probabilities are numbers be- tween 0 and 1, inclusive; a probability of 0 means that the event will never occur, and a probability of 1 means that the event will always occur.
The sum of the probabilities of all possible outcomes of any event is 1. (This is because something will happen, so the probability of some outcome occurring is 1.)
Definition 13: complimentary event. With respect to an event E, the complimentary event, denoted E′, is the event that E does not occur. For example, consider the event that it will rain tomorrow. The compliment of this event is the event that it will not rain tomorrow. Since an event must either occur or not occur, from above, it must be the case that P (E) + P (E′) = 1 (3.1)
Definition 14: mutually exclusive. Two or more events are mutually exclusive if they cannot occur simultaneously. Two events A and B are mutually exclusive if A ∪ B = 0 - that is, if they have no members in common.
Definition 16: factorial. The factorial of an integer n is defined as the product of all the positive integers from 1 to n, that is
n! (read “n factorial”) = n · (n − 1) · (n − 2) · · · 3 · 2 · 1 (3.4)
0! is defined to be 1.
Definition 17: combination. A combination is a set of unordered (i.e. order does not matter) items. If we are to choose k distinct objects from a total of n objects, then there are
(n k
different combinations, where ( n k
n! k!(n − k)!
Formula 1: Binomial Formula Suppose that an event occurs with probability p. Then the prob- ability that it will occur exactly x times out of a total of n trials is (^) ( n x
· px(1 − p)n−x^ = n! x!(n − x)!
· px(1 − p)n−x^ (3.6)
Example 10: Derive a formula for calculating P(x) (the probability of x successes out of n trials, where the probability of each success is p) in terms of x, n, p, and P (x−1).
The probability of x − 1 successes is, using the binomial formula,
P (x − 1) =
n x − 1
· px−^1 (1 − p)n−(x−1)
n! (x − 1)!(n − x + 1)!
px−^1 (1 − p)n−x+
The probability of x successes is, again using the binomial formula,
P (x) =
n x
· px(1 − p)n−x
n! x!(n − x)!
· px(1 − p)n−x
We want to find an expression K such that P (x − 1) · K = P (x). Thus,
n! · px−^1 (1 − p)n−x+ (x − 1)!(n − x + 1)!
n! · px(1 − p)n−x x!(n − x)!
n! · px−^1 (1 − p)n−x(1 − p) (x − 1)!(n − x)!(n − x + 1)
n! · p · px−^1 (1 − p)n−x x(x − 1)!(n − x)! 1 − p (n − x + 1)
p x
K =
n − x + 1 x
p 1 − p
Hence, the desired formula is
P (x) =
n − x + 1 x
p 1 − p
· P (x − 1) (3.7)
Definition 18: random variable. A variable that may take on different values depending on the out- come of some event.
Example 11: On the AP Statistics exam, 15 of the class received an 5, 13 received a 4, (^16) received a 3, 201 received a 2, and 13 received an 1. If x represents the score of a randomly chosen student in the class, then x is a random variable that takes the values 1, 2, 3, 4, and 5.
——————————–
A random variable may be discrete (it takes on a finite number of values) or continuous (it can take on any value in a certain interval, that is, an infinite number of values).
Definition 19: probability distribution. A list or formula that gives the probability for each discrete value of a random variable.