CN112308624A - Internet-based online commodity sales prediction method and equipment - Google Patents

Internet-based online commodity sales prediction method and equipment Download PDF

Info

Publication number
CN112308624A
CN112308624A CN202011241302.XA CN202011241302A CN112308624A CN 112308624 A CN112308624 A CN 112308624A CN 202011241302 A CN202011241302 A CN 202011241302A CN 112308624 A CN112308624 A CN 112308624A
Authority
CN
China
Prior art keywords
sales
commodity
internet
commodity sales
linear
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011241302.XA
Other languages
Chinese (zh)
Inventor
袁火洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Canghong Technology Co ltd
Original Assignee
Shenzhen Canghong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Canghong Technology Co ltd filed Critical Shenzhen Canghong Technology Co ltd
Priority to CN202011241302.XA priority Critical patent/CN112308624A/en
Publication of CN112308624A publication Critical patent/CN112308624A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0202Market predictions or forecasting for commercial activities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data

Landscapes

  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an online commodity sales forecasting method based on the Internet, relating to the technical field of data processing; the method comprises the following steps: s1, obtaining historical data of the commodity sales of the stores in a preset time period as modeling data; s2, training the linear relation between the modeling data characteristics and the predicted sales amount later to obtain the linear coefficient and constant of the linear relation; s3, quoting a linear function according to the parameters obtained after model training, so as to obtain future prediction of commodity sales of the corresponding store; the invention has the beneficial effects that: the sales volume of each commodity in the store can be predicted, and the risk of raw material waste in the Internet cake industry is reduced.

Description

