Docsity

PROBABILITY AND STATISTICS WELL ANALYZED, Lecture notes of Probability and Statistics

Partial preview of the text

Download PROBABILITY AND STATISTICS WELL ANALYZED and more Lecture notes Probability and Statistics in PDF only on Docsity!

SUCCESS=DETERMINATION + CONSISTENCY

PRROBABILITY AND

STATISTICS

BY PROFESSOR MARTIN SAINTS

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… Proverbs 21:5 The plans of the diligent lead to profit as surely as haste leads to poverty Page 2 Introduction What is statistics? The Word statistics has been derived from Latin word “ Status ” or the Italian word “ Statista ”, the meaning of these words is “ Political State ” or a Government. Early applications of statistical thinking revolved around the needs of states to base policy on demographic and economic data. Definition Statistics : a branch of science that deals with collection presentation, analysis, and interpretation of data. The definition points out 4 key aspects of statistics namely (i) Data collection (iii) Data analysis, and (ii) Data presentation, (iv) Data interpretation Statistics is divided into 2 broad categories namely descriptive and inferential statistics. Descriptive Statistics : summary values and presentations which gives some information about the data Eg the mean height of a 1st^ year student in JKUAT is170cm. 170cm is a statistics which describes the central point of the heights data. Inferential Statistics : summary values calculated from the sample in order to make conclusions about the target population. Types of Variables Qualitative Variables : Variables whose values fall into groups or categories. They are called categorical variables and are further divided into 2 classes namely nominal and ordinal variables a) Nominal variables: variables whose categories are just names with no natural ordering. Eg gender marital status, skin colour, district of birth etc b) Ordinal variables: variables whose categories have a natural ordering. Eg education level, performance category, degree classifications etc Quantitative Variables : these are numeric variables and are further divided into 2 classes namely discrete and continuous variables a) Discrete variables: can only assume certain values and there are gaps between them. Eg the number of calls one makes in a day, the number of vehicles passing through a certain point etc b) Continuous variables: can assume any value in a specified range. Eg length of a telephone call, height of a 1st^ year student in JKUAT etc

1. Data Collection:

1.1 Sources of Data

There are 2 sources for data collection namely Primary, and Secondary data Primary data:- freshly collected ie for the first time. They are original in character ie they are the first hand information collected, compiled and published for some purpose. They haven’t undergone any statistical treatment Secondary Data :- 2 nd^ hand information mainly obtained from published sources such as statistical abstracts books encyclopaedias periodicals, media reports eg census report CD-roms and other electronic devices, internet. They are not original in character and have undergone some statistical treatment at least once.

1.2 Data Collection Methods

The 1st^ step in any investigation (inquiry) is data collection. Information can either be collected directly or indirectly from the entire population or a sample.

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…

SUCCESS

There are many methods of collecting data which includes the ones illustrated in the flow chart below Experimental methods are so called because in them the investigator in a laboratory tests the hypothesis about the cause and effect relationship by manipulating the independent variables under controlled conditions. Non-Experimental methods are so called because in them the investigator does not control or change any aspect of the situation under study but simply describes what naturally occurs at a certain point or period of time. Non-Experimental methods are widely used in social sciences. Some of the Non-Experimental methods used for data collection are outlined below. a) Field study :- aims at testing hypothesis in natural life situations. It differs from field experiment in that the researcher does not control or manipulate the independent variables but both of them are carried out in natural conditions Merits : (i) The method is realistic as it is carried out in natural conditions (ii) It’s easy to obtain data with large number of variables. Demerits (iii) Independent variables are not manipulated. (iv) Co-operation of the organization is often difficult to obtain. (v) Data is likely to contain unknown sampling biasness. (vi) The dross rate (proportion of irrelevant data) may be high in such studies. (vii) Measurement is not precise as in laboratory because of influence of confounding variables. b) Census. A census is a study that obtains data from every member of a population (totality of individuals /items pertaining to certain characteristics). In most studies, a census is not practical, because of the cost and/or time required. c) Sample survey. A sample survey is a study that obtains data from a subset of a population, in order to estimate population attributes/ characteristics. Surveys of human populations and institutions are common in government, health, social science and marketing research. d) Case study – It’s a method of intensively exploring and analyzing the life of a single social unit be it a family, person, an institution, cultural group or even an entire community. In this method no attempt is made to exercise experimental or statistical control and phenomena related to the unit are studied in Methods of data collection Experimental or laboratory methods Non experimental methods Simulation Lab methods Field expt Field methods Library methods Sample case Field Census Surveys study study

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…

