Chapter 1 Data and Statistics
Chapter 1 Data and Statistics
Motivation: the following kinds of statements in newspaper and magazine appear very frequently,
• Sales of new homes are accruing at a rate of 70300 homes per year.
• The unemployment rate has dropped to 4.0%.
• The Dow Jones Industrial Average closed at 10000
• Census
The above numerical descriptions are very familiar to most of us since we use it in everyday life. As a matter of fact, these are part of statistics. Therefore, statistics is in our everyday life. We now give a description about statistics.
Definition of statistics:
Statistics is the art and science of collecting, analyzing, presenting, interpreting and predicting data.
Objective of this course: using statistics is to give the managers and decision makers a better understanding of the business and economic environment and thus enable them to make more informed and better decision.
1.1 Data
(I) Basis components of a data set:
Usually, a data set consists the following components:
Element: the entities on which data are collected.
Variable: a characteristic of interest for the element.
Observation: the set of measurements collected for a particular element.
Example 1:
We have a data set for the following 5 stocks:
|Stock |Annual Sales (in million) |Earnings per share ($) |Exchange (where to trade) |
|Cache Inc. |86.6 |0.25 |OTC |
|Koss Corp |36.1 |0.89 |OTC |
|Par Technology |81.2 |0.32 |NYSE |
|Scientific Tech. |17.3 |0.46 |OTC |
|Western Beef |273.7 |0.78 |OTC |
Note: OTC stands for “over the counter” while NYSE stands for “New York Stock Exchange”.
In the above data set,
|Elements |Cache Inc., Koss Corp, Par Technology, Scientific Tech, |
| |Western Beef |
|Variables |Annual Sales, Earnings per share, Exchange |
|Observations |(86.6,0.25,OTC),(36.1,0.89,OTC),(81.2,0.32,NYSE), |
| |(17.3,0.46,OTC),(273.7,0.78,OTC) |
(II) Qualitative and Quantitative Data:
Qualitative data: labels or names used to identify an attribute of each element.
Quantitative data: indicating how much or how many
Example 1 (continue):
Qualitative data: OTC, OTC, NYSE, OTC and OTC
Quantitative data: 86.6, 36.1, 81.2, 17.3, 273.7, 0.25, 0.89, 0.32, 0.46 and 0.78
The variable “Exchange” is referred to as a qualitative variable.
The variables “Annual Sales” and “Earnings per share” are referred to as quantitative variables.
Note: quantitative data are always numeric, but qualitative data may be either numeric or nonnumeric, for example, id numbers and automobile license plate numbers are qualitative data.
Note: ordinary arithmetic operations are meaningful only with quantitative data and are not meaningful with qualitative data.
(III) Cross-Sectional and Time Series Data:
Cross-sectional data: data collected at the same or approximately the same point in time.
Time series data: data collected over several time periods.
Online Exercise:
Exercise 1.1.1
Exercise 1.1.2
1.2 Data Source:
There are two sources for data collection, one is existing sources and the other is statistical studies.
(I) Existing Sources:
There are two existing sources:
Company: some of the data commonly available from the internal information sources of most company including employee records, production records, inventory records, sale records, credit records and customer profile, etc…
Government Agency: Department of Labor, Bureau of the Census, Federal Reserve Board, Office of Management and Budget, Department of Commerce.
(II) Statistical Studies:
A statistical study can be conducted to obtain the data not readily available from existing sources. Such statistical studies can be classified as either experimental or observational.
Experimental Study: attempt is made to control or influence the variables of interest, for example, drug test and industrial product test.
Observational Study: no attempt is made to control or influence the variable of interest, for example, survey.
Online Exercise:
Exercise 1.2.1
1.3 Descriptive Statistics:
There are two classes of descriptive statistics, one class includes table and graph and the other class includes numerical measures and index numbers.
(I) Tabular and Graphical Approaches:
Example 1(continue):
Tabular approach for stock data:
|Exchange |Frequency |Percent |
|OTC |4 |80% |
|NYSE |1 |20% |
5. 100%
Graphical approach for stock data:
[pic]
(II) Numerical Measures and Index Numbers:
Some numerical quantities can be used to provide important information about the data, for example, the average or mean. Index numbers are widely used in business, for example, the Consumer Price Index (CPI) and te Dow Jones Industrial Average (DJIA).
Online Exercise:
Exercise 1.3.1
Exercise 1.3.2
1.4 Statistical Inference:
Descriptive statistics introduced in section 1.4 can provide important and intuitive information about the data of interest. However, these statistical measures are mainly exploratory. For more detailed, rigorous and accurate results, the statistical inference procedure is required. To conduct a statistical inference, data need to be drawn from a
set of elements of interest. We now introduce some basic components in the statistical inference procedure. They are:
Population: the set of all elements of interest in a particular study.
Sample: a subset of the population.
Data from a sample can be used to make estimates and test hypotheses about the characteristics of a population
Example 2:
Suppose there are 100000 bulbs produced in a bulbs factory.
Objective: want to know the average lifetime of the 100000 bulbs.
The 100000 bulbs are the population of interest. In practice, it is not possible (also not
realistic) to test 100000 bulbs for the lifetime. One workable way is to draw a sample, say 100 bulbs, and then test for their lifetime. Suppose the average lifetime of the 100 bulbs is 750 hours. Then, the estimate (guess) of the average lifetime of the 100000 bulbs is 750 hours.
Note: the process of making estimates and testing hypotheses about the characteristics of a population is referred to as statistical inference.
Online Exercise:
Exercise 1.4.1
Chapter 2 Descriptive Statistics: Table and Graph
The logical flow of this chapter:
• Summarizing qualitative data using tables and graphs (2.1)
• Summarizing quantitative data using tables and graphs (2.2)
• Exploratory data analysis using simple arithmetic and easy-to-draw graphs such that the data can be summarized quickly.
2.1 Summarizing Qualitative Data:
For qualitative data, we can use frequency distribution and relative frequency. We now introduce frequency distribution, relative frequency and percent frequency.
Frequency distribution: tabular summary of data indicating the number of data values in each of several nonoverlapping classes.
Relative frequency: (frequency of a class)/n, where n is the total number of the data.
Percent frequency: (relative frequency)× 100%.
Based on the frequency distribution, relative frequency, and percent frequency of the data, we can use table and graphs to display these frequencies.
Example:
Forbes investigates the degrees of 25 best paid CEO (chief executive officer).
Tabular summary:
|Degrees |Frequency |Relative Frequency |Percent Frequency |
|None |2 |0.08 |8 |
|Bachelor |11 |0.44 |44 |
|Master |7 |0.28 |28 |
|Doctorate |5 |0.20 |20 |
|Total |25 |1.00 |100 |
Graphical display:
Bar Graph:
[pic]
Pie Graph:
[pic]
Note: most statisticians recommend that from 5 to 20 classes be used in a frequency distribution; classes with smaller frequencies should normally be grouped!!
Online Exercise:
Exercise 2.1.1
Exercise 2.1.2
2.2 Summarizing Quantitative Data:
Determine the classes:
For quantitative data, we need to define the classes first. There are 3 steps to define the classes for a frequency distribution:
Step 1: Determine the number of nonoverlapping classes, usually 5 to 20 classes.
Step 2: Determine the width of each class,
[pic]
Note: the number of classes and the approximate class are determined by trial and error!!
Step 3: Determine the class limits: the smallest possible data value should be larger than the lower class limit while the largest possible data value should be smaller than the upper class limit.
Example:
Suppose we have the following data (in days):
|12 |14 |19 |18 |15 |
Note: the lower class limit in the first class (10) is smaller than the smallest data value 12. Also, the upper class limit in the last class (34) is smaller than the largest data value 33.
Summarizing quantitative data:
Tabular summary:
In addition to frequency, relative frequency and percent frequency, another tabular summary of quantitative data is the cumulative frequency distribution.
Cumulative frequency distribution: the number of data items with values less than or equal to the upper class limit of each class.
Graphical display:
In addition to histogram, another graphical display of quantitative data is ogive.
Ogive: the number of data items with values less than or equal to the upper class limit of each class.
Example (continue):
|Classes |Frequency |Relative Frequency |Percent Frequency |
|10-14 |4 |0.2 |20 |
|15-19 |8 |0.4 |40 |
|20-24 |5 |0.25 |25 |
|25-29 |2 |0.1 |10 |
|30-34 |1 |0.05 |5 |
Total 20 1 100
|Classes |Cumulative Frequency |Cumulative Relative Frequency |Cumulative Percent Frequency |
|[pic] |4 |0.2 |20 |
|[pic] |4+8=12 |0.2+0.4=0.6 |20+40=60 |
|[pic] |4+8+5=17 |0.2+0.4+0.25=0.85 |20+40+25=85 |
|[pic] |4+8+5+2=19 |0.2+0.4+0.25+0.1=0.95 |20+40+25+10=95 |
|[pic] |4+8+5+2+1=20 |0.2+0.4+0.25+0.1+0.05=1 |20+40+25+10+5=100 |
The histogram is
[pic]
The ogive plot is
[pic]
Online Exercise:
Exercise 2.2.1
Exercise 2.1.2
2.3 Exploratory Data Analysis:
Stem-and-leaf display is a useful exploratory data analysis tool which can provide an idea of the shape of the distribution of a set of quantitative data.
Example:
Suppose the following data are the midterm scores of 10 students,
17, 22, 93, 82, 95, 87, 66, 68, 71, 52.
Then, the stem-and-leaf display is
1 7
2 2
3
4
5 2
6 6 8
7 1
8 2 7
9 3 5
Online Exercise:
Exercise 2.3.1
Chapter 3 Descriptive Statistics: Numerical Methods
Suppose [pic] are all the elements in the population and [pic] are the sample drawn from [pic], where N is referred to as the population size and n is the sample size. In this chapter, we introduce several numerical measures to obtain important information about the population. These numerical measures computed from a sample are called sample statistics while those numerical measures computed from a population are called population parameters.
In practice, it is not realistic or not possible to obtain population parameter from a population, for example, the average lifetime of 100000 bulbs. Therefore, the sample statistic can be used to estimate the population parameter, for example, the average lifetime of 100 bulbs can be used to estimate the average lifetime of 100000 bulbs..
3.1 Measure of Location:
Example:
Suppose the following data are the scores of 10 students in a quiz,
1, 3, 5, 7, 9, 2, 4, 6, 8, 10.
Some measures need to be used to provide information about the performance of the 10 students in this quiz.
(I) Mean:
Sample mean: [pic] (sample statistic)
Population mean: [pic] (population parameter)
Basically, the mean can provide the information about the “center” of the data. Intuitively, it can measure the rough “location” of the data.
Example (continue):
[pic]
(II) Median:
The data are arranged in ascending (or descending) order. Then,
1. As the sample size is odd, the median is the middle value.
2. As the sample size is even, the median is the mean of the middle two numbers.
Example (continue):
[pic]
If the data are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11. Then,
[pic]
Note: the median is less sensitive to the data with extreme values than the mean. For example, in the previous data, suppose the last data has been wrongly typed, the data become 1, 3, 5, 7, 9, 2, 4, 6, 8, 100. Then the median is still 5.5 while the mean becomes 14.5.
(III) Mode:
The data value occurs with greatest frequency (not necessarily to be numerical).
Note: if the data have exactly two modes, we say that the data are bimodal. If the data have more than two modes, we say that the data are multimodal.
(IV) Percentile:
The pth percentile is a value such as at least p percent of the data have this value or less.
Note: 50th percentile = median!!
The procedure to calculate the pth percentile:
1. Arrange the data in ascending order.
2. Compute an index i, [pic]
3. (a) If i is not an integer, round up, i.e., the next integer value greater than i denote the position of the pth percentile.
(b) If i is an integer, the pth percentile is the average of the data values in positions i and i+1.
Example (continue):
Please find 40th percentile and 26th percentile for the previous data.
[Solution]
Step 1: the data in ascending order are
1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
Step 2:
For 40 th percentile,
[pic].
For 26 th percentile,
[pic]
Step 3:
40th percentile[pic]
and
26th percentile[pic]
(V) Quartiles:
When dividing data into 4 parts, the division points are referred to as the quartile!!
That is,
[pic]the first quartile or 25th percentile
[pic]the second quartile or 50th percentile
[pic]the third quartile or 75th percentile
Example (continuous):
Find the first quartile and the third quartile for the previous example.
Step 2:
For the first quartile,
[pic].
For the third quartile,
[pic]
Step 3:
[pic]
and
[pic]
Online Exercise:
Exercise 3.1.1
Exercise 3.1.2
3.2 Measure of Dispersion:
Example:
Suppose there are two factories producing the batteries. From each factory, 10 batteries are drawn to test for the lifetime (in hours). These lifetimes are:
Factory 1: 10.1, 9.9, 10.1, 9.9, 9.9, 10.1, 9.9, 10.1, 9.9, 10.1
Factory 2: 16, 5, 7, 14, 6, 15, 3, 13, 9, 12.
The mean lifetimes of the two factories are both 10. However, by looking at the data, it is obvious that the batteries produced by factory 1 are much more reliable than the ones by factory 2. This implies other measures for measuring the “dispersion” or “variation” of the data are required.
(I) Range:
range=(largest value of the data)-(smallest value of the data).
Example (continue):
Range of lifetime data for factory 1=10.1-9.9=0.2
Range of lifetime data for factory 2=16-3=13
[pic] The range of battery lifetimes for factory 1 is much smaller than the one for factor 2.
Note: the range is seldom used as the only measure of dispersion. The range is highly influenced by an extremely large or an extremely small data value.
(II) Interquartile Range:
Interquartile is the difference between the third and the first quartiles. That is,
[pic].
Example:
The first quartile and the third quartile for the data from factory 1 are 9.9 and 10.1, respectively, and 6 and 14 for the data from factory 2. Therefore,
IQR (factory 1)=10.1-9.9=0.2
IQR (factory 2)=14-6=8.
[pic] The interquartile of battery lifetimes for factory 1 is much smaller than the one for factor 2.
(III) Variance and Standard Deviation:
population deviation about the mean: [pic]
sample deviation about the mean: [pic]
Intuitively, the population deviation and the sample deviation can measure how far the data is from the “center” of the data. Then, population variance and sample variance are the sum of square of the population deviation and sample deviation,
[pic]
and
[pic],
respectively. The population standard deviation and sample standard deviation are the square root of population variance and sample variance:
[pic]
and
[pic],
respectively.
Large sample variance or sample standard deviation implies the data are “dispersed” or are highly varied.
Note: [pic]
Example:
[pic]
[pic]
[pic] The sample variance of battery lifetimes for factory 2 is 190 times larger than the one for factor 1.
The sample standard deviation for the data from factories 1 and 2 are [pic] and [pic],
respectively.
(IV) Coefficient of Variation:
The coefficient of variation is another useful statistic for measuring the dispersion of
the data. The coefficient of variation is
[pic]
The coefficient of variation is invariant with respect to the scale of the data. On the other hand, the standard deviation is not scale-invariant. The following example demonstrates the property.
Example:
In the battery data from factory 1, suppose the measurement is in minutes rather than hours. Then, the data are 606, 594, 606, 594, 594, 606, 594, 606, 594, 606.
Thus, the standard deviation becomes 6.3245 which is 60 times larger than the one 0.1054 based on the original data measured in hours. However, no matter the data are measured in hours and minutes, the coefficient of variation is
[pic]
Note: since the coefficient of variation is scale-invariant, it is very useful for comparing the dispersion of different data. For example, in the previous battery data, if the lifetime of the batteries from factory 1 and factory 2 are measured in minutes and hours, respectively, the standard deviation for factory 1, 6.3245, would be larger than for factory 2, 4.5946. However, the coefficient of variation for factory 1, 1.054 is still much smaller than the one for factory 2, 45.946.
Online Exercise:
Exercise 3.2.1
Exercise 3.2.2
3.3 Exploratory Data Analysis:
(I) Five-Number Summary:
The five number summary can provide important information about both the location and the dispersion of the data. They are
• Smallest value
• First quartile
• Median
• Third quartile
• Largest value
Example (continue):
The original data (in hours) are:
Factory 1: 10.1, 9.9, 10.1, 9.9, 9.9, 10.1, 9.9, 10.1, 9.9, 10.1
Factory 2: 16, 5, 7, 14, 6, 15, 3, 13, 9, 12.
The five-number summary for the data from both factories is
| |Smallest |[pic] |Median |[pic] |Largest |
|Factory 1 |9.9 |9.9 |10 |10.1 |10.1 |
|Factory 2 |3 |6 |10.5 |14 |16 |
(II) Box Plot:
The box-plot is commonly used graphical method to provide information about both the location and dispersion of the data. Especially, as the interest is the comparison of the data from different populations, the box-plot can provide insight. The box-plot is
1.5IQR 1.5IQR
lower IQR upper
limit [pic] [pic] limit
Note: data outside upper limit and lower limit are called outliers.
Example (continue):
The box-plot for the data from the two factories is
[pic]
Online Exercise:
Exercise 3.3.1
3.4 Measures of Relative Location:
z-score is the quantity which can be used to measure the relative location of the data. Z-score, referred to as the standardized value for observation i, is defined as
[pic].
Note: [pic] is the number of standard deviation [pic] from the mean [pic].
Example (continue):
Factory 1:
|[pic] |10.1 |9.9 |
|1 |3.00 |1200 |
|2 |3.40 |500 |
|3 |2.80 |2750 |
|4 |2.90 |1000 |
|5 |3.25 |800 |
Find the mean cost per pound.
[solutions:]
[pic]
and
[pic]
Then,
[pic]
Population Mean for Grouped Data:
[pic],
where
[pic] the midpoint for class k,
[pic] the frequency for class k in the population,
[pic] the population size.
Sample Mean for Grouped Data:
[pic],
where
[pic] the frequency for class k in the sample,
[pic] the sample size.
Population Variance for Grouped Data:
[pic]
Sample Variance for Grouped Data:
[pic]
Example 2:
The following are the frequency distribution of the time in days required to complete year-end audits:
|Audit Time (days) |Frequency |
|10-14 |4 |
|15-19 |8 |
|20-24 |5 |
|25-29 |2 |
|30-34 |1 |
What is the mean and the variance of the audit time?
[solutions:]
[pic]
[pic]
and
[pic]
Thus,
and
Online Exercise:
Exercise 3.5.1
Chapter 4 Association Between Two Variables
In this chapter, we introduce several methods to measure the association. They are:
• Crosstabulations and scatter diagrams
• Numerical measures of association
4.1 Crosstabulations and Scatter Diagrams:
The crosstabulation (table) and the scatter diagram (graph) can help us understand the relationship between two variables.
1. Crosstabulations
Example:
Objective: explore the association of the quality and the price for the restaurants in the Los Angeles area.
The following table is the crosstabulation of the quality rating (good, very good and excellent) and the mean price ($10-19, $20-29, $30-39, and $40-49) data collected for a sample 300 restaurants located in the Los Angeles area.
|Meal Price |
|Quality Rating |$10-19 |$20-29 |$30-39 |$40-49 |Total |
|[pic] |2 |4 |6 |8 |10 |
Then,
[pic],[pic].
Thus,
[pic].
Note: when there is a perfect positive linear relationship between variable x and z, then [pic]. [pic] might indicate a positive linear relationship.
Online Exercise:
Exercise 4.2.1
Chapter 5 Introduction to Probability
5.1. Experiments, Counting Rules, and Probabilities
Experiment: any process that generates well-defined outcomes.
Example:
|Experiment |Outcomes |
|Toss a coin |Head, Tail |
|Roll a dice |1, 2, 3, 4, 5, 6 |
|Play a football game |Win, Lose, Tie |
|Rain tomorrow |Rain, No rain |
Sample Space: the set of all experimental outcomes, denoted by S
Example:
|Experiment |Sample Space |
|Toss a coin |S={Head, Tail} |
|Roll a dice |S={1, 2, 3, 4, 5, 6} |
|Play a football game |S={Win, Lose, Tie} |
|Rain tomorrow |S={Rain, No rain} |
Counting Rules: the rules for counting the number of the experimental outcomes.
We have the following counting rules:
• Multiple Step Experiment:
• Permutations
• Combinations
1. Multiple Step Experiment:
Example:
Step 1 Step 2 Experimental Outcomes
(throw dice) (throw coin)
1 (1,T),(1,H)
2 (2,T),(2,H)
3 (3,T),(3,H)
4 (4,T),(4,H)
5 (5,T),(5,H)
6 (6,T),(6,H)
[pic]
[pic] The total number of experimental outcomes=[pic]
Counting rule for multiple step experiments:
If there are k-steps in an experiment which there are [pic] possible outcomes on the first step, [pic] possible outcomes on the second step, and so on, then the total number of experimental outcomes is given by [pic]
2. Permutations:
n objects are to be selected from a set of N objects, where the order is important.
Example:
Suppose we take 3 balls from 5 balls, 1, 2, 3, 4 and 5. Then,
[pic] two permutations (different orders)
Example:
n=3
□ □ □
5•4•3
N•(N-1)•……•(N-n+1)
n
↓
N=5 5 4 3
Example:
n
□ □ …………… □
N • (N-1) • (N-2) •……•[N-(n-1)]=[pic]
n
Counting rule for permutation:
As n objects are taken from N objects, then the total number of permutations is given by
[pic]
where [pic]
3. Combinations:
n objects are to be selected from a set of N objects, where the order is not important.
Example:
□ □ □
1 combination, but 6 permutations.
Example:
□ □
[pic]•4= 20
[pic]
[pic] 10 combinations
20 permutations
Example:
□ □ □
[pic][pic]= 5•4•3=60
[pic]
5 • 4 • 3
[pic] 1 combinations, total 10 combinations.
Example:
n
□ □ …………… □
[pic] permutations
[pic]
n
□ □ …………… □
[pic]
[pic] 1 combination
n • n-1 • • 1
Counting rule for combination:
As n objects are taken from N objects, then the total number of combinations is given by
[pic]
Online Exercise:
Exercise 5.1.1
Exercise 5.1.2
5.2. Events and Their Probability
Modern probability theory: a probability value that expresses our degree of belief that the experimental outcome will occur is specified.
Basic requirement for assigning probabilities:
1. Let [pic] denote the i’th experimental outcome and [pic] be its probability
[pic] [pic].
2. If there are n experimental outcomes, [pic]
[pic] [pic]
Example:
Roll a fair dice. Let [pic] be the outcome the point is i. Then,
[pic] [pic]
Event: an event is a collection (set) of sample points (experimental outcomes).
Example:
[pic] the event that the points are even.
[pic] the event that the points are odd.
[pic] [pic] and [pic]
Probability of an event: the probability of any event is equal to the sum of the sample points in the event.
Example:
[pic].
Note: [pic]
Online Exercise:
Exercise 5.2.1
5.3. Some Basic Relationships of Probability
[pic]: the complement of A, the event containing all sample points that are not in A.
[pic] the union of A and B, the event containing all sample points belonging to A or B or Both.
[pic] the intersection of A and B, the event containing all sample points belonging to both A and B.
Example:
[pic], [pic] and [pic]. Then,
[pic] [pic].
[pic] [pic]
[pic] [pic]
Note: two events having no sample points in common is called mutually exclusive events. That is, if A and B are mutually exclusive events, then [pic]
Example:
[pic], [pic] [pic] [pic] and [pic] are mutually exclusive events.
Results:
1. [pic]
2. If A and B are mutually exclusive events, then
[pic] and [pic].
3. (addition law) For any two events A and B,
[pic]
[Intuition of addition law]:
[pic]
[pic]
[pic] [pic][pic][pic]
[pic]
Example:
1. [pic]
2. [pic]
3. [pic] We can also use the addition law, then
[pic]
[pic]
Online Exercise:
Exercise 5.3.1
Exercise 5.3.2
5.4. Conditional Probability
A|B: event A given the condition that event B has occurred.
Example:
{2}|[pic]: point 2 occurs given that the point is known to be even.
[pic] the conditional probability of A given B (as the event B has occurred, the chance of the event A then occurs!!)
Formula of the conditional probability:
[pic]
and
[pic].
Example:
[pic]
Note: [pic]
Note: [pic]
Independent Events:
[pic]
or [pic] A and B are independent events.
[pic].
Dependent Events:
[pic]
or [pic] A and B are dependent events.
[pic].
Intuitively, if events A and B are independent, then the chance of event A occurring is the same no matter whether event B has occurred. That is, event A occurring is “independent” of event B occurring. On the other hand, if events A and B are dependent, then the chance of event A occurring given that event B has occurred will be different from the one with event B not occurring.
Example:
A: the event of a police officer getting promotion.
M: the event of a police officer being man.
W: the event of a police officer being woman.
[pic] [pic]
The above result implies the chance of a promotion knowing the candidate being male is twice higher than the one knowing the one being female. In addition, the chance of a promotion knowing the candidate being female (0.15) is much lower than the overall promotion rate (0.27). That is, the promotion event A is “dependent” on the gender event M or W.
[pic] A promotion is related to the gender.
Note: [pic] as events A and B are independent.
Online Exercise:
Exercise 5.4.1
Exercise 5.4.2
5.5. Bayes’ Theorem
Example 1:
B: test (positive) A: no AIDS
[pic]: test (negative) [pic]: AIDS
From past experience and records, we know
[pic]
That is, we know the probability of a patient having no AIDS, the conditional probability of test positive given having no AIDS (wrong diagnosis), and the conditional probability of test positive given having AIDS (correct diagnosis).
Our object is to find [pic], i.e., we want to know the probability of a patient having not AIDS even known that this patient is test positive.
Example 2:
[pic] the finance of the company being good.
[pic] the finance of the company being O.K.
[pic] the finance of the company being bad.
[pic] good finance assessment for the company.
[pic] O.K. finance assessment for the company.
[pic] bad finance assessment for the company.
From the past records, we know
[pic]
That is, we know the chances of the different finance situations of the company and
the conditional probabilities of the different assessments for the company given the finance of the company known, for example, [pic] indicates 90% chance of good finance year of the company has been predicted correctly by the finance assessment.
Our objective is to obtain the probability [pic], i.e., the conditional probability that the finance of the company being good in the coming year given that good finance assessment for the company in this year.
To find the required probability in the above two examples, the following Bayes’s theorem can be used.
Bayes’s Theorem (two events):
[pic]
[Derivation of Bayes’s theorem (two events)]:
[pic]
We want to know [pic]. Since
[pic],
and
[pic],
thus,
[pic]
Example 1:
[pic] Then, by Bayes’s theorem,
[pic]
[pic] A patient with test positive still has high probability (0.7519) of no AIDS.
Bayes’s Theorem (general):
Let [pic] be mutually exclusive events and
[pic],
then
[pic],
[pic].
[Derivation of Bayes’s theorem (general)]:
[pic]
Since
[pic],
and
[pic],
thus,
[pic]
Example 2:
[pic]
[pic] A company with good finance assessment has very high probability (0.95) of good finance situation in the coming year.
Online Exercise:
Exercise 5.5.1
Chapter 6 Probability Distribution
6.1. Random Variable
Example:
Suppose we gamble in a casino and the possible result is as follows.
[pic]
In this example, the sample space is [pic], containing 3 outcomes. X is the quantity representing the token obtained or lose under different result while Y is the one representing the money obtained or lost.
In the above example, X and Y can provide a numerical summary corresponding to the experimental outcome. A formal definition for these numerical quantities is in the following.
Definition (random variable): A random variable is a numerical description of the outcome of an experiment.
Example:
In the previous example,
X: the random variable representing the token obtained or lose corresponding to different outcomes.
Y: the random variable representing the money obtained or lose corresponding to different outcomes.
X has 3 possible values corresponding to 3 outcomes
[pic] [pic]
Y has 3 possible values corresponding to 3 outcomes
[pic] [pic].
Note that
[pic],
since
[pic]
That is, Y is 10 times of X under all possible experimental outcomes.
There are two types of random variables. They are:
Discrete random variable: a quantity assumes either a finite number of values or an infinite sequence of values, such as 0, 1, 2, [pic]
Continuous random variable: a quantity assumes any numerical value in an interval or collection of intervals, such as time, weight, distance, and temperature.
Example:
Let the sample space
[pic].
Let Z be the random variable representing the delay flight time, defined as
[pic]
For example, [pic] corresponds to the outcome that the flight time is 0.5 hour (30 minutes) late.
Online Exercise:
Exercise 6.1.1
6.2. Probability Distribution
Definition (probability distribution): a function describes how probabilities are distributed over the values of the random variable.
(I): Discrete Random Variable:
Example:
Suppose the probability for the outcomes in the gamble example is
[pic]
Let [pic] be some function corresponding to the probability of the gambling outcomes for random variable X, defined as
[pic]
[pic] is referred as the probability distribution of random variable X.
Similarly, the probability distribution [pic]of random variable Y is
[pic]
◆
Required conditions for a discrete probability distribution:
Let [pic] be all the possible values of the discrete random variable X. Then, the required conditions for [pic] to be the discrete probability distribution for X are
(a) [pic]
(b) [pic]
Example:
In the gambling example, [pic] is a discrete probability distribution for the random variable X since
(a) [pic].
(b) [pic].
Similarly, [pic] is also a discrete probability distribution for the random variable Y.
Note: the discrete probability distribution describes the probability of a discrete random variable at different values.
(II): Continuous Random Variable:
For a continuous random variable, it is impossible to assign a probability to every numerical value since there are uncountable number of values in an interval. Instead, the probability can be assigned to a small interval. The probability density function can describe how the probability distributes in the small interval.
Example:
In the delay flight time example, suppose the probability of being late within 0.5 hours is two times of the one of being late more than 0.5 hour, i.e.,
[pic].
Then, the probability density function [pic] for the random variable Z is
[pic]
[pic]
The area corresponding to the interval is the probability of the random variable Z taking values in this interval. For example, the probability of the flight time being late within 0.5 hour (the random variable Z taking value in the interval [0,0.5]). is
[pic].
Similarly, the probability of the flight time being late more than 0.5 hour (the random variable Z taking value in the interval (0.5,1]). is
[pic].
On the other hand, If the probability of being late within 0.5 hours is the same as the one of being late more than 0.5 hour, i.e.,
[pic],
then, the probability density function [pic] for the random variable Z is
[pic]
Note that the probability density function corresponds to the probability of the random variable taking values in some interval. However, the probability density function evaluated at some value, not like the probability distribution, can not be used to describe the probability of the random variable Z taking this value.
Required conditions for a continuous probability density:
Let the continuous random variable Z taking values in [a,b]. Then, the required conditions for [pic] to be the continuous probability distribution for Z are
(a) [pic]
(b) [pic]
Note: [pic]. That is, the area under the graph of [pic] corresponding to a given interval is the probability of the random variable Z taking value in this interval.
Example:
In the flight time example, [pic] is a discrete probability distribution for the random variable Z since
(a) [pic].
(b) [pic].
Similarly, [pic] is also a discrete probability distribution for the random variable Z.
Online Exercise:
Exercise 6.2.1
6.3. Expected Value and Variance:
(I): Discrete Random Variable:
(a) Expected Value:
Example:
X: the random variable representing the point of throwing a fair dice. Then,
[pic]
Intuitively, the average point of throwing a fair dice is
[pic].
The expected value of the random variable X is just the average,
[pic].
Formula for the expected value of a discrete random variable:
Let [pic] be all the possible values of the discrete random variable X and [pic] is the probability distribution. Then, the expected value of the discrete random variable X is
[pic]
Example:
In the gambling example, the expected value of the random variable X is
[pic].
Therefore, on the average, the gambler will lose [pic] for every bet.
Similarly, the expected value of the random variable Y is
[pic].
(b) Variance:
Example:
Suppose we want to measure the variation of the random variable X in the dice example. Then, the square distance between the values of X and its mean E(X)=3.5 can be used, i.e., [pic] can be used. The average square distance is
[pic].
Intuitively, large average square distance implies the values of X scatter widely.
The variance of the random variable X is just the average square distance (the expected value of the square distance). The variance for the dice example is
[pic]
Formula for the variance of a discrete random variable:
Let [pic] be all the possible values of the discrete random variable X and [pic] is the probability distribution. Let [pic] be the expected value of X. Then, the variance of the discrete random variable X is
[pic]
Example:
In the gambling example, the variance of the random variable X is
[pic].
Similarly, the variance of the random variable Y is
[pic]
(II): Continuous Random Variable:
(a) Expected Value:
Example:
Z: the random variable representing the delay flight time taking values in [0,1]. [pic]
Then, the probability density function for Z is
[pic]
Intuitively, since there is equal chance for any delay time in [0,1], 0.5 hour seems to be a sensible estimate of the average delay time.
The expected value of the random variable Z is just the average delay time.
[pic].
Formula for the expected value of a continuous random variable:
Let the continuous random variable X taking values in [a,b] and [pic] is the probability density function. Then, the expected value of the continuous random variable X is
[pic].
Example:
In the flight time example, suppose the probability density function for Z is
[pic]
Then, the expected value of the random variable Z is
[pic].
Therefore, on the average, the flight time is [pic] hour.
(b) Variance:
Example:
Suppose we want to measure the variation of the random variable Z in the flight time example. Suppose [pic] is the probability density function for Z. Then, the square distance between the values of Z and its mean [pic] can be used, i.e., [pic] can be used. The average square distance is
[pic].
The variance of the random variable Z is just the average square distance (the expected value of the square distance). The variance for the flight time example is
[pic].
Formula for the variance of a continuous random variable:
Let the continuous random variable X taking values in [a,b] and [pic] is the probability distribution. Let [pic] be the expected value of X. Then, the variance of the continuous random variable X is
[pic]
Example:
In the flight time example, suppose [pic] is the probability density function for Z.
Then, the variance of the random variable Z is
[pic]
Online Exercise:
Exercise 6.3.1
Exercise 6.3.2
Chapter 7 Discrete Probability Distribution
7.1. The Binomial Probability Distribution
Example:
[pic] representing the number of heads as flipping a fair coin twice.
[pic].
□ □
[pic] T T [pic] (1 combination)
□ □
[pic] H T
T H [pic] (2 combinations)
□ □
[pic] H H [pic] (1 combination)
[pic]
, [pic]
[pic] representing the number of heads as flipping a fair coin 3 times.
□ □ □
[pic] T T T [pic] (1 combination)
□ □ □
H T T
[pic] T H T [pic] (3 combinations)
T T H
□ □ □
H H T
[pic] H T H [pic] (3 combinations)
T H H
□ □ □
[pic] H H H [pic] (1 combination)
[pic]
, [pic]
[pic] representing the number of heads as flipping a fair coin n times.
Then,
n
□ □ …………… □
[pic] T T…………….T [pic]
(1 combination)
n
□ □ …………… □
H T……..……..T
[pic] n T H……… T [pic]
[pic] [pic] [pic] [pic] (n combinations)
T T …………..H
[pic]
[pic]
[pic]
Note: the number of combinations is equivalent to the number of ways as drawing i balls (heads) from n balls (n flips).
Example:
[pic] representing the number of successes over 3 trials.
[pic]
Suppose the probability of the success is [pic] while the probability of failure is [pic].
Then,
□ □ □
[pic] F F F [pic]
(1 combination)
□ □ □
S F F
[pic] F S F [pic]
(3 combinations)
F F S
□ □ □
S S F
[pic] S F S [pic]
(3 combinations)
F S S
□ □ □
[pic] S S S [pic]
(1 combination)
[pic]
, [pic]
[pic] representing the number of successes over n trials.
Then,
n
□ □ …………… □
[pic] F F…………….F [pic]
(1 combination)
n
□ □ ……… □
S F…….. .F
[pic] n F S……… F [pic]
[pic] [pic] [pic] [pic] (n combinations)
F F … .S
[pic]
[pic]
[pic]
From the above example, we readily describe the binomial experiment.
Properties of Binomial Experiment
• X: representing the number of successes over n independent identical trials.
• The probability of a success in a trial is p while the probability of a failure is (1-p).
Binomail Probability Distribution:
Let X be the random variable representing the number of successes of a Binomial experiment. Then, the probability distribution function for X is
[pic].
Properties of Binomial Probability Distribution:
A random variable X has the binomial probability distribution [pic] with parameter [pic], then
[pic]
and
[pic].
[Derivation:]
[pic]
The derivation of [pic] is left as exercise.
How to obtain the binomail probability distribution:
a) Using table of Binomail distribution.
b) Using computer
• by some software, for example, Excel or Minitab.
• by some computing resource in the internet, for example,
or
Online Exercise:
Exercise 7.1.1
Exercise 7.1.2
7.2. The Poisson Probability Distribution:
Properties of Poisson Experiment:
• X : representing the number of occurrences in a continuous interval.
[pic] expected value of occurrences in this interval.
• The probability of an occurrence is the same for any two intervals of equal length!! The expected value of occurrences in an interval is proportional to the length of this interval.
• The occurrence or nonoccurrence in any interval is independent of the occurrence or nonoccurrence in any other interval.
• The probability of two or more occurrences in a very small interval is close to 0
Poisson Probability Distribution:
Let X be the random variable representing the number of occurrences of a Poisson experiment in some interval. Then, the probability distribution function for X is
[pic],
where
[pic]
and [pic] is some parameter.
Properties of Poisson Probability Distribution:
A random variable X has the Poisson probability distribution [pic] with parameter [pic], then
[pic]
and
[pic].
The derivations of the above properties are similar to the ones for the binomial random variable and are left as exercises.
Example:
Suppose the average number of car accidents on the highway in one day is 4. What is the probability of no car accident in one day? What is the probability of 1 car accidence in two days?
[solution:]
It is sensible to use Poisson random variable representing the number of car accidents on the high way. Let X representing the number of car accidents on the high way in one day. Then,
[pic][pic]
and
[pic].
Then,
[pic]Since the average number of car accidents in one day is 4, thus the average number of car accidents in two days should be 8. Let Y represent the number of car accidents in two days. Then,
[pic]
and
[pic].
Then,
[pic]
Example:
Suppose the average number of calls by 104 in one minute is 2. What is the probability of 10 calls in 5 minutes?
[solution]:
Since the average number of calls by 104 in one minute is 2, thus the average number of calls in 5 minutes is 10. Let X represent the number of calls in 5 minutes. Then,
[pic]
and
[pic].
Then,
[pic].
How to obtain the Poisson probability distribution:
c) Using table of Poisson distribution.
d) Using computer
• by some software, for example, Excel or Minitab.
• by some computing resource in the internet, for example,
or
Online Exercise:
Exercise 7.2.1
Exercise 7.2.2
7.3. The Hypergeometric Probability Distribution:
Example:
Suppose there are 50 officers, 10 female officers and 40 male officers. Suppose 20 of them will be promoted. Let X represent the number of female promotions. Then,
[pic][pic]
[pic]
[pic]
[pic]
[pic]
Therefore, the probability distribution function for X is
[pic]
Hypergeometric Probability Distribution:
There are N elements in the population, r elements in group 1 and the other N-r elements in group 2. Suppose we select n elements from the two groups and the random variable X represent the number of elements selected from group 1. Then, the probability distribution function for X is
[pic]
Note: [pic] is the number of combinations as selecting i elements from group 1 while [pic] is the number of combinations as selecting n-i elements from group2. [pic] is the total number of combinations as selecting n elements from the two groups while [pic] is the total number of combinations as selecting i and n-i elements from groups 1 and 2, respectively.
How to obtain the hypergeometric probability distribution:
e) Using table of Poisson distribution.
f) Using computer
• by some software, for example, Excel or Minitab.
• by some computing resource in the internet, for example,
or
Online Exercise:
Exercise 7.3.1
Chapter 8 Continuous Probability Density
8.1. The Uniform Probability Density:
Example:
X: the random variable representing the flight time from Taipei to Kaohsiung.
Suppose the flight time can be any value in the interval from 30 to 50 minutes. That is, [pic].
Question: if the probability of a flight time within any time interval is the same as the one within the other time interval with the same length. Then, what density [pic] is sensible for describing the probability?
Recall that the area under the graph of [pic] corresponding to any interval is the probability of the random variable X taking values in this interval. Since the probabilities of X taking values in any equal length interval are the same, then the the areas under the graph of [pic] corresponding to any equal length interval are the same. Thus, [pic] will take the same value over any equal length area. For example,
within one minute interval, then
[pic]
Therefore, we have
[pic]
Note: since we know [pic], then by the property that
[pic].
In the above example, the probability density has the same value in the interval the random variable taking value. This probability density is referred as the uniform probability density function.
Uniform Probability Density Function:
A random variable X taking values in [a,b] has the uniform probability density function [pic] if
[pic].
The graph of [pic] is
[pic]
Properties of Uniform Probability Density Function:
A random variable X taking values in [a,b] has the uniform probability density function [pic], then
[pic]
[Derivation]:
[pic]
[pic]The derivation of [pic] is left as an exercise.
Example:
In the flight time example, [pic] then
[pic]
Online Exercise:
Exercise 8.1.1
Exercise 8.1.2
8.2. The Normal Probability Density
The normal probability density, also called the Gaussian density, might be the most commonly used probability density function in statistics.
Normal Probability Density Function:
A random variable X taking values in [pic] has the normal probability density function [pic] if
[pic],
where
[pic]
The graph of [pic] is
[pic]
Properties of Normal Density Function:
a)
[pic]
and
[pic]
b)
[pic]
c) X is a random variable with the normal density function. X is denoted by
[pic]
d) The standard deviation determine the width of the curve. The normal density with larger standard deviation would be more dispersed than the one with smaller standard deviation. In the following graph, two normal density functions have the same means but different standard deviations, one is 1 (the solid line) and the other is 2 (the dotted line):
[pic]
e) The normal density is symmetric with respect to mean. That is,
[pic]
f) The probability of a normal random variable follows the empirical rule introduce previously. That is,
[pic]
i.e., the probability of X taking values within one standard deviation is about 0.68, within two standard deviations about 0.95, and within three standard deviation about 1.
Standard Normal Probability Density Function:
A random variable Z, taking values in [pic] has the standard normal probability density function [pic] if
[pic],
where
[pic].
Note: we denote Z as [pic]
The probability of Z taking values in some interval can be found by the normal table. The probability of Z taking values in [0,z], [pic]can be obtained by the normal table. That is,
[pic]
The graph is given below:
[pic]
Example:
[pic]
[pic]
[pic]
[pic]
[pic]
[pic]
Example:
[pic]. What is x?
[solutions:]
[pic]
[pic]
[pic]
[pic]
Computing Probabilities for any Normal Random Variable:
Once the probability of the standard normal random variable can be obtained, the probability of any normal random variable (not standard) can be found via the following important rescaling:
[pic]
Example:
Let [pic]. Please find [pic].
[solutions:]
[pic] Then,
[pic]
Online Exercise:
Exercise 8.2.1
Exercise 8.2.2
8.3 The Exponential Density:
The exponential random variable can be used to describe the life time of a machine, industrial product and Human being. Also, it can be used to describe the waiting time of a customer for some service.
Exponetial Probability Density Function:
A random variable X taking values in [pic] has the exponential probability density function [pic] if
[pic],
where [pic].
The graph of [pic] is
[pic]
Properties of Exponential Density Function:
Let X be the random variable with the exponential density function [pic] and the parameter [pic]. Then
1.
[pic],
for any [pic].
2.
[pic]
and
[pic].
[derivation:]
[pic]
The derivation of 2 is left as exercise.
Note: [pic] is called the survival function.
Example:
Let X represent the life time of a washing machine. Suppose the average lifetime for
this type of washing machine is 15 years. What is the probability that this washing machine can be used for less than 6 years? Also, what is the probability that this washing machine can be used for more than 18 years?
[solution:]
X has the exponential density function with [pic]Then,
[pic]
Thus, for this washing machine, it is about 30% chance that it can be used for quite a long time or a short time.
Relationship Between Poisson and Exponential Random Variable:
Let Y be a Poisson random variable representing the number of occurrences in an time interval of length t with the probability distribution
[pic]
where [pic] is the mean number of occurrences in this time interval. Then, if X represent the time of one occurrence, X has the exponential density function with mean [pic] (t).
The intuition of the above result is as follows. Suppose the time interval is [0,1] (in hour) and [pic]. Then, on the average, there are 4 occurrences during 1 hour period. Thus, the mean time for one occurrence is [pic] (hour). The number of occurrences can be described by a Poisson random variable (discrete) with mean 4 while the time of one occurrence can be described by an exponential random variable (continuous) with mean [pic].
Example:
Suppose the average number of car accidents on the highway in two days is 8. What is the probability of no accident for more than 3 days?
[solutions:]
The average number of car accidents on the highway in one day is [pic]. Thus, the mean time of one occurrence is [pic].
Let Y be the Poisson random variable with mean 4 representing the number of car accidents in one day while X be the exponential random variable with mean [pic] representing the time of one accident occurrence. Thus,
[pic]
Online Exercise:
Exercise 8.3.1
Appendix: Poisson and Normal Approximations
I) Poisson Approximation:
Example:
Let X be the binomial random variable over 250 trials with [pic]. Then, it might not be easy to obtain
[pic]
directly. However, if we only want to obtain an approximation, Poisson approximation is a good choice.
Poisson approximation:
Let X be a binomial random variable over n trials and let [pic] Let Y be a Poisson random variable with mean np. Then, the probability of X taking value i can be approximated by the probability of Y taking value i. That is,
[pic]
Example:
In the above example, the Poisson random variable with mean [pic]
can be used for approximation. Thus,
[pic]
Note that the exact probability is
[pic].
Therefore, the normal approximation is reasonably accurate.
II) Normal Approximation:
Normal approximation:
Let X be a binomial random variable over n trials and the probability of success be p. Let Y be the normal random variable with mean np and variance np(1-p). Then, the probability of X taking value i can be approximated by the probability of Y taking values in [pic]. That is,
[pic].
Note: the probability [pic] can be obtained by transforming Y to the standard normal random variable Z.
Example:
Let X be the binomial random variable over 100 trials and let the probability of a success be 0.1. What is the probability of 12 successes by normal approximation?
[solutions:]
The normal random variable with mean [pic] and variance [pic] can be used for approximation. Thus,
[pic]
Note that the exact probability is
[pic].
Therefore, the normal approximation is reasonably accurate.
Note:
Let X be a binomial random variable over n trials and the probability of success be p and let Y be the normal random variable with mean np and variance np(1-p). Then,
[pic],
where Z is the standard normal random variable. Similarly,
[pic]
Example:
In the previous example, what is the probability of at most 13 successes by normal approximation?
[solution:]
[pic]
Note that the exact probability is
[pic].
Therefore, the normal approximation is reasonably accurate.
Review 1
Chapter 1:
1. Elements, Variable, and Observations:
Example:
Table 1.1 (p. 5) in the textbook!!
25 elements (25 companies): Advanced Comm. Systems, Ag-Chem Equipment Co.,…,Webco Industries Inc..
5 variables : Exchange, Ticker Symbol, Annual Sales, Share Price,
Price/Earnings Ratio.
25 observations: (OTC, ACSC, 75.10, 0.32, 39.10), (OTC, AGCH, 321.10, 0.48, 23.40),…, (AMEX, WEB, 153.50, 0.88, 7.50).
2. Type of Data: Qualitative Data and Quantitative Data
a) Qualitative data may be nonnumeric or numeric.
b) Quantitative data are always numeric.
c) Arithmetic operations are only meaningful with quantitative data.
Example (continue):
Qualitative variables: Exchange, Ticker Symbol.
Quantitative variables: Annual Sales, Share Price, Price/Earnings Ratio.
Chapter 2: Figure 2.22, p. 66.
1. Summarizing qualitative data:
• Frequency distribution, relative frequency distribution, and percent frequency distribution.
• Bar plot and Pie plot.
Example:
Below you are given the grades of 20 students.
|D |C |E |B |
|E |2 |2/20=0.1 |10 |
|D |3 |3/20=0.15 |15 |
|C |5 |5/20=0.25 |25 |
|B |9 |9/20=0.45 |45 |
|A |1 |1/20=0.05 |5 |
|Total |20 |1 |100 |
2. Summarizing qualitative data:
• Frequency distribution, relative frequency distribution, percent frequency distribution, cumulative frequency distribution, cumulative relative frequency distribution, cumulative percent frequency distribution
• Histogram, Ogive, and stem-and leaf display.
Example:
Suppose we have the following data:
|30 |79 |59 |65 |40 |
|30-39 |2 |(2/18)100=11 |2 |11 |
|40-49 |3 |(3/18)100=17 |5 |28 |
|50-59 |7 |(7/18)100=39 |12 |67 |
|60-69 |5 |(5/18)100=28 |17 |95 |
|70-79 |1 |(1/18)100=5 |18 |100 |
Chapter 3: Key Formulas, pp. 128-129.
Example:
Suppose we have the following data:
|Rent |420-439 |440-459 |460-479 |480-499 |500-519 |
|Frequency |8 |17 |12 |8 |7 |
|Rent |520-539 |540-559 |560-579 |580-599 |600-619 |
|Frequency |4 |2 |4 |2 |6 |
What are the mean rent and the sample variance for the rent?
[solution:]
[pic], where [pic] is the frequency of class i [pic] is the midpoint of class i and n is the sample size. Then,
|Rent |420-439 |440-459 |460-479 |480-499 |500-519 |
|[pic] |8 |17 |12 |8 |7 |
|[pic] |429.5 |449.5 |469.5 |489.5 |509.5 |
|Rent |520-539 |540-559 |560-579 |580-599 |600-619 |
|[pic] |4 |2 |4 |2 |6 |
|[pic] |529.5 |549.5 |569.5 |589.5 |609.5 |
Thus,
[pic] and [pic].
For the sample variance,
[pic]
Chapter 4:
• Tabular and Graphical Methods: Crosstabulation (qualitative and quantitative data) and Scatter Diagram (only quantitative data).
• Numerical Method: Covariance and Correlation Coefficient.
Chapter 5:
1. Multiple Step Experiments, Permutations, and Combinations:
Example:
How many committees consisting of 3 female and 5 male students can be selected from a group of 5 female and 8 male students?
[solution:]
[pic]
2. Event, Addition Law, Mutually Exclusive Events and Independent Event:
Example:
Assume you are taking two courses this semester (S and C). The probability that you will pass course S is 0.835, the probability that you will pass both courses is 0.276. The probability that you will pass at least one of the courses is 0.981.
a) What is the probability that you will pass course C?
b) Is the passing of the two courses independent event?
c) Are the events of passing the courses mutually exclusive? Explain.
[solution:]
(a)
Let A be the event of passing course S and B be the event of passing course C. Thus,
[pic].
[pic].
(b)
[pic]
Thus, events A and B are not independent. That is, passing of two courses are not independent events.
(c)
Since [pic], events A and B are not mutually exclusive.
Review 2
Chapter 4
Bayes’ Theorem:
Example:
In a random sample of Tung Hai University students 50% indicated they are business majors, 40% engineering majors, and 10% other majors. Of the business majors, 60% were female; whereas, 30% of engineering majors were females. Finally, 20% of the other majors were female. Given that a person is female, what is the probability that she is an engineering major?
[solution:]
Let
A1: the students are engineering majors
A2: the students are business majors [pic]
A3: the students are other majors.
B: the students are female.
Originally, we know
[pic].
Then, by Bayes’ theorem,
[pic]
Chapter 5
1. Random Variables, Discrete Probability Function, Expected Value and Variance
Example:
The probability distribution function for a discrete random variable X is
[pic]
where k is some constant. Please find
(a) k. (b) [pic] (c) [pic] and [pic]
[solution:]
(a)
[pic]
[pic].
(b)
[pic].
(c)
[pic]
and
[pic]
2. Continuous Probability Density Function, Expected Value and Variance.
Example:
The probability density function for a continuous random variable X is
[pic]
where a, b are some constants. Please find
a) a, b if [pic] (b) [pic].
[solution:]
(a)
[pic]
and
[pic]
Solve for the two equations, we have
[pic].
(b)
[pic]
Thus,
[pic]
Chapter 6
1. Uniform Probability Density Function, Normal Probability Density Function, and Exponential Probability Density Function:
Example:
The number of customers arriving at Taiwan Bank is Poisson distributed with a mean, 4 customers/per minute.
a) Within 2 minutes, what is the probability that there are 3 customers?
b) What is the probability density function for the time between the arrival of the next customer?
[solution:]
(a)
Let
Y: the number of customers arriving within 2 minutes.
Then,
[pic]
and
[pic].
Thus,
[pic].
(b)
X: the time between the arrival of the next customer
The average time between arrival of the next customer is
[pic].
X has the exponential density function with mean [pic],
[pic].
Review 2
Chapters 3, 4
Measures of Location, Dispersion, Exploratory Data Analysis, Measure of Relative Location, Weighted and Grouped Mean and Variance, Association between Two Variables
Example:
The flashlight batteries produced by one of the manufacturers are known to have an average life of 60 hours with a standard deviation of 4 hours.
a) At least what percentage of batteries will have a life of 54 to 66 hours?
b) At least what percentage of the batteries will have a life of 52 to 68 hours?
(c) Determine an interval for the batteries’ lives that will be true for at least 80% of the batteries.
[solution:]
Denote
[pic]
(a)
[pic]
Thus, by Chebyshev’s theorem, within 1.5 standard deviation, there is at least
[pic]
of batteries.
(b)
[pic]
Thus, by Chebyshev’s theorem, within 1.5 standard deviation, there is at least
[pic]
of batteries.
(c)
[pic]
Thus, within [pic] standard deviation, there is at least 80% of batteries. Therefore,
[pic].
Chapter 5
Basic Relationships of Probability, Conditional Probability and Bayes’ Theorem
Example:
The following are the data on the gender and marital status of 200 customers of a company.
[pic]
| |Male |Female |
|Single |20 |30 |
|Married |100 |50 |
a) What is the probability of finding a single female customer?
b) What is the probability of finding a married male customer?
c) If a customer is female, what is the probability that she is single?
d) What percentage of customers is male?
e) If a customer is male, what is the probability that he is married?
f) Are gender and martial status mutually exclusive? Explain.
g) Is martial status independent of gender? Explain.
[solution:]
A1: the customers are single
A2: the customers are married
B1: the customers are male.
B2: the customers are female.
(a)
[pic]
(b)
[pic]
(c)
[pic].
Since
[pic],
[pic].
(d)
[pic]
(e)
[pic].
(f)
Gender and martial status are not mutually exclusive since
[pic]
(f)
Gender and martial status are not independent since
[pic].
Example:
In a recent survey in a Statistics class, it was determined that only 60% of the students attend class on Thursday. From past data it was noted that 98% of those who went to class on Thursday pass the course, while only 20% of those who did not go to class on Thursday passed the course.
a) What percentage of students is expected to pass the course?
b) Given that a student passes the course, what is the probability that he/she attended classes on Thursday.
[solution:]
A1: the students attend class on Thursday
A2: the students do not attend class on Thursday [pic]
B1: the students pass the course
B2: the students do not pass the course
[pic]
(a)
[pic]
(b)
By Bayes’ theorem,
[pic]
Chapter 6
3. Random Variables, Discrete Probability Function and Continuous Probability Density
Example:
The probability distribution function for a discrete random variable X is
[pic]
where k is some constant. Please find
(a) k. (b) [pic]
[solution:]
(a)
[pic]
[pic].
(b)
[pic].
-----------------------
[pic]
[pic]
T
H
T
H
T
H
T
H
T
H
T
H
eq \o\ac(○,2)
N-1
3!=6
n-1
N-1
n-1
Ⅰ Ⅱ
Ⅲ
A
B
A B Ac
B∩A B∩Ac
B∩A1 B∩A2 B∩An
A1 A2 ……………….. An
B∩A1 B∩A2 B∩An
B
B∩A1 B∩A2 …………… B∩An
Win
Lose
Tie
3
-4
0
30
-40
0
Outcome
Token (X)
Money (Y)
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- chapter 1 data and statistics
- usa today world market indices
- the value line dow jones stock evaluation model is it useful
- fin432 california state university northridge
- what is management
- linear regression an 80 year study of the dow jones
- corvus capital llc
- the dow jones industrial average djia is the best known
Related searches
- genesis chapter 1 questions and answers
- psychology chapter 1 questions and answers
- probability and statistics 1 pdf
- 1 john chapter 1 explained
- data and statistics worksheet
- psychology chapter 1 and 2
- chapter 1 ratios and rates
- course 1 chapter 5 integers and the coordinate lesson 7
- chapter 1 mathematics for business and personal finance
- course 1 chapter 4 multiply and divide fractions
- chapter 1 basic economic concepts section 1 1 a look at wants and needs
- study guide chapter 17 section 1 absolute and comparative advantage