Internet-based online commodity sales prediction method and equipment
Technical Field
The invention relates to the technical field of data processing, in particular to an internet-based online commodity sales prediction method and device.
Background
In the internet cake e-commerce industry, the raw material stock flow of cake bread is roughly as follows: according to past sales experiences, each store goes to corresponding suppliers to stock in advance according to own experiences of store owners. This "just-in-time" approach does not provide the accuracy and rationality of stock keeping, and in real-life situations, it is very easy to waste raw materials or to reduce the sales due to insufficient raw materials due to uncertainty of sales.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides an online commodity sales prediction method based on the Internet, which can predict the sales of each commodity in a store and reduce the risk of raw material waste in the Internet cake industry.
The technical scheme adopted by the invention for solving the technical problems is as follows: in an internet-based method for predicting the sale of goods online, the improvement comprising the steps of:
s1, obtaining historical data of the commodity sales of the stores in a preset time period as modeling data;
s2, training the linear relation between the modeling data characteristics and the predicted sales amount later to obtain the linear coefficient and constant of the linear relation;
and S3, quoting a linear function according to the parameters obtained after the model training, so as to obtain the future prediction of the corresponding store commodity sales.
Further, the step S1 includes the following steps:
s11, acquiring a commodity sales prediction date, taking a time period before the commodity sales prediction date as a preset time period, acquiring commodity sales volume, time dimension characteristics and commodity portrait characteristics of each shop every day in the preset time period, and taking the time dimension characteristics and the commodity portrait characteristics as modeling data characteristics.
Further, the step S2 includes the following steps:
s21, training the linear relation according to a linear regression algorithm, and assuming that an estimation equation is as follows:
Y=b+wX
wherein Y is the sales volume of each commodity in each shop, X is the modeling data characteristic, w is a linear coefficient, and b is a constant;
s22, constructing a Mean Square Error (MSE):
Figure BDA0002768498830000021
wherein the content of the first and second substances,
Figure BDA0002768498830000022
for model predictionRecord of the ith store sales in the store's historical sales, yiRecording the commodity sales of the ith store in the historical sales data, wherein i is more than or equal to 1 and less than or equal to n, and n is the recorded number of the historical sales data;
s23, minimizing the Mean Square Error (MSE) through a gradient descent model optimization algorithm to obtain a calculation formula of linear coefficients and constants:
Figure BDA0002768498830000023
wherein, wjLinear coefficient obtained for the jth gradient descent, alpha is learning coefficient of gradient descent, bjIs a constant obtained by the gradient descent of the jth time.
Further, the step S2 further includes the following steps:
s24, obtaining a judgment coefficient of the linear relation, judging the fitting effect of the linear relation according to the judgment coefficient, wherein the Mean Square Error (MSE) is the judgment coefficient, and the smaller the error is, the better the fitting effect is.
Further, in step S24, the acquiring the determination coefficient of the linear relationship includes the following steps:
s241, calculating the sum of the squares of the historical sales data:
Figure BDA0002768498830000024
s242, calculating a regression square sum:
Figure BDA0002768498830000025
coefficient of determination
Figure BDA0002768498830000026
Further, in step S11, the time period before the predicted date of commodity sales is set as follows.
Further, in step S11, the time dimension characteristics include, but are not limited to, month, quarter, and whether it is a holiday.
Further, in step S11, the characteristics of the merchandise representation include, but are not limited to, weight, type, and material.
In another aspect, the present invention provides an internet-based online commodity sales prediction apparatus, the improvement comprising a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the internet-based online commodity sales prediction method of any one of claims 1-6 according to instructions in the program code.
The invention has the beneficial effects that: according to the online commodity sales prediction method based on the Internet, the sales of each commodity in each store in a future period of time can be predicted through a linear regression technology and a modeling technology, and the risk of raw material waste in the Internet cake industry is reduced.
Drawings
Fig. 1 is a flow chart of an internet-based online commodity sales prediction method according to the present invention.
Detailed Description
The invention is further illustrated with reference to the following figures and examples.
The conception, the specific structure, and the technical effects produced by the present invention will be clearly and completely described below in conjunction with the embodiments and the accompanying drawings to fully understand the objects, the features, and the effects of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and those skilled in the art can obtain other embodiments without inventive effort based on the embodiments of the present invention, and all embodiments are within the protection scope of the present invention. In addition, all the connection/connection relations referred to in the patent do not mean that the components are directly connected, but mean that a better connection structure can be formed by adding or reducing connection auxiliary components according to specific implementation conditions. All technical characteristics in the invention can be interactively combined on the premise of not conflicting with each other.
Referring to fig. 1, the present invention discloses an internet-based online commodity sales prediction method, by which online commodity sales are predicted to avoid wasting raw materials, and in this embodiment, the method includes the following steps:
s1, obtaining historical data of the commodity sales of the stores in a preset time period as modeling data; in this embodiment, the step S1 includes the following steps:
s11, acquiring a commodity sales prediction date, taking a time period before the commodity sales prediction date as a preset time period, acquiring commodity sales volume, time dimension characteristics and commodity portrait characteristics of each shop every day in the preset time period, and taking the time dimension characteristics and the commodity portrait characteristics as modeling data characteristics.
In step S11, the time dimension characteristics include, but are not limited to, month, quarter, and whether it is a holiday; the merchandise representation features include, but are not limited to, weight, type, and material.
S2, training the linear relation between the modeling data characteristics and the predicted sales amount later to obtain the linear coefficient and constant of the linear relation;
in this embodiment, the step S2 includes the following steps:
s21, training the linear relation according to a linear regression algorithm, and assuming that an estimation equation is as follows:
Y=b+wX
wherein Y is the sales volume of each commodity in each shop, X is the modeling data characteristic, w is a linear coefficient, and b is a constant;
s22, constructing a Mean Square Error (MSE):
Figure BDA0002768498830000041
wherein the content of the first and second substances,
Figure BDA0002768498830000042
predicting the ith store sales record, y, in store historical sales for the modeliRecording the commodity sales of the ith store in the historical sales data, wherein i is more than or equal to 1 and less than or equal to n, and n is the recorded number of the historical sales data;
s23, minimizing the Mean Square Error (MSE) through a gradient descent model optimization algorithm to obtain a calculation formula of linear coefficients and constants:
Figure BDA0002768498830000043
wherein, wjLinear coefficient obtained for the jth gradient descent, alpha is learning coefficient of gradient descent, bjIs a constant obtained by the gradient descent of the jth time.
S24, obtaining a judgment coefficient of the linear relation, judging the fitting effect of the linear relation according to the judgment coefficient, wherein the Mean Square Error (MSE) is the judgment coefficient, and the smaller the error is, the better the fitting effect is.
In the above embodiment, the step S24 of obtaining the determination coefficient of the linear relationship includes the following steps:
s241, calculating the sum of the squares of the historical sales data:
Figure BDA0002768498830000044
s242, calculating a regression square sum:
Figure BDA0002768498830000045
coefficient of determination
Figure BDA0002768498830000046
And S3, quoting a linear function according to the parameters obtained after the model training, so as to obtain the future prediction of the corresponding store commodity sales.
The invention also provides an online commodity sales predicting device based on the Internet, which comprises a processor and a memory; the memory is used for storing program codes and transmitting the program codes to the processor; the processor is used for executing the internet-based online commodity sales amount prediction method according to instructions in the program codes.
According to the online commodity sales prediction method based on the Internet, the sales of each commodity in each store in a future period of time can be predicted through a linear regression technology and a modeling technology, and the risk of raw material waste in the Internet cake industry is reduced.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. An internet-based online commodity sales prediction method is characterized by comprising the following steps:
s1, obtaining historical data of the commodity sales of the stores in a preset time period as modeling data;
s2, training the linear relation between the modeling data characteristics and the predicted sales amount later to obtain the linear coefficient and constant of the linear relation;
and S3, quoting a linear function according to the parameters obtained after the model training, so as to obtain the future prediction of the corresponding store commodity sales.
2. The internet-based online commodity sales predicting method according to claim 1, wherein the step S1 comprises the steps of:
s11, acquiring a commodity sales prediction date, taking a time period before the commodity sales prediction date as a preset time period, acquiring commodity sales volume, time dimension characteristics and commodity portrait characteristics of each shop every day in the preset time period, and taking the time dimension characteristics and the commodity portrait characteristics as modeling data characteristics.
3. The internet-based online commodity sales predicting method according to claim 2, wherein the step S2 comprises the steps of:
s21, training the linear relation according to a linear regression algorithm, and assuming that an estimation equation is as follows:
Y=b+wX
wherein Y is sales volume of each commodity in each shop, X is modeling data characteristic (i.e. time dimension characteristic and commodity portrait characteristic), w is linear coefficient, and b is constant (obtained by training);
s22, constructing a Mean Square Error (MSE):
Figure FDA0002768498820000011
wherein the content of the first and second substances,
Figure FDA0002768498820000012
predicting the ith store sales record, y, in store historical sales for the modeliRecording the commodity sales of the ith store in the historical sales data, wherein i is more than or equal to 1 and less than or equal to n, and n is the recorded number of the historical sales data;
s23, minimizing the Mean Square Error (MSE) through a gradient descent model optimization algorithm to obtain a calculation formula of linear coefficients and constants:
Figure FDA0002768498820000013
wherein, wjLinear coefficient obtained for the jth gradient descent, alpha is learning coefficient of gradient descent, bjIs a constant obtained by the gradient descent of the jth time.
4. The internet-based online commodity sales predicting method according to claim 3, wherein the step S2 further comprises the steps of:
s24, obtaining a judgment coefficient of the linear relation, judging the fitting effect of the linear relation according to the judgment coefficient, wherein the Mean Square Error (MSE) is the judgment coefficient, and the smaller the error is, the better the fitting effect is.
5. The internet-based online commodity sales predicting method according to claim 4, wherein the step S24 of obtaining the linear relationship determination coefficient includes the steps of:
s241, calculating the sum of the squares of the historical sales data:
Figure FDA0002768498820000021
s242, calculating a regression square sum:
Figure FDA0002768498820000022
coefficient of determination
Figure FDA0002768498820000023
6. The internet-based online commodity sales predicting method according to claim 2, wherein in step S11, the time period before the commodity sales predicting date is commodity sales data of the previous 5 days.
7. The internet-based online commodity sales predicting method of claim 2, wherein in step S11, the time dimension characteristics include, but are not limited to, month, quarter, and holiday.
8. The method as claimed in claim 2, wherein in step S11, the commodity image features include but are not limited to weight, type and material.
9. An internet-based online commodity sales predicting apparatus, characterized in that the apparatus comprises a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the internet-based online commodity sales prediction method of any one of claims 1-8 according to instructions in the program code.
CN202011241302.XA 2020-11-09 2020-11-09 Internet-based online commodity sales prediction method and equipment Pending CN112308624A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011241302.XA CN112308624A (en) 2020-11-09 2020-11-09 Internet-based online commodity sales prediction method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011241302.XA CN112308624A (en) 2020-11-09 2020-11-09 Internet-based online commodity sales prediction method and equipment

