# Introduction
Given a collection of (ideally sparsely correlated) time series, FPS provides functions to make fast and accurate predictions of the future value of a particular time series by using the l1-regularized least squares model and cholesky decomposition and cholesky update. Interested users should carefully read the documentations and integrate our functions to their Matlab projects.
The sample data contained in this project is the difference of the stock prices for the 30 Dow & Jones stocks in Feburary, 2008. Each column is a particuluar Dow & Jones stock. Each row is the difference of the stock price between the price of each stock at current time and the price of the corresponding stock one minute earlier.
# Installation
FPS works with Windows/Unix/Linux/Mac.
First, You need to install Matlab.
Next, you need to set Matlab's PATH variable. Open Matlab, click File -> Set Path... Then click "Add with Subfolders..." on the upper left corner. A prompt will pop up asking you which folder and its subfolders will be added to Matlab's search path. Go to the directory where you have stored FPS, select the FPS folder, and click "OK". The matlab search path has been set up. If you wish to save this new PATH variable, click "Save" on the bottom left corner. You should be able to use our software next time you start Matlab.
# Run
FPS is not an executable project. Instead FPS is a package that contains a function to train our l1-regularized least squares model, and a Matlab object that performs predictions on a particular time series given other time series and itself.
There are two Matlab programs that should be of interest to you. train_model.m is the function that suggests the user possibly good parameters to use in actual predictions., and IncrementalPredict.m is a Matlab object that makes future predictions on a particular time series.
We assume that the user already have some initial data for each series so that we can first run train_model.m on these data to obtain some parameters before we any actual prediction. We also assume that the user will constantly obtain new values for each series from some data source. Both the initial data and the incoming new data are likely to be part of a large system, so we expect that both of train_model.m and IncrementalPredict.m will be embeded in that system. In fact there's no "main" method in this package. We only provide a Matlab class IncrementalPredict.m for doing prediction and a Matlab function train_model.m that output suggested parameters based on the training_data. We assume that interested user will embed this class and this function into a larger Matlab project.
To get a feeling of how to use IncrementalPredict.m and train_model.m, see the file sample_run.m. To run this program, type "sample_run;"(excluding the double quotes(")) at Matlab's command prompt. The default parameters to run this program should be appropriate for a start.
This sample program will make predictions for a particular series in a given time interval. The program assumes that the input data is volatile; therefore, it revokes the train_model function every 100 time steps to get the most up-to-date parameters for actual predictions.
We suggest that interested users carefully read the documentations in sample_run.m, IncrementalPredict.m and train_model.m to understand how IncrementalPredict.m and train_model.m may be applied to their Matlab project.
WARNING: This demo program is going to take a long time (a few hours to about a day) to finish if the difference of start_time and end_time is large (say larger than 3000).
# License
FPS is a free software. You may use it "as is" for educational or commercial purposes. You must understand however that it is experimental software so may have bugs.
没有合适的资源?快使用搜索试试~ 我知道了~
高频股票价格预测的L1正则化回归模型的Matlab实现.zip
共31个文件
m:25个
txt:4个
md:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 141 浏览量
2024-03-25
23:51:36
上传
评论
收藏 376KB ZIP 举报
温馨提示
1.版本:matlab2014/2019a/2021a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
资源推荐
资源详情
资源评论
收起资源包目录
高频股票价格预测的L1正则化回归模型的Matlab实现.zip (31个子文件)
高频股票价格预测的L1正则化回归模型的Matlab实现
L1-Regularized-Stock-Prediction-master
sample_run.m 5KB
sample_config.txt 41B
sample_data
sample_data.txt 3.4MB
solvers
hanso
basic_fpc.m 630B
isposint.m 1KB
setdefaults_hanso.m 4KB
.hg_archival.txt 94B
postprocess.m 2KB
getbundle.m 2KB
gradsamp1run.m 2KB
hanso.m 13KB
gradsampfixed.m 4KB
GPLver3.license 32KB
localbundle.m 4KB
bfgs1run.m 6KB
zero_norm.m 157B
isnonnegint.m 1KB
setx0.m 2KB
bfgs.m 6KB
gradsamp.m 7KB
setdefaults.m 3KB
linesch_ww.m 9KB
qpsubprob.m 3KB
setwolfedefaults.m 3KB
isposreal.m 1KB
SolveLasso
SolveLasso_mod.m 11KB
l1_ls
l1_ls_mod.m 8KB
IncrementalPredict.m 13KB
README.md 4KB
parameter_file_instruction.txt 3KB
train_model.m 13KB
共 31 条
- 1
资源评论
Matlab科研辅导帮
- 粉丝: 1w+
- 资源: 7553
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功