SUCCESS

Non-probability sampling is any sampling method where some elements of the population have no chance of selection (also referred to as “out of coverage”/”undercovered”), or where the probability of selection can't be accurately determined. It yields a non-random sample therefore making it difficult to extrapolate from the sample to the population. They include; Judgement sample, purposive sample, convenience sample: subjective Snow-ball sampling: rare group/disease study

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… Proverbs 21:5 The plans of the diligent lead to profit as surely as haste leads to poverty Page 6 1.4.1 Sampling Procedure Sampling involves two tasks  How to select the elements?  How to estimate the population characteristics – from the sampling units? We employ some randomization process for sample selection so that there is no preferential treatment in selection which may introduce selectivity bias 1.4.2 Reasons Behind sampling (i) Cost; the sample can furnish data 0f sufficient accuracy at much lower cost. (ii) Time; the sample provides information faster than census thus ensuring timely decision making. (iii) Accuracy; it is easier to control data collection errors in a sample survey as opposed to census. (iv) Risky or destructive test call for sample survey not census eg testing a new drug.

1.4.3 Probability Sampling Techniques

a)... Simple Random Sampling (SRS) In this design, each element has an equal probability of being selected from a list of all population units (sample of n from N population). Though it’s attractive for its simplicity, the design is not usually used in the sample survey in practice for several reasons: (i) Lack of listing frame: the method requires that a list of population elements be available, which is not the case for many populations. (ii) 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. (iii) Not cost effective: SRS requires covering of whole population which may reside in a large geographic area; interviewing few samples spread sparsely over a large area would be very costly.

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… Proverbs 21:5 The plans of the diligent lead to profit as surely as haste leads to poverty Page 8

An alternative procedure is to keep k non-integer and continue the sample

selection as follows: Let us consider, k=5.71, and r=4. So, the first sample is 4th

in the list. The second = (4+5.71) =9.71 ~9th in the list, the third =(4+2*5.71)

=15.42 ~ 15th in the list, and so on. (The last sample is: 4+5.71*(175-1) = 997.

~ 997th in the list). Note that, k is switching between 5 and 6

Advantages:

Systematic sampling has many attractiveness:

(i) Provides a better random distribution than SRS

(ii) Simple to implement

(iii)May be started without a complete listing frame (say, interview of every 9th patient

coming to a clinic).

(iv) With ordered list, the variance may be smaller than SRS (see below for exceptions

Disadvantages:

(i) Periodicity (cyclic variation)

(ii) linear trend

i.

When to use systematic sampling? i) Even preferred over SRS ii) When no list of population exists iii) When the list is roughly of random order iv) Small area/population

c)..Stratified Sampling

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; i) Population groups may have different values for the responses of interest. ii) we want to improve our estimation for each group separately. iii) To ensure adequate sample size for each group. In stratified sampling designs: i) Stratum variables are mutually exclusive (no over lapping), e.g., urban/rural areas, economic categories, geographic regions, race, sex, etc. The principal objective of stratification is to reduce sampling errors.

ii) The population (elements) should be homogenous within-stratum, and the population

(elements) should be heterogeneous between the strata.

