










































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!











































The word "statistics" has been derived from the Latin word "Status" or the Italian word "Statista", meaning "Political State" or a "Government". Early applications of statistical thinking revolved around the needs of states to base policy on demographic and economic data.
Statistics is a branch of science that deals with the collection, presentation, analysis, and interpretation of data.
Statistics is divided into two broad categories:
Descriptive Statistics : Summary values and presentations which give information about the data. For example, the mean height of a first-year student in JKUAT is 170cm.
Inferential Statistics : Summary values calculated from the sample in order to make conclusions about the target population.
Qualitative Variables : Nominal variables: Variables whose categories are just names with no natural ordering (e.g., gender, marital status, skin color, district of birth).
Ordinal variables: Variables whose categories have a natural ordering (e.g., education level, performance category, degree classifications).
Quantitative Variables :
Discrete variables: Variables that can only assume certain values and have gaps between them (e.g., the number of calls made in a day, the number of vehicles passing through a certain point). Continuous variables: Variables that can assume any value in a specified range (e.g., length of a telephone call, height of a first-year student in JKUAT).
Data Collection
Primary Data : Freshly collected data, original in character, and not undergone any statistical treatment. Secondary Data : Second-hand information mainly obtained from published sources, such as statistical abstracts, books, encyclopedias, periodicals, media reports, CD-ROMs, and the internet. They have undergone some statistical treatment at least once.
Experimental or Laboratory Methods
Simulation Lab methods Field experiments
Non-Experimental Methods
Sample surveys Case studies Field studies Census
a. Field Study : Aims at testing hypotheses in natural life situations, without controlling or manipulating the independent variables. - Merits: - Realistic as it is carried out in natural conditions. - Easy to obtain data with a large number of variables. - Demerits: - Independent variables are not manipulated. - Cooperation of the organization is often difficult to obtain. - Data is likely to contain unknown sampling bias. - The dross rate (proportion of irrelevant data) may be high. - Measurement is not as precise as in a laboratory due to the influence of confounding variables.
b. Census : A study that obtains data from every member of a population.
c. Sample Survey : A study that obtains data from a subset of a population to estimate population attributes or characteristics.
d. Case Study : A method of intensively exploring and analyzing the life of a single social unit, such as a family, person, institution, cultural group, or community. - Merits: - Less expensive than other methods. - Very intensive in nature, aiming to study a few units rather than several. - Data collection is flexible, as the researcher is free to approach the problem from any angle. - Data is collected from natural settings. - Demerits: - Lacks internal validity, which is basic to scientific evidence. - Only one unit of the defined population is studied, so the findings cannot be used as a basis for
Sampling involves two tasks: 1. How to select the elements? 2. How to estimate the population characteristics from the sampling units?
Cost: The sample can furnish data of sufficient accuracy at much lower cost. Time: The sample provides information faster than a census, thus ensuring timely decision-making. Accuracy: It is easier to control data collection errors in a sample survey as opposed to a census. Risky or destructive tests: Sample surveys are preferred over a census for testing new drugs or other potentially risky or destructive tests.
a. Simple Random Sampling (SRS) : Each element has an equal probability of being selected from a list of all population units.
Data Presentation
Bar diagrams Histograms Stem-and-leaf diagrams
Mean Median Mode
Range Variance Standard deviation
Data Analysis
Course Textbooks and Journals
Uppal, S. M., Odhiambo, R. O. & Humphreys, H. M. (2005). Introduction to Probability and Statistics. JKUAT Press. Crawshaw, J. & Chambers, J. (1994). A Concise Course in A-Level Statistics, with Worked Examples (3rd ed.). Stanley Thornes.
i. Clarke, G. M. & Cooke, D. (2004). A Basic Course in Statistics (5th ed.). Arnold. ii. Ross, S. (1994). A First Course in Probability (4th ed.). Prentice Hall. iii. Mann, P. S. (2001). Introductory Statistics. John Wiley & Sons Ltd. iv. Journal of Applied Statistics (J. Appl. [0233-1888]) v. Statistical Science (Stat. [0883-4237]) vi. Journal of Mathematical Sciences vii. Journal of Teaching Statistics
Sampling Techniques
Though it's attractive for its simplicity, the design of simple random sampling (SRS) is not usually used in practice for sample surveys for several reasons:
Lack of Listing Frame : The SRS method requires that a list of population elements be available, which is not the case for many populations.
Problem of Small Area Estimation or Domain Analysis : For a small sample from a large population, all the areas may not have enough sample size for making small area estimation or for domain analysis by variables of interest.
Not Cost-Effective : SRS requires covering the whole population, which may reside in a large geographic area; interviewing a few samples spread sparsely over a large area would be very costly.
Implementation of SRS Sampling : 1. Listing (Sampling) Frame 2. Random Number Table (from published table or computer-generated) 3. Selection of Sample
In stratified sampling, the population is partitioned into groups, called strata, and sampling is performed separately within each stratum. This sampling technique is used when:
Population groups may have different values for the responses of interest. We want to improve our estimation for each group separately. To ensure adequate sample size for each group.
In stratified sampling designs: 1. Stratum variables are mutually exclusive (no overlapping), e.g., urban/rural areas, economic categories, geographic regions, race, sex, etc. The principal objective of stratification is to reduce sampling errors. 2. The population (elements) should be homogenous within- stratum, and the population (elements) should be heterogeneous between the strata.
Advantages of Stratified Sampling : 1. Provides opportunity to study the stratum variations - estimation could be made for each stratum 2. Disproportionate sample may be selected from each stratum 3. The precision is likely to increase as variance may be smaller than simple random case with the same sample size 4. Field works can be organized using the strata (e.g., by geographical areas or regions) 5. Reduce survey costs
Disadvantages of Stratified Sampling : 1. Sampling frame is needed for each stratum 2. Analysis method is complex 3. Correct variance estimation
Allocation of Stratified Sampling : The major task of stratified sampling design is the appropriate allocation of samples to different strata. There are three main types of allocation methods:
Equal Allocation : Divide the number of sample units n equally among the K strata. i.e., n_i = n/K. Proportional Allocation : Make the proportion of each stratum sampled identical to the proportion of the population. i.e., n_i = (N_i/N)
Sampling Techniques
Proportional allocation is a method of allocating the sample size to different strata in proportion to the size of the strata in the population.
The disadvantage of proportional allocation is that the sample size in a stratum may be low, thus providing unreliable stratum-specific results.
In cluster sampling, a random sample of clusters is taken, and some or all elements in the selected clusters are observed. Cluster sampling is preferable in terms of cost, as it is much cheaper, easier, and quicker to collect data from adjoining elements than elements chosen at random. However, cluster sampling is less informative and less efficient per element in the sample, due to similarities of elements within the same cluster.
In multi-stage sampling, the respondents are chosen through a process of defined stages. For example, in a survey in Kenya, the process may involve selecting Nairobi at random (stage 1), then Langata constituency within Nairobi (stage 2), Kibera within Langata (stage 3), polling stations from Kibera (stage 4), and finally individuals from the electoral voters' register (stage 5).
Provides a quantitative measure of the extent of variation due to random effects. Provides data of known quality. Provides data in a timely fashion. Provides acceptable data at minimum cost. Better control over non-sampling sources of errors. Mathematical statistics and probability can be applied to analyze and interpret the data.
Non-probability sampling is used in situations where a researcher cannot select the kinds of probability samples used in large-scale social surveys.
Convenience Sampling
Convenience sampling is a method of choosing subjects who are available or easy to find. The primary advantage of convenience sampling is that it is very easy to carry out, relative to other methods. However, one can never be certain what population the participants in the study represent, and the method is haphazard, with the cases studied probably not representing any population.
Solution:
| Value | Tally | Frequency | | ----- | ----- | --------- | | 12 | / | 1 | | 13 | /// | 3 | | 14 | //// | 4 | | 15 | //// | 5 | | 16 | //// | 4 | | 17 | // | 2 | | 18 | / | 1 |
Note: When tallying, //// is used for 5 counts, not /////.
2.1.2 Construction of Grouped Frequency Distributions
When the number of observations is too large and/or when the variable of interest is continuous, it's cumbersome to consider the repetition of each observation. A quick and more convenient way is to group the range of values into a number of exclusive groups or classes and count the class frequency. The resulting table is called a grouped frequency distribution table.
A grouped frequency distribution consists of classes and their corresponding frequencies. Each raw data value is placed into a quantitative or qualitative category called a class.
Select the number of classes k. Choose the smallest integer k such that k ≈ log₂(n), where n is the number of observations. Identify the largest and smallest observation and compute the range R = largest - smallest value. Identify the smallest unit of measurement (u) used in the data collection (i.e., the accuracy of the measurement). Estimate the class width/interval: i = R / k, and round up to the nearest multiple of u. Pick the starting value (lower class limit of the 1st class, LCL1) as the smallest value used in the computation of R above. Successive LCLs are obtained by adding i to the previous LCL. Find the upper class limit of the 1st class (UCL1) by subtracting u from LCL2. Successive UCLs are obtained by adding i to the previous UCL. If necessary, find the class boundaries as follows: LCB = LCL - u/2 and UCB = UCL + u/2. Tally the number of observations falling in each class and record the frequency.
Time Management and Productivity
Time is a precious resource, but the true value of time is often not fully appreciated until it is no longer available. As the proverb states, "Time is precious, but we do not know yet how precious it really is. We will only know when we are no longer able to take advantage of it."
The proverb "The plans of the diligent lead to profit as surely as haste leads to poverty" highlights the importance of being diligent and efficient in our
use of time. Careful planning and a deliberate approach can lead to positive outcomes, while rushing and haste can result in waste and missed opportunities.
To illustrate the concept of organizing data, the following example is provided:
Example 1: Organize the data below into a grouped frequency table.
15.0, 17.4, 10.3, 9.2, 20.7, 18.9, 16.6, 22.4, 23.7, 18.6, 26.1, 16.5, 19.7, 12.9, 15.7, 30.8, 15.4, 20.3, 24.0, 29.6, 18.3, 23.7, 17.8, 24.6, 23.0, 21.4, 32.8, 12.5, 17.5, 18.3, 23.2, 21.6, 20.8, 29.8, 24.5, 28.4, 13.5, 17.1, 27.1, 27.
Solution: [Detailed solution with a grouped frequency table]
Frequency Distribution and Graphical
Displays
The given text provides several examples of frequency distributions constructed from various data sets. Here are the key points:
State Temperature Data : The data represents the record high temperatures in degrees Fahrenheit (F) for each of the 50 states. A grouped frequency distribution is constructed with the following class boundaries:
9.2 - 13.1, 13.2 - 17.1, 17.2 - 21.1, 21.2 - 25.1, 25.2 - 29.1, 29.2 - 33.
Vehicle MPG Data : The data represents the number of miles per gallon (mpg) that 30 selected four-wheel-drive sports utility vehicles obtained in city driving. A frequency distribution is constructed with the following class boundaries:
100 - 105, 106 - 111
Wealth Ages Data : The data represents the ages of the top 50 wealthiest people in the world, as listed in Forbes Magazine. A grouped frequency distribution is to be constructed.
Presidential Ages Data : The data represents the ages of the U.S. Presidents at the time they were first inaugurated. A frequency distribution is to be constructed.
State Gas Tax Data : The data represents the state gas tax in cents per gallon for 25 states. A grouped frequency distribution is to be constructed.
Histogram
Consists of a set of continuous rectangles such that the areas of the rectangles are proportional to the frequency. For ungrouped data, the heights of each bar are proportional to the frequency. For grouped data, the height of each rectangle is the relative frequency. Example: Frequency distribution of a data set.
Frequency Polygon
A plot of frequency against midpoints, joined with straight line segments between consecutive points. Can also be obtained by joining the midpoints of the tops of the bars in a histogram. Example: Frequency distribution of a data set.
Cumulative Frequency Curve (Ogive)
A plot of cumulative frequency against upper boundaries, joined with a smooth curve. Useful in estimating median and other measures of location. Example: Frequency distribution of a data set.
Element Composition
The composition of the Earth's crust by element is as follows:
Element | Percentage --- | --- Oxygen | 45.6% Silicon | 27.3% Aluminum | 8.4% Iron | 6.2% Calcium | 4.7% Others | 7.8%
Music Sales by Genre (2004)
The sales of recorded music in 2004 by genre are as follows:
Genre | Percentage --- | --- Rock | 23.9% Country | 13.0% Rap/hip-hop | 12.1% R&B/urban | 11.3% Pop | 10.0% Religious | 6.0% Children's | 2.8% Jazz | 2.7% Classical | 2.0% Oldies | 1.4% Soundtracks | 1.1% New age | 1.0% Others | 8.9%
Nobel Prizes in Physiology or Medicine
The top prize-winning countries for Nobel Prizes in Physiology or Medicine are:
Country | Number of Prizes --- | --- United States | 80 United Kingdom | 24 Germany | 16 France | 7 Sweden | 8 Switzerland | 6 Denmark | 5 Austria | 4 Belgium | 4 Italy | 3 Australia | 3
Runners' Weekly Mileage
The distribution of the miles that 20 randomly selected runners ran during a given week is as follows:
For 108 randomly selected college applicants, the frequency distribution for entrance exam scores is:
Class | Frequency --- | --- 90-98 | 6 99-107 | 22 108-116 | 43 117-125 | 28 126-134 | 9
Applicants who score above 107 need not enroll in a summer developmental program. In this group, 79 students do not have to enroll in the developmental program.
Thirty automobiles were tested for fuel efficiency, in miles per gallon (mpg). The following frequency distribution was obtained:
Class | Frequency --- | --- 8-12 | 3 13-17 | 5 18-22 | 15 23-27 | 5 28-32 | 2
The salaries (in millions of dollars) for 31 NFL teams for a specific season are given in this frequency distribution:
Class | Frequency --- | --- 39.9-42.8 | 2 42.9-45.8 | 2 45.9-48.8 | 5 48.9-51.8 | 5 51.9-54.8 | 12 54.9-57.8 | 5
The distribution is right-skewed, with the majority of teams having salaries in the 51.9-54.8 million dollar range.
In a study of reaction times of dogs to a specific stimulus, an animal trainer obtained the following data, given in seconds:
Class | Frequency --- | --- 2.3-2.9 | 10 3.0-3.6 | 12 3.7-4.3 | 6 4.4-5.0 | 8 5.1-5.7 | 4 5.8-6.4 | 2
The animal trainer then selected another group of older dogs and measured their reaction times to the same stimulus, with the following results:
Stem | Leaf --- | --- 0 | 2 1 | 3, 4 2 | 0, 3, 5 3 | 1, 2, 2, 2, 2, 3, 6 4 | 3, 4, 4, 5 5 | 1, 2, 7
The plot shows that the distribution peaks in the center and that there are no gaps in the data. For 7 of the 20 days, the number of patients receiving cardiograms was between 31 and 36. The plot also shows that the testing center treated from a minimum of 2 patients to a maximum of 57 patients in any one day.
An insurance company researcher conducted a survey on the number of car thefts in a large city for a period of 30 days last summer. The raw data are: 50, 51, 51, 52, 52, 53, 55, 55, 55, 55, 56, 56, 57, 57, 57, 58, 59, 59, 60, 60, 61, 61, 62, 63, 64, 64, 65, 65, 68, 69
The stem and leaf plot for this data, using classes 50-54, 55-59, 60-64, 65-69, 70-74, and 75-79, is:
Stem | Leaf --- | --- 5 | 0, 1, 1, 2, 3, 3 5 | 5, 5, 6, 7, 7, 8, 9 6 | 2, 3 6 | 5, 5, 6, 6, 7, 8, 9, 9 7 | 2, 3 7 | 5, 5, 7, 8, 9
The stem and leaf plot shows that the distribution is skewed to the right, with the majority of the car thefts occurring in the 55-59 and 60-64 classes.
When the data values are in the hundreds, such as 325, the stem is 32 and the leaf is 5. For example, the stem and leaf plot for the data values 325, 327, 330, 332, 335, 341, 345, and 347 looks like this:
Stem | Leaf --- | --- 32 | 5, 7 33 | 0, 2, 5 34 | 5, 7
The maximum temperature measured to the nearest degrees centigrade was recorded in a certain town each day in June. The data is: 19, 13, 19, 19, 20, 12, 19, 22, 22, 16, 18, 16, 19, 20, 17, 13, 14, 12, 15, 17, 16, 17, 19, 22, 22, 20, 19, 19, 20, 20
The stem and leaf plot for this data, using classes 12-14, 15-17, 18-20, and 21-23, is:
Stem | Leaf --- | --- 12 | 0, 0, 1, 2 15 | 0, 1, 1, 1, 2, 2, 2 18 | 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 21 | 1, 1, 1, 1, 2
The key indicates that 15/2 means 17 and 18/0 means 18.
Related distributions can be compared by using a back-to-back stem and leaf plot. The back-to-back stem and leaf plot uses the same digits for the stems
of both distributions, but the digits that are used for the leaves are arranged in order out from the stems on both sides.
The number of stories in two selected samples of tall buildings in Atlanta and Philadelphia is shown below. A back-to-back stem and leaf plot is constructed to compare the distributions.
Atlanta | Philadelphia --- | --- 55, 70, 44, 36, 40, 63, 40, 44, 34, 38 | 61, 40, 38, 32, 30, 58, 40, 40, 25, 30 60, 47, 52, 32, 32, 50, 53, 32, 28, 31 | 54, 40, 36, 30, 30, 53, 39, 36, 34, 33, 39, 32 52, 32, 34, 32, 30, 26, 29 |
The back-to-back stem and leaf plot is:
Atlanta | Philadelphia --- | --- 9, 8, 6 | 2 7, 4, 4, 0, 0 | 4 5, 3, 2, 2, 0, 0 | 5 3, 0 | 6 0 | 7
The buildings in Atlanta have a larger variation in the number of stories per building. Although both distributions are peaked in the 30- to 39-story class, Philadelphia has more buildings in this class. Atlanta has more buildings that have 40 or more stories than Philadelphia does.
Numerical Summaries: Measures of Location
and Measures of Spread
Numerical summaries can be categorized into two main types: measures of location and measures of spread.
Measures of location can be further classified into two subcategories:
Measures of central tendency Measures of relative positioning (quantiles)
Before discussing the specific measures of location, it is important to consider the notation used for indexing and summation.
Indexing Notation
Let the symbol x_i (read 'x sub i') denote any of the n values x_1, x_2, ..., x_n assumed by a variable X. The letter i in x_i can be replaced with other letters such as j, k, p, q, or s.
Summation Notation
The summation notation is used to represent the sum of a series of values. The general form is:
Σ x_i i=
The mode is the value occurring most frequently in a data set. If each observation occurs the same number of times, then there is no mode. When 2 or more observations occur most frequently, the data is said to be multimodal.
For grouped data, the mode is estimated using the formula:
Mode = LCB + [(fa / (fa + fb)) × i]
where LCB is the lower class boundary, fa and fb are the frequencies of the class above and below the modal class, respectively, and i is the class interval.
Examples: 1. Find the median and mode of the data: 19, 13, 18, 14, 12, 25, 11, 10, 17, 23, 19. 2. Find the median and mode of the data: 2, 4, 8, 7, 9, 4, 6, 10, 8, and 5. 3. Estimate the mean, median, and mode for the following frequency distribution:
Class | Frequency --- | --- 5-9 | 5 10-14 | 12 15-19 | 32 20-24 | 40 25-29 | 16 30-34 | 9 35-39 | 6
Other Types of Means
The weighted arithmetic mean of a set of n numbers x1, x2, ..., xn having corresponding weights w1, w2, ..., wn is defined as:
x̄w = (w1x1 + w2x2 + ... + wnxn) / (w1 + w2 + ... + wn)
Example: A tycoon has 3 house girls who he pays Ksh 4,000 each per month, 2 watchmen who he pays Ksh 5,000 each, and some garden men who receive Ksh 7,000 each. If he pays out an average of Ksh 5,700 per month to these people, find the number of garden men.
The geometric mean (GM) of x1, x2, ..., xn is given by:
GM = (x1 × x2 × ... × xn)^(1/n)
The harmonic mean (HM) of x1, x2, ..., xn is given by:
HM = n / (1/x1 + 1/x2 + ... + 1/xn)
The relationship between the arithmetic, geometric, and harmonic means is:
x̄≥ GM ≥ HM
Examples: 1. Find the harmonic and geometric mean of the numbers 2, 4, and 8. 2. Find the harmonic and geometric mean of the frequency table:
x | f --- | --- 13 | 2 14 | 5 15 | 13 16 | 7 17 | 3
Measures of Relative Positioning (Quantiles)
Quantiles are values that divide a sorted data set into N equal parts. The commonly used quantiles are:
Quartiles: Divide the data into 4 equal parts Deciles: Divide the data into 10 equal parts Percentiles: Divide the data into 100 equal parts
These measures of position are useful for comparing scores within one set of data. For example, if your composite math score on a college placement exam was 28 and it was reported to be in the 94th percentile, it means your score was higher than 94% of the other test-takers.
Quartiles, Deciles, and Percentiles
To work with percentiles, deciles, and quartiles, you need to learn two different tasks:
Finding the percentile that corresponds to a particular score. Finding the score in a set of data that corresponds to a given percentile.
Quartiles divide a sorted data set into 4 equal parts. The three quartiles are:
Q1 (Lower Quartile) : Separates the bottom 25% from the top 75%. Q2 (Median) : The middle value. Q3 (Upper Quartile) : Separates the top 25% from the bottom 75%.
The Kth quartile is given by: $Q_k = \frac{k(n+1)}{4}$th value, where k=1, 2, 3.
Similarly, the Kth decile (Dk) and the Kth percentile (Pk) are given by: $D_k = \frac{k(n+1)}{10}$th value and $P_k = \frac{k(n+1)}{100}$th value, respectively.
For ungrouped data, linear interpolation may be used to find the required Kth quantile. For grouped data, the Kth value is given by: $\frac{K-Cfa}{f_i} \times i + LCB$, where LCB, i, and f are the lower class boundary, class