Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: neural network
Replies: 1   Last Post: Apr 7, 2014 4:32 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Murugan Solaiyappan

Posts: 39
Registered: 12/4/10
neural network
Posted: Apr 6, 2014 10:23 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear matlab friends , I have 3years of data set for closing stock index of stock market.
By using this dataset, I develop a feed forward neural network model to predict the closing stock one day in advance.


Totally I have 742 days of data .
here I show some sample data set for input and target , this is one step-ahead prediction

2969.0 2990.0
2990.0 3074.0
3074.0 3091.0
3091.0 2871.0
2871.0 2810.0
2810.0 2725.0
2725.0 2704.0
2704.0 2780.0
2789.0 2696.0
2696.0 2769.0


net=newff(input,target,3);
[net tr Y E]=train(net,input,target);

output=Y;
error=E;

trainingrecord=tr;
stopcrit=tr.stop;
numepochs=tr.num_epochs;
bestepoch=tr.best_epoch;
out=sim(net,input);

It will work perfectly.


I want to predict the closing stock index 1 week, 2 week and one month in advance.
How can I predict?

1. Is any change in the dimension of the input data set and target dataset?.

2. Is any change in the code?


What can I do friends...?
Kindly help me.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.