Publications (1)

Publication Number Publication Date
CN112308624A true CN112308624A (en) 2021-02-02

Family

ID=74325315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011241302.XA Pending CN112308624A (en) 2020-11-09 2020-11-09 Internet-based online commodity sales prediction method and equipment

Country Status (1)

Country Link
CN (1) CN112308624A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113888235A (en) * 2021-10-22 2022-01-04 创优数字科技(广东)有限公司 Training method of sales forecasting model, sales forecasting method and related device
CN114912948A (en) * 2022-04-24 2022-08-16 深圳船奇科技有限公司 Cloud service-based cross-border e-commerce big data intelligent processing method, device and equipment
WO2022199383A1 (en) * 2021-03-26 2022-09-29 北京京东拓先科技有限公司 Article replenishment method and device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180005253A1 (en) * 2016-06-30 2018-01-04 International Business Machines Corporation Revenue prediction for a sales pipeline using optimized weights
CN108805351A (en) * 2018-06-07 2018-11-13 湖州师范学院 Room rate prediction technique based on linear regression algorithm and system, storage medium
CN111724211A (en) * 2020-06-30 2020-09-29 名创优品(横琴)企业管理有限公司 Offline store commodity sales prediction method, device and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180005253A1 (en) * 2016-06-30 2018-01-04 International Business Machines Corporation Revenue prediction for a sales pipeline using optimized weights
CN108805351A (en) * 2018-06-07 2018-11-13 湖州师范学院 Room rate prediction technique based on linear regression algorithm and system, storage medium
CN111724211A (en) * 2020-06-30 2020-09-29 名创优品(横琴)企业管理有限公司 Offline store commodity sales prediction method, device and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NULAB: "Gradient descent for inear regression using Golang", vol. 1, pages 235 - 236, Retrieved from the Internet <URL:https://nulab.com/learn/software-development/gradient-descent-linear-regression-using-golang> *
刘春岚 等: "商品销量的趋势分析及预测", 吉林工学院学报, vol. 15, no. 2, pages 30 - 33 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022199383A1 (en) * 2021-03-26 2022-09-29 北京京东拓先科技有限公司 Article replenishment method and device, and storage medium
CN113888235A (en) * 2021-10-22 2022-01-04 创优数字科技(广东)有限公司 Training method of sales forecasting model, sales forecasting method and related device
CN114912948A (en) * 2022-04-24 2022-08-16 深圳船奇科技有限公司 Cloud service-based cross-border e-commerce big data intelligent processing method, device and equipment

