Professional Documents
Culture Documents
Comparing BP and RBF Neural Network For Forecasting The Resident Consumer Level by MATLAB
Comparing BP and RBF Neural Network For Forecasting The Resident Consumer Level by MATLAB
LW
2,
b
2
P
21
1
2
n
1
41
a
1
41
1
41
4
n
2
31
3 31
r
n
q
x
1
q
x
2
q
x
m
q
r
1
q
r
2
q
w2
1
w2
q
y
q
170
Table 1 forecast data source
3.2 network creation and training
The number input of RBF network neurons
depend on the factors that can impact the resident
consumer level, from table 1, their number to 4.
Output value is the resident consumer level, so the
output is 1. Newrbe used to create a precise function
of neural networks, which can automatically choose
the number of hidden layer, making forecasts more
accurate. It must be data normalized before used for
training and testing. p as input vector and t as the
goal vector, which can be drawn from Table 1.
MATLAB code as following:
Table 2 training sample after data normalization
Year
Gross
National
Income
Per Capita
Income of Urban
Residents
1994 0.0000 0.0000
1995 0.1950 0.2339
1996 0.3675 0.3992
1997 0.4995 0.4948
1998 0.5823 0.5735
1999 0.6733 0.7010
2000 0.8321 0.8279
2001 1.0000 1.0000
SPREAD is the distribution density of RBF, first
spread from 2.5 to network training, MATLAB code
as following:
The network established during the training
process, therefore, net network is already trained.
3.3 network test
Network test is network simulation and
verification of its ability to forecast. MATLAB code
as following:
p_test is the test samples from Table 1 afer
2002-2006 data normalization. Running the process
results:
After the anti-normalization treatment, the
forecast results: 4014.8 4306.3 5247.7 5447.1 6147.7
compared with the actual results, due to the limited
sample data and forecasts of the greater, the error in
the acceptable range. In addition, SPREAD value of
the network size affect the accuracy of forecasts,
were taken SPREAD = 2.3, 2.7 circumstances
computing network of forecast accuracy. After the
result anti-normalization, compared with the forecast
results, you can find makes the network more
accurate precision SPREAD value. In order to
compare with the forecast data of RBF network,
design BP network in the MATLAB environment,
enter same input, and create a network as follows to
predict:
Per Capita
Income of Rural
Residents
Consumer
Price
Index
Resident
Consumer
Level
1221.0 124.2 1833
1577.7 117.1 2355
1926.1 108.3 2789
2090.1 102.8 3002
2162.0 99.2 3159
2210.3 98.6 3346
2253.4 100.4 3632
2366.4 100.7 3869
2475.6 99.2 4106
3622.2 101.2 4411
2936.4 103.9 4925
3254.9 101.8 5463
3580.7 101.4 6111
171
The results of several comparative figures as
following:
-0=spread2.5 -*= spread2.3 -+= spread2.7
*=y_bp;
Figure 3: BP and RBF forecast error compared
4.Conclusion
These results can be seen that the smallest
network error in SPREAD value from 2.5, the results
and the actual value of the closest. The forecast error
of resident consumer level expressed by "*" in BP
network. Comprehensive comparison found that RBF
network is better than BP network in prediction
accuracy, training time and training speed. It proved
that the RBF neural network is more efficient and
accurate than BP neural network in forecasting the
resident consumer level, and thus more suitable for
practical application in guiding the design of neural
networks.
5.References
[1]China Statistical Yearbook 2007
[2] GE philosophy, Sun Zhiqiang, Neural network theory
and MATLABR 2007. Electronics Industry Publishing
House. 2007
[3] Dong Changhong. Neural network and application[M ].
Beijing: National Defence Industry Press.2005
[4] Neural Network Toolbox.MathWork.2007
[5] Yang Wei, Wang Ende, Chang Chen. Application BP
neural network forecasting urban water demand [J],
Resources and Environment, vol24, No3 2003.
[6] XU F,LU JG, SUN Y X. Application of neural network
in image processing[J]. Information and Control .2003,
32(4): 345-348.
[7] WEN X, ZHOU L, LIX, et a.l Simulation and
application of neural network for MATLAB [M ]. Beijing:
Science Press,.2003.
[8] HippertH S, Bunn DW, Souza R C. Large neural
net-works for electricity load forecasting: are they
overfitted [J]. International Journal of Forecasting .2005,
21(3): 425-434.
[9] GhiassiM, SaidaneH, Zimbra D K. A dynamic artificial
neural network model for forecasting time series e-vents
[J]. International Journal of Forecasting.2005,21(2):
341-362.
172