probability and statistics(exercise answers)

53
PROBABILITY AND STATISTICS BY ENGR. JORGE P. BAUTISTA

Upload: fatima-bianca-gueco

Post on 17-May-2015

15.301 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Probability and statistics(exercise answers)

PROBABILITY AND STATISTICS

BYENGR. JORGE P. BAUTISTA

Page 2: Probability and statistics(exercise answers)

COURSE OUTLINE

I. Introduction to StatisticsII. Tabular and Graphical representation of

DataIII. Measures of Central Tendencies, Locations

and VariationsIV. Measure of Dispersion and CorrelationV. Probability and CombinatoricsVI. Discrete and Continuous DistributionsVII.Hypothesis Testing

Page 3: Probability and statistics(exercise answers)

Text and References

Statistics: a simplified approach by Punsalan and Uriarte, 1998, Rex Texbook

Probability and Statistics by Johnson, 2008, Wiley

Counterexamples in Probability and Statistics by Romano and Siegel, 1986, Chapman and Hall

Page 4: Probability and statistics(exercise answers)

Introduction to Statistics

Definition1.In its plural sense, statistics is a set of

numerical data e.g. Vital statistics, monthly sales, exchange rates, etc.

2.In its singular sense, statistics is a branch of science that deals with the collection, presentation, analysis and interpretation of data.

Page 5: Probability and statistics(exercise answers)

General uses of Statistics

a. Aids in decision making by providing comparison of data, explains action that has taken place, justify a claim or assertion, predicts future outcome and estimates un known quantities

b. Summarizes data for public use

Page 6: Probability and statistics(exercise answers)

Examples on the role of Statistics- In Biological and medical sciences, it helps researchers

discover relationship worthy of further attention.Ex. A doctor can use statistics to determine to what

extent is an increase in blood pressure dependent upon age

- In social sciences, it guides researchers and helps them support theories and models that cannot stand on rationale alone.

Ex. Empirical studies are using statistics to obtain socio-economic profile of the middle class to form new socio-political theories.

Page 7: Probability and statistics(exercise answers)

Con’t- In business, a company can use statistics to

forecast sales, design products, and produce goods more efficiently.

Ex. A pharmaceutical company can apply statistical procedures to find out if the new formula is indeed more effective than the one being used.

- In Engineering, it can be used to test properties of various materials,

- Ex. A quality controller can use statistics to estimate the average lifetime of the products produced by their current equipment.

Page 8: Probability and statistics(exercise answers)

Fields of Statistics

a. Statistical Methods of Applied Statistics:1. Descriptive-comprise those methods concerned

with the collection, description, and analysis of a set of data without drawing conclusions or inferences about a larger set.

2. Inferential-comprise those methods concerned with making predictions or inferences about a larger set of data using only the information gathered from a subset of this larger set.

Page 9: Probability and statistics(exercise answers)

con’t

b. Statistical theory of mathematical statistics- deals with the development and exposition of theories that serve as a basis of statistical methods

Page 10: Probability and statistics(exercise answers)

Descriptive VS Inferential

DESCRIPTIVE• A bowler wants to find his

bowling average for the past 12 months

• A housewife wants to determine the average weekly amount she spent on groceries in the past 3 months

• A politician wants to know the exact number of votes he receives in the last election

INFERENTIALA bowler wants to estimate his

chance of winning a game based on his current season averages and the average of his opponents.

A housewife would like to predict based on last year’s grocery bills, the average weekly amount she will spend on groceries for this year.

A politician would like to estimate based on opinion polls, his chance for winning in the upcoming election.

Page 11: Probability and statistics(exercise answers)

Population as Differrentiated from Sample

The word population refers to groups or aggregates of people, animals, objects, materials, happenings or things of any form, this means that there are populations of students, teachers, supervisors, principals, laboratory animals, trees, manufactured articles, birds and many others. If your interest is on few members of the population to represent their characteristics or traits, these members constitute a sample. The measures of the population are called parameters, while those of the sample are called estimates or statistics.

Page 12: Probability and statistics(exercise answers)

The Variable

It refers to a characteristic or property whereby the members of the group or set vary or differ from one another. However, a constant refers to a property whereby the members of the group do not differ one another.