Similar Documents

Publication Publication Date Title
CN112308624A (en) Internet-based online commodity sales prediction method and equipment
CN109740793B (en) Inventory optimization method based on probability demand distribution
WO2019001120A1 (en) Method and system for processing dynamic pricing data of commodity
Glock Lead time reduction strategies in a single-vendor–single-buyer integrated inventory model with lot size-dependent lead times and stochastic demand
US8650062B2 (en) Automated replenishment using an economic profit quantity
Wang et al. Improving inventory effectiveness in RFID-enabled global supply chain with Grey forecasting model
CN111160968A (en) SKU-level commodity sales prediction method and device
JP6514342B2 (en) Online forecasting system and method
Lejarza et al. An efficient optimization framework for tracking multiple quality attributes in supply chains of perishable products
JP5242988B2 (en) Integrated demand prediction apparatus, integrated demand prediction method, and integrated demand prediction program
CN115689451A (en) Method, device, terminal and medium for determining replenishment quantity of off-line retail store
CN114549046A (en) Sales prediction method, system, device and storage medium based on fusion model
CN113449939B (en) Inventory data prediction method, apparatus, computing device and medium
Brander et al. Lot sizes in a capacity constrained facility—a simulation study of stationary stochastic demand
JP5551806B2 (en) Integrated demand prediction apparatus, integrated demand prediction method, and integrated demand prediction program
CN114239989A (en) Method, system, equipment and storage medium for calculating material demand plan
JP2006228035A (en) Selecting method and system of inventory replenishment model
CN110689278A (en) Sheet metal material management method and system, storage medium and electronic equipment
CN115907848A (en) Sales prediction method, sales prediction system, work machine, electronic device, and computer medium
Trapero et al. Demand forecasting under lost sales stock policies
Duc et al. Approximating measures of performance of a periodic review inventory system by using markov chain
CN116342042B (en) Goods supplementing method and device and storage medium
CN117541411B (en) Construction method and system of financial prediction model based on big data processing
Tanaka et al. Inventory management method with demand forecast in e-commerce
JP7438008B2 (en) Product sales volume prediction method, device and program, order amount determination method, device and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination