Professional Documents
Culture Documents
AgEcon Search
http://ageconsearch.umn.edu
aesearch@umn.edu
Papers downloaded from AgEcon Search may be used for non-commercial purposes and personal study only.
No other use, including posting to another Internet site, is permitted without permission from the copyright
owner (not AgEcon Search), or as allowed under the provisions of Fair Use, U.S. Copyright Act, Title 17 U.S.C.
AGRICULTURAL
ECONOMICS
ELSEVIER Agricultural Economics 12 (1995) 91-98
Abstract
The purpose of this paper is to investigate the preference change in the demand for meat subject to random
coefficients in Saudi Arabia. A Fortran 77 program has been designed to estimate the demand function for meat
using Kalman filtering techniques and maximum likelihood approach. The initial values of the coefficient and
covariance estimates are an essential prior information in the Kalman filtering techniques. Results provide
substantial random coefficients in red meat, implying important structural change occurs in red meat more than
poultry and fish demand.
0169-5150 j95 j$09.50 © 1995 Elsevier Science B.V. All rights reserved
SSDI 0169-5150(94)00031-X
92 S.H. Al-Kahtani, B.E.E. Sofian I Agricultural Economics 12 (1995) 91-98
dom coefficient will help analyzing this change in trix of t observations on P independent vari-
the demand for meat in Saudi Arabia. ables, {3 1 = a(P * 1) the vector of coefficients, and
e 1 = a(N * 1) the vector of the disturbance term,
normally distributed with zero mean and scalar
variance, with t = 1, 2, ... , T and i = 1, 2, ... , N.
2. Model
The dynamic evolution of the /3 1 vector is
assumed to follow a random walk with zero drift
Economists usually used classical ordinary through time for a specific dependent variable
least-squares with fixed-parameter over sample (Garbade, 1977):
observations to estimate demand functions. How-
ever, this assumption is too restrictive with chang- (3)
ing in preferences in demand functions if there is
large variation in income and prices. Random ( 4)
coefficient models are more adequate to study where u 1 = a(P * 1) is a random vector, serially
the structural change in demand functions. uncorrelated with e~' and [1 = a stationary co-
Econometricians are able to relax the constant variance ratio matrix of the innovation U 1 • If
coefficient assumption in the linear model to [1 = 0 (no process noise), Eqs. (1) and (2) become
randomly fluctuate across different observations. the classical fixed coefficient model. If [1 =I= 0, the
The single random coefficient model (Hildreth parameter vector is random and structural change
and Rouch, 1968; Swamy and Mehta, 1975; Coo- should be considered. The random coefficients
ley and Prescott, 1974) has extended to multi-re- can be estimated by implementing Kalman filter
gression model using seemingly unrelated regres- and maximum likelihood approaches. A Kalman
sion approach (Singh and Ullah, 1974). Garbade filter is a recursive, unbiased least-squares esti-
(1977) and Chavas (1983) have discussed in de- mator of a Gaussian random signal (Wegman,
tails the estimation of variable parameter regres- 1982). Thus, initial estimate of b 0 and .! 0 must
sion. Switching regressions and random coeffi- be provided. Random coefficients, /31' are se-
cients were introduced by Quandt (1972) and quentially estimated under the assumption of b1
Swamy and Mehta (1975). In Meinhold and is a vector estimate of {3 1 and ! 1 is the covariance
Singpurwalla (1983), Kalman filter has been used matrix of b1 • The Kalman filter provides the
in some non-engineering applications such as following sequential estimator of {3 1 in the model
short-term forecasting and the analysis of life of Eqs. (1) and (3) (Chavas, 1983; Sage and Melsa,
lengths from dose-response experiments. Abra- 1971).
ham and Ledolter (1983) have conveniently de-
scribed the procedures of implementing the bt = btlt-! + G~(~- x;btlt-!) (5)
Kalman filtering techniques (see Kalman, 1961).
Generalized least-squares (Sant, 1977) and where
Bayesian estimation (Sarris, 1973) are different btlt-! =bt-l ( 6)
approaches can be used to estimate random coef-
ficient regression models and they are equivalent G1 = ! 1 1t-!X1 ( x;.ttlt-!xt + 1) -l (7)
to Kalman filtering techniques (Chavas, 1983).
The linear model most frequently used in sta- !tit-! =.!t-1 +D (8)
tistical applications may be indicated as follows:
!I= !tit-!- G/x;ttlt-1 (9)
(1)
[1 =K2!o (10)
(2)
b 1 1~- 1 - N(/3 1 - 1, 0" 2 .!1 1t-l) (11)
where ~ = a(N * 1) is the vector of observations
of N dependent variables, X 1 = a(N * P) the rna- b 1 l~- N(/31' 0" 2.!1 ) (12)
S.H. Al-Kahtani, B.E.E. Sofian /Agricultural Economics 12 (1995) 91-98 93
in which K 2 is the ratio of the variance of the Maximizing this function with respect to u 2 leads
process noise to the variance of parameter esti- to the estimate:
mates, and G, the gain filter. 1 T
Eqs. (6) and (8) are the prior estimate of {3, a2 = T L (C, )2 //, (15)
and prior covariance of b" respectively. The prior t~1
estimate b,l,_ 1 plus the prediction error (Y1 - Substituting this estimate into (13), the concen-
x;b,l,-1) weighted by the gain of the filter G, trated log-likelihood function can be obtained
produce the posterior estimate of {3, as given in (Abraham and Ledolter, 1983):
Eq. (5). Eq. (9) simply present the posterior vari-
T
ance!, which is the prior variance !tl,_ 1 minus
the posterior semi-definite matrix G,X,!,I,- 1.
Lc(Didata; b 0 , ! 0 )a- ~ L In j,- nIna (16)
In the fixed coefficient model (i.e., D = 0), {3 1
is constant for all t and ! 1 11 - 1 =!,_ 1. Thus, b, where a and /, are both implicit function of n.
and !, are equal to their ordinary least-squares Lc is then a complicated non-linear function of D
analogues (Sage and Melsa, 1971). The scalar (Garbade, 1977). Thus, for given D, i.e. specify
stochastic prediction error (}~ - x; b ,I,_ 1) driving K, Eqs. (5) and (9) can be used to update the
the filter is a zero mean and serially uncorrelated parameter estimate and to calculate f 1 and 2 • a
Gaussian process with variance u 2f I ' where f t = Values of the unknown elements in the matrix D
1 + x;! ,I,- I X,. The properties of the prediction that maximize Lc can be found numerically.
error are conveniently described in Mehra (1970). If K = 0, then n = 0 and {3 1 will be equal to
In economic applications, the prior estimate of {3,_ 1 in the random walk model and the parame-
{3, and D are usually not available, with which to ters are constant. If K-=!= 0, then D -=!= 0, this im-
begin the recursive estimation at the filter step. plies random coefficient and structural change
Garbade (1977) has suggested the algorithm can from one period to the next.
be initialized by using the first t observations to The Kalman filter technique has a potential
estimate b 1 + 1. use in estimating preferences change from one
Random coefficients are obtained when D -=1= O· period to the next which traditional econometric
thus, change at time t can be measured by th~ methods do not appear well suited for the estima-
magnitude of D. The problem is then to estimate tion. This technique can be implemented in nu-
D. The variance ratio matrix D and the variance merous economic applications such as prediction,
scalar u 2 can be estimated by maximum likeli- forecasts, and marketing analysis. The shortcom-
hood approach (Schweppe, 1965; Garbade, 1977; ing of this technique stems from poor initial val-
Ledolter, 1979). Abraham and Ledolter (1983) ues of b 0 and ! 0 . However, this shortcoming has
have shown the log-likelihood function for the a declining effect in estimating random coeffi-
regression model with random walk coefficients. cients with time span. 1
This approach requires specifying starting values
of b 0 and ! 0 in order to calculate K and then D.
3. Model specification
T
Lc( u 2 , Dldata; b 0 , ! 0 )a- n In u- ~ L, / 1 The main objective of this paper was originally
t~ 1 to assess structural change through a flexible
T
-(~u 2 ) L, (e?/!,) (13)
t~ 1
Table 1
Estimates of the Initial Values of the Demand for Meat in Saudi Arabia, 1972-1984
Commodity Regression coefficients a
demand specification (i.e., prices, income, time, trend is a common methods of treating changing
etc.). The Saudi economy phenomena in the past preferences in demand relation (Johnson et al.,
two decades should be taken into account at the 1984). Utilizing the independent assumption of
model specifications. The first stage of the Saudi error term (eti) in Eq. (1), the model can be
economy will introduce the initial values needed specified as follows:
for applying Kalman filtering technique. Differ-
Log Y;i = f3o + {31 Log xti + {32t +eli (17)
ent attempts were implemented for the initial
value estimates including prices to allow cross- eti ~ N(O, a/) (18)
elasticities, per capita of GDP, and time trend. where Y;i is the per capita consumption of com-
However, these attempts were suffered strongly modity i at time t, Xti the real retail price of
from multicollinearity problems, in addition to commodity i at time t, (CPI, 1985 = 100), t time
that family budget survey which reflects income trend, e ti disturbance term, with i = 1, 2, 3 com-
effect does not comprehendible all details needed modities, and t = 1, 2, ... , T.
for pooling time series data with cross section
data in the model. Economic variables which
represent preference change should be consid- 4. Empirical results
ered. Thus, attention to the economy boom span
should be brought out at estimating meat de- A Fortran 77 program has been designed 2 to
mand. This phenomena stimulated consumption estimate the meat demand function in two steps:
in general to increase and preference to change. (1) Estimating the initial values of b 0 and .! 0
Therefore, it becomes an important for the au- by using the data over the initial period 1972-1984
thors to study preference change that measured for poultry and red meat, and over 1977-1984 for
by growth rate in per capita consumption for fish. The estimation method was done by assum-
each meat commodity. Another important factor ing K = 0 over the initial period. Thus, Kalman
is the traditional meat consumption in Saudi Ara- filter results are asymptotically equivalent to ordi-
bia which implicitly suggests separability among nary least-squares estimates. The results are pre-
meat commodities. sented in Table 1. These results are considered as
The economic variables that should be in- the prior information b 0 and .! 0 in the Kalman
cluded for building econometric model in this filter.
study are the following; per capita consumption
for each meat commodity, real retail prices, and
time trend. Time trend is used as a proxy of
changing preferences in meat demand function. 2 This program is especially designed for this problem, and
Table 2
Covariances of the initial values of the demand for meat in Saudi Arabia, 1972-1984
Commodity Coefficients a MSE
The results satisfy standard tests, regression trix indicate the absence of serial correlation in
F-ratios and coefficient estimates are significant the residuals and multicollinearity among the ex-
at 1% level. Durbin-Watson and correlation rna- planatory variables. The results give an initial
Table 3
Yearly estimates of the demand for meat in Saudi Arabia, 1972-1984
Commodity Years b Regression coefficients a
Table 4
Covariances of the regression coefficients of the demand for meat without structural change in Saudi Arabia, 1991
Commodity Coefficients 0 >
information on price elasticities and consumption rameter so that negative sign for fish does not
growth rate for each commodity item. The signs imply negative consumption. All growth rate of
of estimated price elasticities are consistent with quantity demanded is expected to increase annu-
demand theory except for red meat. The direct ally by 10.5%, 7.9% and 11% for poultry, red
price elasticity of red meat is positive implying a meat and fish, respectively. Covariance matrix of
positive relationship between quantity consumed the initial period of the demand for meat is
and its price. This is may due to the economy shown in Table 2.
boom during this period. The constant term in (2) Estimating the demand for meat under
Eq. (17) is interpreted as normalized scaling pa- structural change. The initial values of b 0 and .! 0
Table 5
Covariances of the regression coefficients of the demand for meat under structural change in Saudi Arabia, 1991
Commodity Coefficients a
obtained from the first step can be used in the change, respectively. The diagonal of covariance
Kalman filter and maximum likelihood to investi- matrix (.! 1 1 - 1 ) under structural change (Table 5)
1
gate structural change over the period 1985-1991. has larger values than the diagonal of covariance
The results of estimating demand for meat with matrix (.! 1 _ 1) without structural change (Table
and without structural change are presented in 4). This is a premium magnitude as a result of
Table 3. K is assumed to be zero to estimate the adding [l to 2: 1 _ 1 • Concentrated log likelihood
regression coefficients without structural change. function has higher values with than without
This implies [l = 0 for t = 1985-1991. Kalman structural change as shown in Tables 4 and 5.
filter with different K ([1 =I= 0, t = 1985-1991) is This supports the capability of the dependent on
applied to estimate the random coefficients, im- Kalman filter technique of detecting structural
plying structural change in meat demand. The change. The variance estimates are substantially
maximum likelihood Eq. (16) gives K = 0.839 for minimized in the Kalman filtering techniques
poultry, K = 1.451 for red meat, and K = 0.459 when [l =I= 0 (Table 6).
for fish (Table 5). This implies that random coef-
ficients were more introduced into red meat than
poultry and fish. Thus, important structural 5. Conclusion
change was identified for red meat more than
poultry and fish. Tables 4 and 5 illustrate the The accuracy of result estimations are essen-
covariance matrix, concentrated log likelihood tially rely on the initial parameter values. The
function, and maximum likelihood estimate of CT 2 change in the coefficient estimates are corre-
for demand meat with and without structural sponding to the magnitude of K. The higher
magnitude of K, the more structural change is
occurred.
Table 6 Structural change in poultry (fish) are re-
Estimates of the demand for meat in Saudi Arabia, 1991 flected in a price elasticity increase from 0.665
Commodity Regression coefficients a (1.284) in 1985 to 0.829 (2.47) in 1991, and a
decrease in growth rate from 10.5% (11 %) to 7%
(5.9%) during the same period, respectively. The
Without structural change (j] = 0):
Poultry 0.254 -0.798 0.073 poultry and fish direct price elasticities are higher
(2.030) ( -11.595) ' (10.257) * under structural change than without structural
0.01600 change, while growth rate is less with structural
Red meat 2.203 -0.119 0.025 change than without structural change. These
(4.499) * (- 0.362) (1.249)
findings indicate poultry is more necessary than
0.17300
Fish -2.543 -2.168 0.067 fish consumption. Thus, fish market is subject to
(- 3.844) * (- 5.390) * (9.566) ' large variation as supply fluctuate than poultry
0.01100 market. The per capita consumption of poultry
Under structural change (j] if= 0): and fish is increasing while growth rate is de-
Poultry 0.235 -0.829 0.065
creasing, which implies change in consumption
(1.354) (- 8.496) ' (5.808) *
0.00519 preferences. The consumption growth rate under
Red meat 2.057 -0.298 0.000 structural change is less and more realistic than
(3.113) ' (- 0.660) (- 0.013) without structural change in the long run.
0.01940 The correct sign of price elasticity of red meat
Fish -3.020 -2.470 0.059
(- 5.636) '
appeared in 1989 and 1990 for under and without
(- 4.275) ' (5.710) *
0.00318 structural change, respectively. The small price
elasticity is consistent with the traditions, includ-
a The price elasticity is given by {3 1 and the growth rate is
estimated by {3 2 . The /-statistics are given between parenthe-
ing social and religion activities, of red meat
ses. consumption in Saudi Arabia. Therefore, con-
' Significant at 5% level of significance. sumption is not sensitive with red meat prices.
98 S.H. Al-Kahtani, B.E.E. Sofian /Agricultural Economics 12 (1995) 91-98
The growth rate became zero at 1989, implying model with random coefficients. J. Am. Stat. Assoc., 63:
per capita consumption takes constant pattern. 584-595.
Johnson, S., Z. Hassan and R. Green, 1984. Demand systems
Finally, the results are consistent with meat con- estimation: methods and applications. Iowa State Univer-
sumption preference and pattern in the last few sity Press, Ames.
years with which increasing per capita consump- Kalman, R.E., 1961. A new approach to linear filtering and
tion in poultry and fish and zero growth rate in prediction problems. J. Basic Eng., Trans. ASME Ser. D,
red meat consumption. These results indicate 83: 95-108.
Ledolter, J., 1979. A recursive approach to parameter estima-
long-run growth prospects for the poultry and tion in regression and time series model. Commun. Stat.,
fish industry and moderate in red meat industry. AS: 1227-1245.
Thus, these findings have important implications Mehra, R., 1970. On the identification of variance and adap-
for market analysis and projections of meat de- tive kalman filtering. IEEE Trans. Automatic Control, 15:
mand in Saudi Arabia. 175-184.
Meinhold, R. and N. Singpurwalla, 1983. Understanding the
Kalman Filter. Am. Stat., 37: 123-127.
Pope, R., R. Green and J. Eales, 1980. Testing for homogene-
ity and habit formation in a flexible demand specification
References of U.S. meat consumption. Am. J. Agric. Econ., 62: 778-
784.
Quandt, R.E., 1972. A new approach to estimating switching
Abraham, B. and J. Ledolter, 1983. Statistical Methods for regressions. J. Am. Stat. Assoc., 67: 306-310.
Forecasting. Wiley, New York. Sage, A.P. and J.l. Melsa, 1971. Estimation Theory to Appli-
Akaike, H., 1970. Statistical prediction identification. Ann. cations to Communications and Control. McGraw-Hill,
Ins!. Stat. Math., 22: 203-217. New York.
Al-Ghamdi, M., 1991. Dynamic analysis of demand for fish in Sant, D.T., 1977. Generalized least-squares applied to time-
the Kingdom of Saudi Arabia. Ms. thesis, King Saud varying parameter models. Ann. Econ. Social Measure, 6:
University, Ryadh. 301-314.
Al-Qunaibet, M., S. Ismaiel and A. Al-Zaagi, 1989. Dynamic Sarris, A.H., 1973. A Bayesian approach to estimation time-
response of the main factors effecting red meat imports in varying regression coefficients. Ann. Econ. Social Mea-
Saudi Arabia. Alexendria J. Agri. Res., 34: 17-33. sure, 2: 501-523.
Brown, M.G. and J. Lee, 1992. A dynamic differential de- Schweppe, F.C., 1965. Evaluation of likelihood functions for
mand system: an application of translation. South. J. Agric. Gaussian signals. IEEE Trans. Information Theory, 11:
Econ., 24: 1-9. 61-70.
Change, H., 1977. Functional forms and the demand for meat Singh, B. and A. Ullah, 1974. Estimation of seemingly unre-
in the U.S. Rev. Econ. Stat., 59: 355-359. lated regressions with random coefficients. J. Am. Stat.
Chavas, J., 1983. Structural change in the demand for meat. Assoc., 69: 191-195.
Am. J. Agric. Econ., 65: 148-153. Swamy, P.A. and J.S. Mehta, 1975. Bayesian and non-Baye-
Cooley, T.F. and E.C. Prescott, 1974. The adaptive regression sian analysis of switching regressions of random coefficient
model. Int. Econ. Rev., 14: 365-371. regression models. J. Am. Stat. Assoc., 70: 593-602.
Court, R., 1967. Utility maximization and demand for New Tryfos, P. and N. Tryphonopoulos, 1973. Consumer demand
Zealand meats. Econometrica, 35: 424-446. for meat in Canada. Am. J. Agric. Econ., 55: 647-652.
Garbade, K., 1977. Two methods for examining the stability of Wegman, E.J., 1982. Kalman Filtering. In: Encyclopedia of
regression coefficients. J. Am. Stat. Assoc., 72: 54-63. Statistics, edited by N. Johnson and S. Kotz. Wiley, New
Hildreth, C. and J. Rouch, 1968. Some estimators for linear York.