Variables can be according to functional relationship which is classified as independent and dependent. If you treat variable y as a function of variable z, then z is your independent variable and y is your dependent variable. This means that the value of y, say academic achievement depends on the value of z.

Page 13: Probability and statistics(exercise answers)

Con’t

Variables according to continuity of values.1. Continuous variable – these are variables

whose levels can take continuous values. Examples are height, weight, length and width.

2. Discrete variables – these are variables whose values or levels can not take the form of a decimal. An example is the size of a particular family.

Page 14: Probability and statistics(exercise answers)

Con’t

Variables according to scale of measurements:1. Nominal – this refers to a property of the

members of a group defined by an operation which allows making of statements only of equality or difference. For example, individuals can be classified according to thier sex or skin color. Color is an example of nominal variable.

Page 15: Probability and statistics(exercise answers)

Con’t2. Ordinal – it is defined by an operation whereby

members of a particular group are ranked. In this operation, we can state that one member is greater or less that the others in a criterion rather than saying that he/it is only equal or different from the others such as what is meant by the nominal variable.

3. Interval – this refers to a property defined by an operation which permits making statement of equality of intervals rather than just statement of sameness of difference and greater than or less than. An interval variable does not have a “true” zero point.; althought for convenience, a zero point may be assigned.

Page 16: Probability and statistics(exercise answers)

Con’t

4. Ratio – is defined by the operation which permits making statements of equality of ratios in addition to statements of sameness or difference, greater than or less than and equality or inequality of differences. This means that one level or value may be thought of or said as double, triple or five times another and so on.

Page 17: Probability and statistics(exercise answers)

Assignment no. 1

I. Make a list of at least 5 mathematician or scientist that contributes in the field of statistics. State their contributions

II. With your knowledge of statistics, give a real life situation how statistics is applied. Expand your answer.

III. When can a variable be considered independent and dependent? Give an example for your answer.

Page 18: Probability and statistics(exercise answers)

Con’t

IV. Enumerate some uses of statistics. Do you think that any science will develop without test of the hypothesis? Why?

Page 19: Probability and statistics(exercise answers)

Examples of Scales of Measurement

1.Nominal LevelEx. Sex: M-Male F-Female Marital Status: 1-single 2- married 3-

widowed 4- separated2. Ordinal LevelEx. Teaching Ratings: 1-poor 2-fair 3- good 4-

excellent

Page 20: Probability and statistics(exercise answers)

Con’t3. Interval LevelEx. IQ, temperature4. Ratio LevelEx. Age, no. of correct answers in exam

Page 21: Probability and statistics(exercise answers)

Data Collection Methods

1. Survey Method – questions are asked to obtain information, either through self administered questionnaire or personal interview.

2. Observation Method – makes possible the recording of behavior but only at the time of occurrence (ex. Traffic count, reactions to a particular stimulus)

Page 22: Probability and statistics(exercise answers)

Con’t3. Experimental method – a method designed for

collecting data under controlled conditions. An experiment is an operation where there is actual human interference with the conditions that can affect the variable under study.

4. Use of existing studies – that is census, health statistics, weather reports.

5. Registration method – that is car registration, student registration, hospital admission and ticket sales.

Page 23: Probability and statistics(exercise answers)

Tabular Representation

Frequency Distribution is defined as the arrangement of the gathered data by categories plus their corresponding frequencies and class marks or midpoint. It has a class frequency containing the number of observations belonging to a class interval. Its class interval contain a grouping defined by the limits called the lower and the upper limit. Between these limits are called class boundaries.

Page 24: Probability and statistics(exercise answers)

Frequency of a Nominal DataMale and Female College students

Major in Chemistry

SEX FREQUENCY

MALE 23

FEMALE 107

TOTAL 130

Page 25: Probability and statistics(exercise answers)

Frequency of Ordinal DataEx. Frequency distribution of Employee Perception on

the Behavior of their Administrators

Perception Frequency

Strongly favorable 10

favorable 11

Slightly favorable 12

Slightly unfavorable 14

Unfavorable 22

Strongly unfavorable 31

total 100

Page 26: Probability and statistics(exercise answers)

Frequency Distribution Table

Definition:1. Raw data – is the set of data in its original

form2. Array – an arrangement of observations

according to their magnitude, wither in increasing or decreasing order.

Advantages: easier to detect the smallest and largest value and easy to find the measures of position