Advantages (i) Provides opportunity to study the stratum; variations - estimation could be made for each stratum (ii) Disproportionate sample may be selected from each stratum (iii) The precision is likely to increase as variance may be smaller than simple random case with same sample size (iv) Field works can be organized using the strata (e.g., by geographical areas or regions) (v) Reduce survey costs. Disadvantages (i) Sampling frame is needed for each stratum

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…

SECCESS

(ii) Analysis method is complex (iii) Correct variance estimation (iv) Data analysis should take sampling “weight” into account for disproportionate sampling of strata (v) Sample size estimation is difficult in practice Allocation of Stratified Sampling The major task of stratified sampling design is the appropriate allocation of samples to different strata. Types of allocation methods : (i) Equal allocation (ii) Proportional to stratum size (iii) Cost based sample allocation Equal Allocation

Divide the number of sample units n equally among the K strata. ie ni  kn^ Example: n = 100 and k= 4

strata ni   25 units in each stratum.

Disadvantages of equal allocation: May need to use weighting to have unbiased estimates Proportional allocation

Make the proportion of each stratum sampled identical to the proportion of the population. Ie

Let the sample fraction be f= n/N. So, ni  fNi  n NNi^ , Where NNi^ is the stratum weight.

Example: N = 1000, n = 100 f   0.1 now suppose N 1  700 and N 2  300 then n 1  7000.1 70 and n 2  3000.3 30 Disadvantage of proportional allocation: Sample size in a stratum may be low thus providing unreliable stratum-specific results. d)..Cluster Sampling In many practical situations the population elements are grouped into a number of clusters. A list of clusters can be constructed as the sampling frame but a complete list of elements is often unavailable, or too expensive to construct. In this case it is necessary to use cluster sampling where a random sample of clusters is taken and some or all elements in the selected clusters are observed. Cluster sampling is also preferable in terms of cost, because it is much cheaper, easier and quicker to collect data from adjoining elements than elements chosen at random. On the other hand, cluster sampling is less informative and less efficient per elements in the sample, due to similarities of elements within the same cluster. The loss of efficiency, however, can often be compensated by increasing the overall sample size. Thus, in terms of unit cost, the cluster sampling plan is efficient. e)..Multi-Stage Samples Here the respondents are chosen through a process of defined stages. Eg residents within Kibera (Nairobi) may have been chosen for a survey through the following process: Throughout the country (Kenya) the Nairobi may have been selected at random, ( stage 1), within Nairobi, Langata (constituency) is selected again at random (stage 2), Kibera is then selected within

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…

SECCESS

desks. Whilst a probability sampling technique would have been preferred, the convenience sample was the only sampling technique that you could use to collect data. Irrespective of the disadvantages of convenience sampling, discussed below, without the use of this sampling technique, you may not have been able to get access to any data on employee satisfaction in the organisation. Disadvantages of convenience sampling

  • The convenience sample often suffers from a number of biases. This can be seen in both of our examples, whether the 10,000 students we were studying, or the employees at the large organisation. In both cases, a convenience sample can lead to the under-representation or over-representation of particular groups within the sample. If we take the large organisation: It may be that the organisation has multiple sites, with employee satisfaction varying considerably between these sites. By conducting the survey at the headquarters of the organisation, we may have missed the differences in employee satisfaction amongst those at different sites, including non-office workers. We also do not know why some employees agreed to take part in the survey, whilst others did not. Was it because some employees were simply too busy? Did they not trust the intentions of the survey? Did others take part out of kindness or because they had a particular grievance with the organisation? These types of biases are quite typical in convenience sampling.
  • Since the sampling frame is not know , and the sample is not chosen at random , the inherent bias in convenience sampling means that the sample is unlikely to be representative of the population being studied. This undermines your ability to make generalisations from your sample to the population you are studying. If you are an undergraduate or master’s level dissertation student considering using convenience sampling , you may also want to read more about how to put together your sampling strategy [see the section: Sampling Strategy

b)..Quota Sampling

