Application of Computer in Economics
Application of Computer in Economics
Course: DE-403(ii)
Course teacher
Dept. of Economics,
B.B. Ambedkar University
Rae Bareli Road, Lucknow-25
Contents of Introductions
• Definitions
• Features or characteristics
• Basic computer Organization/ Components
• Evolution
Definitions
• The word computer has been derived from the word
“compute”, means to calculate with high speed.
Original objectives
• To create a fast calculating machine
• Now-a-days, 80 % of data are for non-mathematics.
• It is created for operation of information and data, bio-data,
railway tickets, air tickets, govt. data base.
• What the computer does,
• Store the data
• Process the data
• Retrieve the data (data processor)
Characteristics of Computer
• High speed Million: seconds (1/10000), micro seconds
(1/10000000), nano seconds (1/10 000000000), piso seconds
(1/10 000 000 000 000).
• Accuracy: error occurs due to human rather than
technological weakness.
• Diligence: it is lack of monotony, tiredness, lack of
concentration.
• Versatility: different type of work.
• Power of remembering: it can store and remember any
amount of information.
• No I.Q: it does not have intelligence
• No feelings: no heart, no taste, no knowledge and experience
Evolution of Computer
• Necessary is the mother of invention.
• The earliest one that qualifies “abaccus” or “soroban”. It was
invented in 600 B.C.
• It does only addition, subtraction with little speed.
• Manual Calculating device: John Napier’s Card Board- 17th
century and updated in 1890 AD.
• First mechanical machine by Blair Pascal in 1642 AD.
• Baron Gottfried: German’s first calculator for multiplication.
• Key Board originated in 1880 AD in USA.
• Herman Hollerith: Punched cards are extensively used a input
media in modern digital computer.
Basic Computer’s Organization
• Five important operations:
1. Inputting
2. Storing
3. Processing
4. Outputting
5. Controlling
Therefore, five important functional units or blocks.
6. Input Unit:
• Data and information must be given through outside device.
• Through Key Board
• All the data and instruction are transformed into binary
codes/acceptable form, those are saved in primary memory.
• It supplies the converted instructions and data to the
computer system for further processing.
Basic Computer’s Organization cont ….
2. Output Unit:
• It is reverse of input Unit
• It accept the result produced by the computer, which are in
coded form and can not be easily understand by us.
• It convert from binary form to the human acceptable form.
• It is designed to the external environment through printer etc.
• It supplies information and results of the computer to the
outside world.
3. Storage Unit:
• All the data and instructions to be stored and kept for
processing (received from input device)
• It stores the intermediate results for processing.
• Final results of processing before these results are released to
be an output device.
Basic Computer’s Organization cont ….
4. Arithmetic Logic Unit
• It is the place where actual execution of instruction are taken
place.
• All the calculations are performed and all decisions are made
in ALU
• All data and instructions are stored in the primary storage
prior to the processing are transferred as and when needed to
ALU.
• Intermediate results are generated in the ALU are temporarily
transferred back to primary storage.
• All the ALU are designed to perform the four basic arithmatic
operations, +, -, X, / and all the logic operation, / , >, <,
Basic Computer’s Organization cont ….
5. Control Unit:
• It is central nervous system in the computer.
• It abtain instructions from the programme stored in main
memory, interpret the instructions and issues signal that
cause other units of the system to execute.
• It acts as selection, interpretation and execution of
instruction.
• Central Processing Units (CPU)
• CU + ALU = CPU
References
• P.K. Sinha (latest), Computer Fundamentals,
BPB Publications, New Delhi.
Goals of the chapter
• This chapter deals with
• Various Generations Computers
• Types of computers
Generations of Computers
3rd About 100 hours FORTRAN IV, COBOL DBMS, On line system
68
Shared Memory
Communication Network
Data Conversion
Input Unit
Output Unit
• These are not considered as a part of the main memory and are used
to retain information on a temporary basis.
Function Cont……..
Sl. NO Name of register Function
2 Memory Buffer (MBR) Hold information on its way to and from memory
Sanatan Nayak
L-4
DE/SAS, BBAU
Sampling Difference in Quantitative and
Qualitative Research
Quantitative Research Qualitative Research
Non-Random/Non-
Random/Probability Mixed Sampling
probability
Sim StraD
i
ple Ptifie S Clus
s
Ran r d i ter M Quata Systematic
p
dom oRanr n
u
pdom g D
l
o o l o
t
p
r o e u i
t - Judgemental
r b s
i s l
o t t e t
i a
n o a
a n g
g Accident
t e
e
e a al
t
e
Types of Sample Design
A. Random/Probability Sampling:
1. Each element in the population has an equal and independent
chance in selection of the sample.
2. Equality means, the probability of selection of each element is
same.
3. Independence means choice of an sample does not depend upon
choice of other element.
4. Exa: Students of 80 in a class, where 20 are interested for your
study (equality). Five close friends and one is included
(independent)
Advantages:
5. As they represent the total sampling population, the inference
drawn from such samples can be generalised to the total population
sample.
6. Statistical test based upon the theory of probability can be applied
to data collected from random sampling.
Types of Sample Design
B. Non-Random/Non-Probability Sampling:
• When either the number of elements in a population is
unknown or elements cannot be individually identified.
There are six methods used in qualitative and quantitative
methods.
1. Quota Sampling
2. Accidental Sampling
3. Convenience Sampling
4. Judgemental or Purposive Sampling
5. Expert Sampling
6. Snowball Sampling
Types of Sample Design
C. Systematic /Mixed Sampling:
• It has characteristics of both random and non-
random methods.
• Suppose 10% sample would be selected from
50 population. then, every 5th item would be
selected from the population.
Specific Random/Probability Sample Designs
• Simple Random Sampling
• Stratified Sampling
• Cluster Sampling
• Sequential Sampling
• Area Sampling
• Multi Stage Sampling
• Sampling with Probability Proportional to Size
Specific Random/Probability Sample Designs
• Random/Probability Samplings:
• The Fishbowl Draw:
• Computer Programme:
• Table of Randomly generated Numbers:
• No of Samples= N(N-1)....(N-n+1)/n!
• Probability of getting a sample =n!/N(N-1)....
(N-n+1)
A. Specific Random/Probability Sample Designs
• Stratified Random Sampling:
• To reduce the variability or heterogeneity in the large sample
population is the objective.
1. If population is not homogenous group, then SST is normally
applied.
2. The population is divided in to many sub-population, which
is called strata. Population within stratum is homogeneous,
but across stratum, it is heterogeneous.
3. SST is more reliable and provides detailed information.
• Important Questions on Stratified Sampling Techniques:
1. How to form a strata?
2. How should items be selected from each stratum?
3. How to allocate the sample size of each stratum?
A. Specific Random/Probability Sample Designs
• How to form a strata?
1. The elements within strata must be homogeneous.
2. It is done based on experience of the researcher.
3. Pilot study needs to be done carefully.
• How should items be selected from each stratum?
1. Either random sampling method or systematic sampling will
be applied.
• How many sample or How to allocate the sample size of
each stratum?
1. Proportional sampling method.
• Exa: Total population= 8000, population of three stratum,
P1=4000, P2=2400, P3=1600, total sample size, n=40,
Pi= proportion of population in each stratum, then how to
calculate sample size in each stratum?
A. Specific Random/Probability Sample Designs
• How many sample or How to allocate the sample size of
each stratum?
1. Then, how to handle when comparison is made across
stratum along with variability in size and elements?
2. Then, disproportionate sampling design is required.
Proportionately larger sample in larger strata and smaller
sample in smaller strata.
3. Write the Formula:
4. This method is called optimum allocation of samples through
disproportionate sampling.
5. Example:
6. Then how to optimise cost?
A. Specific Random/Probability Sample Designs
• Cluster Sampling:
• In case of large population of one city or a country CS is taken.
1. Conveniently and randomly take a smaller area of one
bigger area, i.e., cluster.
2. Clusters are visible or easily identifiable small group in a
geographical proximity or common characteristics.
3. Sampling from each cluster can be done through SRS or
systematic sampling.
4. Exa: Problems of higher education in the country.
5. Clustering sampling is extremely useful for random sampling.
A. Specific Random/Probability Sample Designs
• Different Stages of Cluster Sampling:
1. CS may be start from country or territory level. Then choose
similar state based on socio-economic profile or all states.
2. Then, select one or more educational institutions of higher
education.
3. Then, one or more academic programme from each
institution may be selected.
4. Students of a particular academic year to be taken.
5. Proportionate basis students may be identified.
A. Specific Random/Probability Sample Designs
• Area Sampling:
1. If cluster happens to be an geographical area,
then CS known as AS.
A. Specific Random/Probability Sample Designs
• Multi Stage Sampling:
1. It is based on the principle of cluster sampling.
2. Bank Efficiency in India.
• First, select a state, then select many districts. Then chose all
banks in the chosen districts. Two stage sampling.
• Then add certain towns, and interview all banks. Three stage
sampling.
• If banks are selected on sample basis from selected towns,
then four stage.
• If random is on all stages, that is called multi stage random
sampling method.
A. Specific Random/Probability Sample Designs
• Sampling with Probability Proportional to Size:
1. If cluster sampling units do not have the same number, then
random selection process, where probability of each cluster
being included in sample.
2. The actual cluster selected in this way do not refer to
individual elements but it indicates which cluster and how
many are selected from each cluster.
3. Exa. There are 15 cities and cluster of stores in each city.
Select 10 stores from the 15 cities.
A. Sampling with Probability Proportional to Size
City No. Of depart. stores Cumulative Sample
1 35 35 10
2 17 52
3 10 62 60
4 32 94
5 70 164 110, 160
6 28 192
7 26 218 210
8 19 237
9 26 263 260
10 66 329 310
11 37 366 360
12 44 410 410
13 33 443
14 29 472 460
15 28 500
A. Specific Random/Probability Sample Designs
• Sequential Sampling
1. It is complex in nature. Ultimate sample is not fixed and
depend the information yielded as survey progress.
2. If a particular lot is selected or rejected based on single
sample, it is called single sample.
3. If decision is taken on the basis of two samples, it is called
double sample.
4. If decision is taken on the basis of many samples but
sample size is certain and known in advance, it is called
multiple sampling.
5. If decision is taken on the basis of many samples but
sample size is not certain and not known in advance, it is
called sequential sampling.
B. Non-Random/Non-Probability Samplings
• It does not follow the theory of probability in the selection of
elements.
• Other considerations are required for selection of elements.
• There are six methods used in qualitative and quantitative
methods for non-probability samplings.
1. Quota Sampling
2. Accidental Sampling
3. Convenience Sampling
4. Judgemental or Purposive Sampling
5. Expert Sampling
6. Snowball Sampling
B. Non-Random/Non-Probability Samplings
1. Quota Sampling:
• Based on easy access and convenience on visible
characteristics such as gender, race, caste etc.
• Process will continue till you have easy access to required
number of respondents.
• Advantages:
• Least expensive and no sampling frame.
• Disadvantages:
• No probability sampling and can not be generalised.
2. Accidental Sampling
• Similar to Quota sampling but not based visible
characteristics.
• Stop collecting data when required number are done.
• It is mostly applied in the area of market research and
newspaper reports.
B. Non-Random/Non-Probability Samplings
• Convenience Sampling:
• Similar to accidental Sampling but geographical proximity,
known contacts, ready approval etc are main criteria.
• Qualitative Research:
• Sample size is less important in qualitative research.
• Sampling design may be on purposive, judgemental, expert,
accidental and snowball method.
Bias and Error
• Difference between sample mean and population mean is
called error.
• It caused due to sampling selection.
• There are large number of errors as there are many
alternative samples.
• Therefore, there is possibility to have one summary of
measure of sample error, which is called as Mean Square
Error (MSE).
• However, bias and error can take place at data collection, data
entry and analysis. These errors are called Non-Sampling
Errors. These errors are taken place in sampling as well as
Census.
• There is difference between error and bias, however both
affect MSE.
Bias and Error
Primary Secondary
Experime Observa
nt
Survey tion
6
Collection of Data Through Questionnaire
• Multi-colinearity
• corr mpce hhnntotal new_edu_male
new_edu_female new_land [w=weight]
• Auto-correlation
• vif (variance influential factor)
Dummy Regression
• Anova Model:
• Create a dummy variable, by using
• Does gender play any discriminatory role ?
• Tab gender, gen(gender)
• Table gender, c(mean mpce, sd mpce min mpce max mpce)
• regress mpce gender1 [w=weight]
• regress mpce gender1 [w=weight] if state==9
• regress mpce gender1 [w=weight] if district==927
• regress mpce gender1 [w=weight] if district==927 & sector==2
• regress mpce gender1 [w=weight] if district==927 & sector==1
• Does Caste plays any discriminatory role ?
• Tab caste, gen(caste)
• Table caste, c(mean mpce, sd mpce min mpce max mpce)
Dummy Regression
• Ancova M
• How gender and family size impact on the MPCE?
• regress mpce gender1 hhnototal [w=weight]
• regress mpce gender1 hhnototal [w=weight] if state==9
• regress mpce gender1 hhnototal [w=weight] if
district==927
• regress mpce gender1 hhnototal [w=weight] if
district==927 & sector==2
• regress mpce gender1 hhnototal [w=weight] if
district==927 & sector==1
• How Caste and Family Size impact on the MPCE?
• Tab caste, gen(caste)
• regress mpce caste1 caste2 caste3 hhnototal [w=weight]
How to estimate poverty line
• See Rangarajan Commitee Report, p.4
• Rs.972 for rural areas and Rs.1407 for urban areas
• recode mpce (0/972=1) (972.01/174286=2) if sector==1 , gen (pov_r)
• recode pov_r (. = 0)
• recode mpce (0/1407=1) (1407.01/174286=2) if sector==2 , gen (pov_u)
• recode pov_u (. = 0)
• gen pov_i= pov_r + pov_u
• label var mpce "Monthly Per Capita Expenditure"
• label var pov_r "Poverty in Rural Sector"
• label var pov_u "Poverty in Urban Sector"
• label var pov_i "Poverty in Both Sector"
• label define pov_r 1 "Below Poverty Line" 2 "Above Poverty Line"
• label values pov_r pov_r
• label define pov_u 1 "Below Poverty Line" 2 "Above Poverty Line"
• label values pov_u pov_u
• label define pov_i 1 "Below Poverty Line" 2 "Above Poverty Line"
• label values pov_i pov_i
How to Estimate Logit Model
• Caste and Household Size
• label list caste
• recode caste 1/3=1 9=2, gen(new_caste)
• tab new_caste
• tab new_caste, gen (new_caste)
• logit pov_i1 new_caste1
• logit pov_i1 new_caste1, or
• logit pov_i1 new_caste1 hhnototal
• logit pov_i1 new_caste1 hhnototal, or
• Male Education
• label list highestedumale
• recode highestedumale 1/6=1 7/10=2, gen(new_highestedumale)
• tab new_highestedumale
• tab new_highestedumale, gen (new_highestedumale)
• logit pov_i1 new_caste1 hhnototal new_highestedumale
• logit pov_i1 new_caste1 hhnototal new_highestedumale, or
How to Estimate Logit Model
• Female Education
• label list highestedufemale
• recode highestedufemale 1/6=1 7/10=2, gen(new_highestedufemale)
• tab new_highestedufemale
• tab new_highestedufemale, gen (new_highestedufemale)
• logit pov_i1 new_caste1 hhnototal new_highestedumale new_highestedufemale
• logit pov_i1 new_caste1 hhnototal new_highestedumale new_highestedufemale, or
• Occupation
• recode occupation 1/2=1 3=9 4=2 5=3 6=4, gen(new_occupation)
• recode new_occupation 1/2=1 3/9=2, gen(new_occupation1)
• tab new_occupation1
• label define new_occupation1 1"agriculture" 2"non_agriculture"
• label value new_occupation1 new_occupation1
• tab new_occupation1
• logit pov_i1 new_caste1 hhnototal new_highestedumale new_highestedufemale
new_occupation1
• logit pov_i1 new_caste1 hhnototal new_highestedumale new_highestedufemale
new_occupation1, or
How to Estimate Logit Model
• Religion
• tab religion
• label list religion
• recode religion 1=1 2/9=2, gen(new_religion)
• logit pov_i1 new_caste1 hhnototal new_highestedumale new_highestedufemale
new_occupation1 new_religion
• logit pov_i1 new_caste1 hhnototal new_highestedumale new_highestedufemale
new_occupation1 new_religion, or
• Land Possession
• tab landpossessed
• recode landpossessed 1/5=1 6/12=2, gen(new_land)
• label define new_land 1"marginal" 2"others"
• label value new_land new_land
• tab new_land
• logit pov_i1 new_caste1 hhnototal new_highestedumale new_highestedufemale
new_occupation1 new_religion new_land
• logit pov_i1 new_caste1 hhnototal new_highestedumale new_highestedufemale
new_occupation1 new_religion new_land, or
How to Estimate Logit Model
• Status of Dwelling
• tab tstatusdwelling
• label list tstatusdwelling
• recode tstatusdwelling 1=1 2/9=2, gen(new_tenure)
• label value new_tenure new_tenure
• label define new_tenure 1"owned" 2"others"
• label value new_tenure new_tenure
• logit pov_i1 new_caste1 hhnototal new_highestedumale
new_highestedufemale new_occupation1 new_religion
new_land new_tenure
• logit pov_i1 new_caste1 hhnototal new_highestedumale
new_highestedufemale new_occupation1 new_religion
new_land new_tenure, or
How to estimate Multi Dimensional Poverty
Example of MPI calculation using Hypothetical data
Indicators Household Weights
1 2 3 4 5
Household Size 3 7 6 5 4
V1: 0 0 0 0 0 (1/4)*(1/2)= 0.125
The Household has any undernourished (BMI
<18.5) ever married women (15 – 49 years)
V2: The non- salaried household does not have any 1 0 0 1 0 (1/4)*(1/2)= 0.125
health insurance
Education
V3: No one has completed five years of schooling 0 1 0 1 1 (1/4)*(1/2)= 0.125
(15 years and above)
V4: At least one school- age child not enrolled in 0 0 1 0 0 (1/4)*(1/2)= 0.125
school (6 – 14 years of age)
Economic Dimension
V5: If the household falls below the consumption 0 1 0 0 0 (1/4)*(1/2)= 0.125
expenditure threshold limit
V6: Any member in the household (15+) has not 1 1 0 1 0 (1/4)*(1/2)= 0.125
worked 183 days or more in the year preceding
the survey
Household Environmental Condition
V7: No access to clean drinking water 0 0 1 1 0 (1/4)*(1/2)= 0.125
V8: No access to improved sanitation 1 1 0 0 0 (1/4)*(1/2)= 0.125
Results
Weighted count of deprivation, c(sum of each
deprivation multiplied by its weight)
Is the household poor (c>0.250) Yes Yes No Yes No
Note: 1 indicates deprivation in the indicator; 0 indicates non- deprivation
How to estimate Multi Dimensional Poverty
• Weighted count of deprivation in household 1:
• c = (1*0.125) + (1*0.125)+ (1*0.125) = 0.375
• Head Count Ratio:
• H= = 0.60
• (60 % of the population are multidimensional
poor)
• Intensity of Poverty:
• A= = 0.475
• (The average poor person is deprived in 47.5 % of
the weighted indicators)
• Multidimensional poverty index:
• MPI= H*A= 0.60*0.475 = 0.285
NSSO: An Overview