Page 27: Probability and statistics(exercise answers)

Grouped Frequency of Interval Data

Given the following raw scores in Algebra Examination,

47 56 42 28 56 41 56 55 5978 50 55 57 38 62 52 66 6579 33 34 37 47 42 68 62 5480 68 48 56 39 77 80 62 7157 52 60 70

Page 28: Probability and statistics(exercise answers)

1. Compute the range: R = H – L and the number of classes by K = 1 + 3.322log n where n = number of observations.

2. Divide the range by 10 to 15 to determine the acceptable size of the interval. Hint: most frequency distribution have odd numbers as the size of the interval. The advantage is that the midpoints of the intervals will be whole number.

3. Organize the class interval. See to it that the lowest interval begins with a number that is multiple of the interval size.

Page 29: Probability and statistics(exercise answers)

4. Tally each score to the category of class interval it belongs to.

5. Count the tally columns and summarizes it under column (f). Then add the frequency which is the total number of the cases (N).

6. Determine the class boundaries. UCB and LCB.(upper and lower class boundary)

7. Compute the midpoint for each class interval and put it in the column (M).

M = (LS + HS) / 2

Page 30: Probability and statistics(exercise answers)

8. Compute the cumulative distribution for less than and greater than and put them in column cf< and cf>. (you can now interpret the data). cf = cumulative frequency

9. Compute the relative frequency distribution. This can be obtained by

RF% = CF/TF x 100% CF = CLASS FREQUENCY TF = TOTAL FREQUENCY

Page 31: Probability and statistics(exercise answers)

Graphical RepresentationThe data can be graphically

presented according to their scale or level of measurements.

1. Pie chart or circle graph. The pie chart at the right is the enrollment from elementary to master’s degree of a certain university. The total population is 4350 students

Page 32: Probability and statistics(exercise answers)

2. Histogram or bar graph- this graphical representation can be used in nominal, ordinal or interval. For nominal bar graph, the bars are far apart rather than connected since the categories are not continuous. For ordinal and interval data, the bars should be joined to emphasize the degree of differences

Page 33: Probability and statistics(exercise answers)

Given the bar graph of how students rate their library.

A-strongly favorable, 90B-favorable, 48C-slightly favorable, 88D-slightly unfavorable, 48E-unfavorable, 15F-strongly unfavorable, 25

Page 34: Probability and statistics(exercise answers)

The Histogram of Person’s Age with Frequency of Travel

age freq RF

19-20 20 39.2%

21-22 21 41.2%

23-24 4 7.8%

25-26 4 7.8%

27-28 2 3.9%

total 51 100%

Page 35: Probability and statistics(exercise answers)

ExercisesFrom the previous grouped data on algebra scores,a. Draw its histogram using the frequency in the y axis

and midpoints in the x axis.b. Draw the line graph or frequency polygon using

frequency in the y axis and midpoints in the x axis.c. Draw the less than and greater than ogives of the

data. Ogives is a cumulation of frequencies by class intervals. Let the y axis be the CF> and x axis be LCB while y axis be CF< and x axis be UCB

Page 36: Probability and statistics(exercise answers)

Con’td. Plot the relative frequency using the y axis as

the relative frequency in percent value while in the x axis the midpoints.

Page 37: Probability and statistics(exercise answers)

25 30 35 40 45 50 55 60 65 70 75 80 85 90

9

8

7

6

5

4

3

2

1

0

f

midpoint29.5 - UCB27- midpoint24.5 - LCB

midpoint

HISTOGRAMLINE GRAPH

Page 38: Probability and statistics(exercise answers)

29.5 34.5 39.5 44.5 49.5 54.5 59.5 64.5 69.5 74.5 79.5 84.5

cf less than

40

35

30

25

20

15

10

5

0

UCB

Page 39: Probability and statistics(exercise answers)

40

35

30

25

20

15

10

5

024.5 29.5 34.5 39.5 44.5 49.5 54.5 59.5 64.5 69.5 74.5 79.5

cf greater than

LCB

Page 40: Probability and statistics(exercise answers)