Quota sampling is designed to overcome the most obvious flaw of availability sampling. Rather than taking just anyone, you set quotas to ensure that the sample you get represents certain characteristics in proportion to their prevalence in the population. Note that for this method, you have to know something about the characteristics of the population ahead of time. Say you want to make sure you have a sample proportional to the population in terms of gender - you have to know what percentage of the population is male and female, then collect sample until yours matches. Marketing studies are particularly fond of this form of research design. The primary problem with this form of sampling is that even when we know that a quota sample is representative of the particular characteristics for which quotas have been set, we have no way of knowing if sample is representative in terms of any other characteristics. If we set quotas for gender and age, we are likely to attain a sample with good representativeness on age and gender, but one that may not be very representative in terms of income and education or other factors. Moreover, because researchers can set quotas for only a small fraction of the characteristics relevant to a study quota sampling is really not much better than availability sampling. To reiterate, you must know the characteristics of the entire population to set quotas; otherwise there's not much point to setting up quotas. Finally, interviewers often introduce bias when allowed to self-select respondents, which is usually the case in this form of research. In choosing males 18-25, interviewers are more likely to

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… Proverbs 21:5 The plans of the diligent lead to profit as surely as haste leads to poverty Page 12 choose those that are better-dressed, seem more approachable or less threatening. That may be understandable from a practical point of view, but it introduces bias into research findings. Imagine that a researcher wants to understand more about the career goals of students at a single university. Let’s say that the university has roughly 10,000 students. suppose we were interested in comparing the differences in career goals between male and female students at the single university. If this was the case, we would want to ensure that the sample we selected had a proportional number of male and female students relative to the population. To create a quota sample, there are three steps: Choose the relevant grouping chsr and divide the population accordingly gender Calculate a quota (number of units that should be included in each for group Continue to invite units until the quota for each group is met Advantages of quota sampling i) It particularly useful when you are unable to obtain a probability sample, but you are still trying to create a sample that is as representative as possible of the population being studied. In this respect, it is the non-probability based equivalent of the stratified random sample. ii) Unlike probability sampling techniques, especially stratified random sampling, quota sampling is much quicker and easier to carry out because it does not require a sampling frame and the strict use of random sampling techniques. iii) The quota sample improves the representation of particular strata ( groups ) within the population , as well as ensuring that these strata are not over-represented. For example, it would ensure that we have sufficient male students taking part in the research (60% of our sample size of 100; hence, 60 male students). It would also make sure we did not have more than 60 male students, which would result in an over-representation of male students in our research. iv) It allows comparison of groups. Disadvantages of quota sampling i) In quota sampling, the sample has not been chosen using random selection , which makes it impossible to determine the possible sampling error. ii) this sampling bias. Thus no statistical inferences from the sample to the population. This can lead to problems of external validity. iii) Also, with quota sampling it must be possible to clearly divide the population into strata ; that is, each unit from the population must only belong to one stratum. In our example, this would be fairly simple, since our strata are male and female students. Clearly, a student could only be classified as either male or female. No student could fit into both categories (ignoring transgender issues).

c)..Purposive Sampling

Purposive sampling is a sampling method in which elements are chosen based on purpose of the study. Purposive sampling may involve studying the entire population of some limited group or a subset of a population. As with other non-probability sampling methods, purposive sampling does not produce a sample that is representative of a larger population, but it can be exactly what is needed in some cases - study of organization, community, or some other clearly defined and relatively limited group. Advantages of purposive sampling i) There are a wide range of qualitative research designs that researchers can draw on. Achieving the goals of such qualitative research designs requires different types of sampling strategy and sampling technique. One of the major benefits of purposive sampling is the wide range of sampling

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… Proverbs 21:5 The plans of the diligent lead to profit as surely as haste leads to poverty Page 14 Advantages of Snowball Sampling (i) The chain referral process allows the researcher to reach populations that are difficult to sample when using other sampling methods. (ii) The process is cheap, simple and cost-efficient. (iii) This sampling technique needs little planning and fewer workforce compared to other sampling techniques.

