"Bi thing" Microsoft logistic regression algorithm--predicting the rise and fall of stocks

Source: Internet
Author: User

In the original: "Bi thing" Microsoft logistic regression algorithm--Forecast stock rise and fall

Data preparation:
A set of stock history sold data (stock code: 601106 China One heavy), starting Date: 2011-01-04 to date, where variables are "open", "highest", "minimum", "close", "Total hand", "Amount", "ups and downs" and so on

UPDATEFactstockSET     [Ups and Downs] =N'Rise'WHERE   [gains] > 0UPDATEFactstockSET     [Ups and Downs] =N'Fall'WHERE   [gains] < 0UPDATEFactstockSET     [Ups and Downs] =N'Flat'WHERE   [gains] = 0SELECT  [Ups and Downs] ,        COUNT(*) asCnt fromFactstockGROUP  by [Ups and Downs]SELECT  * fromFactstockWHERE   [Ups and Downs] =N'Flat'SELECT  MAX(Close),MIN(Close),AVG(Close) fromFactstockUPDATEFactstockSETSequence= CAST(REPLACE(CONVERT(CHAR(Ten),SUBSTRING([Time],1,Ten), -),'-',                          "') as INT)SELECT  * fromFactstock

Analysis Process:










"Bi thing" Microsoft logistic regression algorithm--predicting the rise and fall of stocks

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.