Assignment No. 2Given the score in a statistics examinations,33 38 56 35 70 44 81 44 8047 45 72 45 50 51 51 52 6654 54 53 56 84 58 56 57 7055 56 39 56 59 72 63 89 6360 69 65 61 62 64 64 69 6065 53 66 66 67 67 68 68 6966 66 67 70 59 40 71 73 6073 73 73 73 73 73 74 73 7374 79 74 74 70 73 46 74 7475 74 75 75 76 55 77 78 7379 48 81 44 84 77 88 63 8573

Page 41: Probability and statistics(exercise answers)

1. Construct the class interval, frequency table, class midpoint(use a whole number midpoint), less than and greater than cumulative frequency, upper and lower boundary and relative frequency.

2. Plot the histogram, frequency polygon, and ogives

Page 42: Probability and statistics(exercise answers)

3. Draw the pie chart and bar graph of the plans of computer science students with respect to attending a seminar. Compute for the Relative frequency of each.

A-will not attend=45B-probably will not attend=30C-probably will attend=40D-will attend=25

Page 43: Probability and statistics(exercise answers)

Measures of Centrality and Location

Mean for Ungrouped DataX’ = ΣX / N where X’ = the mean ΣX = the sum of all scores/data N = the total number of casesMean for Grouped DataX’ = ΣfM / N where X’ = the mean M = the midpoint fM = the product of the frequency and each

midpoint N = total number of cases

Page 44: Probability and statistics(exercise answers)

Ex. 1. Find the mean of 10, 20, 25,30, 30, 35, 40 and 50.2. Given the grades of 50 students in a statistics classClass interval f 10-14 4 15-19 3 20-24 12 25-29 10 30-34 6 35-39 6 40-44 6 45-49 3

Page 45: Probability and statistics(exercise answers)

The weighted mean. The weighted arithmetic mean of given groups of data is the average of the means of all groups

WX’ = ΣXw / N where WX’ = the weighted mean w = the weight of X ΣXw = the sum of the weight of X’s N = Σw = the sum of the weight of

X

Page 46: Probability and statistics(exercise answers)

Ex.Find the weighted mean of four groups of

means below:Group, i 1 2 3 4Xi 60 50 70 75

Wi 10 20 40 50

Page 47: Probability and statistics(exercise answers)

Median for Ungrouped DataThe median of ungrouped data is the

centermost scores in a distribution. Mdn = (XN/2 + X (N + 2)/2) / 2 if N is even

Mdn = (X1 + N) / 2 if N is oddEx. Find the median of the following sets of

score:Score A: 12, 15, 19, 21, 6, 4, 2Score B: 18, 22, 31, 12, 3, 9, 11, 8

Page 48: Probability and statistics(exercise answers)

Median for Grouped DataProcedure:1. Compute the cumulative frequency less than.2. Find N/23. Locate the class interval in which the middle class falls, and

determine the exact limit of this interval.4. Apply the formula Mdn = L + [(N/2 – F)i]/fm where L = exact lower limit interval containing

the median class F = The sum of all frequencies preceeding L. fm = Frequency of interval containing the median

class i = class interval N = total number of cases

Page 49: Probability and statistics(exercise answers)

Ex. Find the median of the precious example with

the score of 50 students in statistics

Page 50: Probability and statistics(exercise answers)

Mode of Ungrouped DataIt is defined as the data value or specific score

which has the highest frequency.Find the mode of the following data.Data A : 10, 11, 13, 15, 17, 20Data B: 2, 3, 4, 4, 5, 7, 8, 10Data C: 3.5, 4.8, 5.5, 6.2, 6.2, 6.2, 7.3, 7.3, 7.3,

8.8

Page 51: Probability and statistics(exercise answers)

Mode of Grouped DataFor grouped data, the mode is defined as the midpoint

of the interval containing the largest number of cases.

Mdo = L + [(fmo – f1)/(2fmo – f1 – f2)]i where L = exact lower limit interval

containing the modal class. fmo = Frequency of the modal class f1 = Frequency of the class

preceding the modal class f2 = Frequency of the class following the

modal class

Page 52: Probability and statistics(exercise answers)

Ex. Find the mode of the scores of 50 students in

statistics

Page 53: Probability and statistics(exercise answers)

Percentile as a Measure of Location (fractiles)It is an important measure which divides the

distribution into one hundred parts. It is called the centile. Other measures similar to the percentile are the quatile and decile. The quartile divides the distribution into four parts while the decile into ten parts.