Disadvantages of Snowball Sampling

(i) The researcher has little control over the sampling method. The subjects that the researcher can obtain rely mainly on the previous subjects that were observed. (ii) Representativeness of the sample is not guaranteed. The researcher has no idea of the true distribution of the population and of the sample. (iii) Sampling bias is also a fear of researchers when using this sampling technique. Initial subjects tend to nominate people that they know well. Because of this, it is highly possible that the subjects share the same traits and characteristics, thus, it is possible that the sample that the researcher will obtain is only a small subgroup of the entire populatio 1.4.5 Limitations of Sampling a) Sampling frame: may need complete enumeration b) Errors of sampling may be high in small areas c) May not be appropriate for the study objectives/questions d) Representativeness may be vague, controversial

1.5 Survey Administration

a)..Self-Administered Surveys Self-administered surveys have special strengths and weaknesses. They are useful in describing the characteristics of a large population and make large samples feasible. Advantages: i) Low cost****. Extensive training is not required to administer the survey. Processing and analysis are usually simpler and cheaper than for other methods. ii) Reduction in biasing error****. The questionnaire reduces the bias that might result from personal characteristics of interviewers and/or their interviewing skills. iii) Greater anonymity. Absence of an interviewer provides greater anonymity for the respondent. This is especially helpful when the survey deals with sensitive issues. iv) Convenience to the respondents (may complete any time at his/her own convenient time) v) Accessibility (greater coverage, even in the remote areas) vi) May provide more reliable information (e.g., may consult with others or check records to avoid recall bias) Disadvantages: i) Requires simple questions****. The questions must be straightforward enough to be comprehended solely on the basis of printed instructions and definitions. ii) No opportunity for probing****. The answers must be accepted as final. Researchers have no opportunity to clarify ambiguous answers. iii) Low response rate; respondents may not respond to all questions and/or may not return questionnaire iv) The respondent must be literate to read and understand the questionnaire v) Introduce self selection bias vi) Not suitable for complex questionnaire

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…

SECCESS

b).. .Interview Surveys Unlike questionnaires interviewers ask questions orally and record respondents’ answers. This type of survey generally decreases the number of ―”do not know” and ―”no answer” responses, compared with self-administered surveys. Interviewers also provide a guard against confusing items. If a respondent has misunderstood a question, the interviewer can clarify, thereby obtaining relevant responses. Interviewer selection: background characteristics (race, sex, education, culture) listening skill recording skill experience unbiased observation/recording Interviewer training: be familiar with the study objectives and significance thorough familiarity with the questionnaire contextual and cultural issues privacy and confidentiality informed consent and ethical issues unbiased view mock interview session Supervision of the interviewer: Spot check Questionnaire check Reinterview (reliability check) Advantages i) Flexibility****. Allows flexibility in the questioning process and allows the interviewer to clarify terms that are unclear. ii) Control of the interview situation****. Can ensure that the interview is conducted in private, and respondents do not have the opportunity to consult one another before giving their answers. iii) High response rate. Respondents who would not normally respond to a mail questionnaire will often respond to a request for a personal interview. iv) May record non-verbal behaviour, activities, facilities, contexts v) Complex questionnaire may be used vi) Illiterate respondents may participate Disadvantages i) Higher cost****. Costs are involved in selecting, training, and supervising interviewers; perhaps in paying them; and in the travel and time required to conduct interviews. ii) Interviewer bias****. The advantage of flexibility leaves room for the interviewer’s personal influence and bias, making an interview subject to interviewer bias. iii) Lack of anonymity****. Often the interviewer knows all or many of the respondents. Respondents may feel threatened or intimidated by the interviewer, especially if a respondent is sensitive to the topic or to some of the questions. iv) Less accessibility v) Inconvenience vi) Often no opportunity to consult records, families, relatives c).. Telephone Interview Advantages: (i) Less expensive (ii) Shorter data collection period than personal interviews (iii) Better response than mail surveys Disadvantages: (i) Biased against households without telephone, unlisted number (ii) Nonresponse (iii) Difficult for sensitive issues or complex topics (iv) Limited to verbal responses d)… Focus Groups A focus group typically can be defined as a group of people who possess certain characteristics and provide information of a qualitative nature in a focused discussion. They ars generally composed of six to twelve people. Size is conditioned by two factors: the group must be small enough for everyone to

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…

2. Data Presentation 2.1 Frequency Distributions Tables

Definitions

Raw Data: unprocessed data ie data in its original form.

Frequency Distribution: The organization of raw data in table form with classes and

frequencies. Rather it’s a list of values and the number of times they appear in the data

set. We have grouped and ungrouped frequency distribution tables for large and small data

sets respectively.

2.1.1 Construction of Ungrouped Frequency Distributions

  • Note the largest and smallest observations in the data
  • Starting with the smallest value, tally the observations of each quantity.
  • Count the number of tallies for each quantity and record it as frequency. Example: Construct an ungrouped frequency table for the data below 16 14 15 13 12 14 16 15 15 14 17 16 13 16 15 14 18 13 15 17 Solution Value 12 13 14 15 16 17 18 Tally / /// //// //// //// // / Frequency 1 3 4 5 4 2 1 Note ; when tallying //// is used for 5 counts and 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.

Steps in construction

  • Select the number of classes k. Choose the smallest integer k such that

2 k^    n k

log n

Eg if n = 30 k 

log

 k 5 log2 log

  • Identify the largest and smallest observation and compute the ranrge R=largest – smallest

value.

  • Identify the smallest unit of measurement (u) used in the data collection (ie the accuracy of

the measurement.)

Eg for the data 10 30 20 50 30 60 u=10 For the data 12 15 11 17 13 u=1 For

the data 1.6 3.2 2.8 5.6 3.5 1.6 u=0.

  • Estimate the class width/interval. i = round up   Rk to the nearest uEg round up 3.13 t

the nearest 0.1 is 3.

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… Proverbs 21:5 The plans of the diligent lead to profit as surely as haste leads to poverty Page 18

  • Pick the starting value (lower class limit of the 1st^ class (LCL 1 )) as the smallest value used

in the computation of R above. Successive LCLs are got by adding I to the previous LCL

  • Find the upper class limit of the 1st^ class (UCL 1 )) by subtracting u from LCL 2. Successive

UCLs are got by adding I to the previous UCL

  • If necessary find the class boundaries as follows LCBLCLu and UCBUCLu
  • Tally the number of observations falling in each class and record the frequency.

NB a value x fall into a class LCL UCL  if LCB   x UCB

Example 1

Organize the data below into a grouped frequency table.

23.2 21.6 20.8 29.8 24.5 28.4 13.5 17.1 27.1 27.9 Solution

u  0.1 n  40   k   k 6 Range = 32.8-9.2  23.

i = round up   to the nearest 0.1  4.

Now LCL = 9.2 1  LCL 2  13.2 LCL 3  17.2 etc

 UCL 1  LCL 2   u 13.2  0.1 13.1, UCL 2  17.1 UCL 3  21.1 etc

The frequency table is as shown belo

Class Boundaries tally Freq C.F

Sometimes due to convenience, it may be necessary to slightly lower the starting value. Eg in

the above case we may use 9.0 in place of 9.2.

Example 2

These data represent the record high temperatures in degrees Fahrenheit (F) for each of the 50

states. Construct a grouped frequency distribution for the data.

Solution

u  1 n  50   k   k 6 Range =134- 100  34

i = round up   to the nearest 1  6

Now LCL = 1 100  LCL 2  106 LCL 3  112 etc