Automatic analysis methods, analysis tools, equipment and media for AB experimental data
By automatically obtaining and querying the SQL code of AB experiment data on the data observation platform, the problem of missing indicators and long time consumption in manual analysis is solved, and efficient AB experiment data analysis is achieved.
Patent Information
- Application Number
- CN202410367682.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-03-28
AI Technical Summary
In the existing technology, manual analysis of AB experiment data is prone to problems such as missing indicators, long analysis time, and low efficiency.
By implementing the automatic analysis method on the data observation platform, the SQL codes of the target monitoring indicators are obtained, and based on these codes, the AB experiment analysis results are queried in the database to avoid missing indicators in manual analysis and improve the analysis efficiency.
It realizes automatic analysis of AB experimental data, avoids missing indicators, significantly improves analysis efficiency, and simplifies the analysis process of AB experimental data.
Smart Images

Figure CN118170790B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an automatic analysis method, analysis tool, equipment and medium for AB experimental data. Background Art
[0002] An AB experiment is an experiment conducted to verify the effectiveness of a product's capabilities or strategies by randomly dividing the product's users into two parts, an experimental group and a control group, and comparing the performance of the two groups of users.
[0003] In order to analyze AB experiment data, a data observation platform is usually used to connect to the experimental data. The data observation platform provides a data overview including multiple experimental data indicators (for example, daily click volume, monthly click rate, new user ratio, etc.), and then analysts calculate the indicator data of the AB experiment based on the data indicator dashboard to obtain the AB experiment results. However, since an AB experiment analysis project often relies on the analysis of hundreds of experimental data indicators, in actual applications, it is not only easy to miss the data indicator analysis, but also the analysis takes a long time, and the analysis efficiency of AB experiment data is low. Summary of the invention
[0004] The embodiments of the present invention provide an automatic analysis method, analysis tool, device and medium for AB experimental data, aiming to solve the technical problems of low analysis efficiency such as omission of indicator analysis and long analysis time when manually analyzing AB experimental data in the prior art.
[0005] In a first aspect, an embodiment of the present invention provides an automatic analysis method for AB experimental data, which is applied to an analysis tool, wherein the analysis tool is communicatively connected to a target data observation platform, and the method comprises:
[0006] Based on the target overview identifier input by the user, each target monitoring indicator included in the corresponding target monitoring overview is obtained; the target monitoring overview is a monitoring overview displayed by the target data observation platform based on the data in the target database, and the monitoring overview includes one or more monitoring indicators;
[0007] For each of the target monitoring indicators, obtain a target SQL code corresponding to the target monitoring indicator; the target SQL code is determined based on a query indicator field carried in an original SQL code corresponding to the target monitoring indicator in the target data observation platform, and the target SQL code indicates one or more target fields associated with the query indicator field required for querying an indicator value corresponding to a preset AB experimental analysis indicator of the target monitoring indicator;
[0008] Performing a query in the target database based on each of the target SQL codes to obtain a target query result;
[0009] The indicator value corresponding to the preset AB experiment evaluation indicator for each of the target monitoring indicators is determined according to the target query result, and the AB experiment analysis result corresponding to the target monitoring overview is generated according to the indicator value corresponding to each of the target monitoring indicators.
[0010] In a second aspect, an embodiment of the present invention provides an analysis tool, the analysis tool is communicatively connected to a target data observation platform, and the analysis tool includes:
[0011] A first acquisition unit is used to acquire each target monitoring indicator included in the corresponding target monitoring overview based on the target overview identifier input by the user; the target monitoring overview is a monitoring overview displayed by the target data observation platform based on the data in the target database, and the monitoring overview includes one or more monitoring indicators;
[0012] A second acquisition unit is used to acquire, for each of the target monitoring indicators, a target SQL code corresponding to the target monitoring indicator; the target SQL code is determined based on a query indicator field carried in an original SQL code corresponding to the target monitoring indicator in the target data observation platform, and the target SQL code indicates one or more target fields associated with the query indicator field required for querying an indicator value corresponding to a preset AB experimental analysis indicator of the target monitoring indicator;
[0013] A data query unit, configured to query the target database based on each target SQL code to obtain a target query result;
[0014] A data analysis unit is used to determine the indicator value corresponding to the preset AB experiment evaluation indicator for each of the target monitoring indicators according to the target query result, and generate the AB experiment analysis result corresponding to the target monitoring overview according to the indicator value corresponding to each of the target monitoring indicators.
[0015] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the automatic analysis method of the AB experimental data of the first aspect mentioned above is implemented.
[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the automatic analysis method of AB experimental data of the first aspect mentioned above.
[0017] The present application is based on a monitoring overview including multiple monitoring indicators provided by a target data observation platform for a data source (i.e., a target database). After obtaining a target overview identifier input by a user, each target monitoring indicator included in the corresponding target monitoring overview is obtained based on the target overview identifier, and for each target monitoring indicator, a target SQL code corresponding to the target monitoring indicator is obtained; wherein, the target SQL code is determined based on a query indicator field carried in an original SQL code corresponding to the target monitoring indicator in the target data observation platform, and the target SQL code indicates one or more target fields associated with the query indicator field required for querying to determine an indicator value corresponding to a preset AB experimental analysis indicator of the target monitoring indicator; on this basis, a query is performed in the target database based on each of the target SQL codes to obtain a target query result, and then the indicator value corresponding to the preset AB experimental evaluation indicator for each of the target monitoring indicators is determined according to the target query result, and the AB experimental analysis result corresponding to the target monitoring overview is generated according to the indicator value corresponding to each of the target monitoring indicators. When it is necessary to use the target monitoring indicator to perform AB experimental analysis on the data in the target database, the present application modifies the query field of the SQL code (original SQL code) of the target monitoring indicator in the data overview provided by the target data observation platform to obtain the target SQL code that can query all target fields required for AB experimental analysis on the target monitoring indicator, and then execute the target SQL code, and determine the indicator value corresponding to the preset AB experimental evaluation indicator of the target monitoring indicator based on the obtained target query result, and then generate the AB experimental analysis result corresponding to the target monitoring overview according to the indicator value corresponding to each of the target monitoring indicators, thereby realizing automatic analysis of each target monitoring indicator of the AB experiment, avoiding the omission of indicators that is easy to occur in manual analysis, and improving analysis efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0019] Figure 1 A schematic diagram of a first flow chart of an automatic analysis method of AB experimental data provided by an embodiment of the present invention;
[0020] Figure 2 A schematic diagram of a sub-process of an automatic analysis method of AB experimental data provided by an embodiment of the present invention;
[0021] Figure 3A schematic diagram of another sub-flow of the automatic analysis method of AB experimental data provided by an embodiment of the present invention;
[0022] Figure 4 A schematic block diagram of an analysis tool provided in an embodiment of the present invention;
[0023] Figure 5 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0026] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0027] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0028] The present invention provides an automatic analysis method, analysis tool, device and medium for AB experimental data, aiming to solve the technical problems of low analysis efficiency such as omission of indicator analysis and long analysis time when manually analyzing AB experimental data in the prior art. The execution subject of the automatic analysis method for AB experimental data can be the analysis tool provided in the embodiment of the present application, or a computer device integrated with the analysis tool; wherein the analysis tool can be implemented in hardware or software, the computer device can be a terminal or a server, and the terminal can be a smart phone, a tablet computer, a PDA, or a laptop computer, etc.
[0029] For ease of understanding, the technical terms and related principles involved in the embodiments of the present application are first introduced below.
[0030] Data observation platform: a data platform that provides data observation services, such as Gandalf, Sensors, and other data platforms; the data observation platform is connected to the data source upstream (i.e., the target database) and provides observation-based data display functions according to user needs, including data overview, etc.
[0031] Monitoring Overview: Add a data overview of the monitoring status. Users generate a monitoring overview by selecting one or more data indicators (i.e. monitoring indicators) to be monitored on the data observation platform. The monitoring overview includes chart information of the one or more data indicators, showing the specific values and / or change trends of the data indicators.
[0032] AB experiment: also known as AB test, is used to verify the advantages and disadvantages of two different product strategies. During the experiment, users are randomly divided into two different strategies (i.e., experimental group and control group) while keeping other variables unchanged. After a certain period of experiment, data of the two strategies are collected, and statistical indicators (for example, Z value, P value) are calculated on the collected data to analyze the differences in indicators of the two groups of strategies to judge the advantages and disadvantages of the strategies.
[0033] In the process of using hypothesis testing method to conduct AB experimental analysis, two hypotheses are usually proposed, namely the null hypothesis and the alternative hypothesis. The null hypothesis is usually that the indicators of the experimental group and the control group are the same and there is no significant difference; while the alternative hypothesis is that the indicators of the experimental group and the control group are different and there is a significant difference. Regarding the truth or falsity of these two hypotheses, in AB experiments, there are mainly two types of errors: the first type of error (i.e., the error of discarding the true) and the second type of error (the error of taking the false). Whether we focus on the first type of error (the error of discarding the true) or the second type of error (the error of taking the false), we need to calculate the P value (p-value). The P value is used to determine whether there is a significant difference between the experimental group and the control group. Its meaning is the probability of the experimental sample situation under the condition that the null hypothesis is true. Specifically, we usually set a significance level (such as 0.05), that is, the probability of the first type of error we are willing to accept. When the calculated P value is less than this significance level, we reject the null hypothesis and believe that there is a significant difference between the experimental group and the control group.
[0034] To calculate the P value, you need to select a test method. Common test methods include t-test, Z-test, chi-square test, analysis of variance, etc.
[0035] Among them, the Z test is a statistical test method used to compare the differences in sample means. The Z test uses the theory of standard normal distribution (i.e., Z distribution) to infer the probability of a difference, thereby comparing whether the difference between two means is significant. The Z test is generally used in the case of large samples (i.e., the sample size is greater than 30). In a specific embodiment of the present application, when applied to AB testing with a large sample size and applicable to the judgment of the sample mean, the Z test method is used to calculate the P value.
[0036] In the Z distribution, let:
[0037] The mean value of the experimental group is The mean of the control group
[0038] The expectation of the mean of the experimental group is μ b , the expectation of the mean of the control group is μ a ;
[0039] The variance of the whole represented by the experimental group is σ b 2 , the variance of the population represented by the control group is σ a 2 ;
[0040] The number of samples in the experimental group n b 、Number of samples in the control group a ;
[0041] Then the transformation formula of z distribution is:
[0042]
[0043] Since (μ b -μ a ) is generally 0. In this case,
[0044]
[0045] To solve the Z value, we need to determine the mean of the experimental group. The mean of the control group The variance of the population represented by the experimental group is σ b 2 , the variance of the population represented by the control group σ a 2 , and the number of samples n in the experimental group and the control group b 、n a .
[0046] In AB experiments, the data indicators of AB experiments can be divided into rate indicators (such as click-through rate, penetration rate, retention rate, etc.) and absolute value indicators (average number of times, duration, etc.), among which:
[0047] For absolute value indicators:
[0048] The indicator value itself can be regarded as an average We also need to obtain the sample size (n a 、n b ) and variance (σ a 2 , σ b 2 ), and the variance is based on the sample variance S b 2 , S a 2 Estimate the population variance σ b 2 and σ a 2 , at this time, the Z value calculation formula is:
[0049]
[0050] For rate indicators:
[0051] (1) When the rate indicator satisfies the binomial distribution, the value of the rate indicator can be understood as the probability of success in a Bernoulli experiment (for example, when users are faced with the choice of whether to use a function, there are only two options: "yes" and "no". Compared with the Bernoulli experiment, the value of the rate indicator can be understood as the probability of "success" / "occurrence").
[0052] According to the central limit theorem, when the number of samples is large enough, the sample mean distribution follows a mean of μ and a variance of σ. 2 Normal distribution, assuming that the values of the rate index experimental group and control group are P b and P a ;
[0053] The mean value of the control group was P a , variance σ 2 a =P a ×(1-P a );
[0054] The mean value of the experimental group is P b , variance σ 2 b =P b ×(1-P b );
[0055] According to the properties of normal distribution, the random variable "mean difference between experimental group and control group" obeys P b -P a is the expectation and the variance is Normal distribution of
[0056] At this time, the Z value calculation formula is:
[0057]
[0058] It can be seen that we need to obtain the sample size n a 、n b , in order to calculate z.
[0059] (2) When the rate indicator does not satisfy the binomial distribution, it is necessary to calculate the Z value based on the specific sample details corresponding to the rate indicator.
[0060] Once the Z value is calculated, the corresponding P value can be found by looking up the Z value table.
[0061] Based on this, see Figure 1 , Figure 1 A flow chart of an automatic analysis method for AB experimental data provided in one embodiment of the present invention is provided. The automatic analysis method for AB experimental data is applied to an analysis tool, and the automatic analysis tool is communicatively connected with a target data observation platform. The method specifically includes the following steps S101 to S104.
[0062] Step S101, based on the target overview identifier input by the user, obtain each target monitoring indicator included in the corresponding target monitoring overview; the target monitoring overview is a monitoring overview displayed by the target data observation platform based on the data in the target database, and the monitoring overview includes one or more monitoring indicators.
[0063] Among them, the above-mentioned target overview identifier is the identifier corresponding to the above-mentioned target monitoring overview, and the target data observation platform is the above-mentioned data observation platform that provides the target monitoring overview; the target data observation platform displays the monitoring overview based on the data in the target database.
[0064] In this embodiment, when the user needs to conduct an AB experimental analysis on a project, the user inputs the identifier corresponding to the target monitoring overview including all monitoring indicators that need to be analyzed for the project (i.e., the target overview identifier) into the above-mentioned analysis tool, and the analysis tool can then obtain all monitoring indicators included in the corresponding target monitoring overview based on the target overview identifier, i.e., the target monitoring indicators.
[0065] In order to obtain the target monitoring indicators, in the specific implementation, the chart information corresponding to each target monitoring indicator in the target monitoring overview corresponding to the target overview identifier can be obtained based on the query interface provided by the target data observation platform, that is, the target monitoring indicators are obtained; in some embodiments, when the target data observation platform does not provide a query interface, the interface of the target monitoring overview can also be obtained by crawling, and then the chart information corresponding to all the target monitoring indicators in the interface can be parsed, that is, the target monitoring indicators are obtained.
[0066] Step S102: For each of the target monitoring indicators, obtain the target SQL code corresponding to the target monitoring indicator; the target SQL code is determined based on the query indicator field carried in the original SQL code corresponding to the target monitoring indicator in the target data observation platform, and the target SQL code indicates the query for one or more target fields associated with the query indicator field required to determine the indicator value corresponding to the preset AB experimental analysis indicator of the target monitoring indicator.
[0067] Among them, the above-mentioned preset AB experimental analysis indicators are statistical indicators required for AB experimental analysis. In a specific implementation, the preset AB experimental analysis indicators may be standard deviations, Z values, P values, etc. In this embodiment, since the AB experimental analysis needs to analyze each target monitoring indicator, that is, it is necessary to determine the indicator value corresponding to the preset AB experimental analysis indicator corresponding to each target monitoring indicator, the target SQL code corresponding to the target monitoring indicator should be obtained for each target monitoring indicator. The target SQL code is used to query all target fields required to determine the indicator value corresponding to the preset AB experimental analysis indicator for the target monitoring indicator.
[0068] In this embodiment, in order to quickly determine the target SQL code that can query all the target fields required, the target SQL code is determined by relying on the original SQL code corresponding to the target monitoring indicator in the target data observation platform. Among them, the original SQL code is the underlying SQL code corresponding to the target monitoring indicator (corresponding chart information) in the target data overview provided by the target data observation platform. The target data observation platform provides a data overview function for the target monitoring indicator based on the underlying SQL code, and relies on the field parameters carried in the underlying SQL code provided by the target data observation platform, especially the query indicator field, to determine the field parameters of the representation method of the target field to be queried in the target SQL code.
[0069] In a specific implementation, the target SQL code can modify the parameters of the query field of the original SQL code according to the query indicator field carried in the original SQL code to obtain the target SQL code that can query all target fields. The query indicator field is the indicator field after the query keyword Select in the original SQL code. It can be understood that the query keyword Select can include one or more query objects. When the query object is an indicator object, the query object is the above-mentioned query indicator field.
[0070] For example, taking the original SQL code "SELECT COUNT(clicks) / COUNT(views) AS click_rateFROM website_data WHERE date='2023-01-01" as an example, the query indicator field in the original SQL code is COUNT(clicks) / COUNT(views). On the basis of the query indicator field, the query indicator field is associated with two parameter fields, namely, click volume COUNT(clicks) and page views COUNT(views). When click volume is required for indicator analysis, COUNT(clicks) is added as the target field to the query keyword Select in the original SQL code to obtain the target SQL code.
[0071] In the specific implementation, in order to determine the original SQL code corresponding to the target monitoring indicator, the chart information corresponding to the target monitoring indicator can be parsed to obtain key parameters, and then the underlying SQL code corresponding to the chart information can be queried through the query interface provided by the target data observation platform based on the key parameters, that is, the above-mentioned original SQL code.
[0072] In actual applications, in order to facilitate the rapid determination of the target SQL code corresponding to each target monitoring indicator, the target SQL code corresponding to each target monitoring indicator can be stored, and a "monitoring indicator-target SQL code" correspondence table is maintained. When the target SQL code corresponding to the target monitoring indicator needs to be obtained, first query whether the target SQL code corresponding to the target monitoring indicator exists in the "monitoring indicator-target SQL code" correspondence table. If it exists, the target SQL code is directly obtained from the "monitoring indicator-target SQL code" correspondence table. If it does not exist, the target SQL code is generated based on the above original SQL code corresponding to the target monitoring indicator, and added to the above "monitoring indicator-target SQL code" correspondence table.
[0073] Specifically, in one embodiment, the target SQL code includes at least a first target SQL code, and the preset AB experiment analysis index includes a Z value and a P value; based on this, Figure 2 As shown, the target SQL code corresponding to the target monitoring indicator can be determined based on the following steps S201 to S207.
[0074] Step S201: Determine the target indicator type corresponding to the query indicator field in the original SQL code corresponding to the target monitoring indicator based on a preset indicator type parsing strategy; the target indicator type is a rate indicator type or a value indicator type.
[0075] The above indicator type parsing strategy is used to perform indicator type parsing on the query indicator field in the original SQL code to obtain the target indicator type corresponding to the query indicator field.
[0076] Specifically, in one embodiment, the target indicator type corresponding to the query indicator field may be determined in the following manner:
[0077] Parsing the Select field in the original SQL code using an SQL parsing tool to obtain the query index field;
[0078] Determine whether the query index field has a numerator field and a denominator field;
[0079] When the query indicator field has a numerator field and a denominator field, determining that the target indicator type corresponding to the query indicator field is a rate indicator type;
[0080] When the query indicator field does not have a numerator field and a denominator field, it is determined that the target indicator type corresponding to the query indicator field is a value indicator type.
[0081] The above-mentioned SQL parsing tool is used to parse SQL code. In specific implementation, the SQL parsing tool may be a sqlparse parsing tool.
[0082] In this embodiment, the SQL parsing tool is first used to parse the query indicator field in the original SQL code, and then the target indicator type corresponding to the query indicator field is determined based on whether the query indicator field has a numerator field and a denominator field, thereby realizing the rapid determination of the target indicator type of the query indicator field in the original SQL code.
[0083] Step S202: When the target indicator type is a rate indicator type, determine whether the numerator field of the query indicator field conforms to the binomial distribution. If so, execute the following step S203; otherwise, execute the following step S204.
[0084] In this embodiment, when the target indicator type is a rate indicator type, whether the numerator field of the query indicator field conforms to the binomial distribution determines whether it is necessary to additionally obtain the numerator field of the query indicator field as sample details, and then use the sample details to calculate the indicator values corresponding to the preset AB experimental analysis indicators such as Z value and P value.
[0085] Step S203: Adding a denominator field of the query index field to the original SQL code to obtain an SQL code as the first target SQL code.
[0086] In this embodiment, when the target indicator type is a rate indicator type and the numerator field of the query indicator field conforms to the binomial distribution, according to the relevant principles and formula (2) introduced above, the query indicator field is used as a rate indicator. In order to determine the Z value and the P value, it is only necessary to further obtain the sample size, that is, the denominator field of the rate indicator. Therefore, the SQL code obtained by adding the denominator field of the query indicator field to the original SQL code is used as the first target SQL code.
[0087] Step S204: Adding the SQL code obtained by querying the denominator field of the query index field to the original SQL code as the first target SQL code, replacing the query index field with the numerator field of the query index field in the original SQL code, and adding the SQL code obtained by Group by the denominator field of the query index field as the second target SQL code, to obtain the target SQL code including the first target SQL code and the second target SQL code.
[0088] In this embodiment, when the target indicator type is a rate indicator type and the numerator field of the query indicator field does not conform to the binomial distribution, formula (2) cannot be used to calculate the Z value, and the Z value needs to be calculated based on the sample details. Therefore, a second target SQL code is further generated, and the sample details are then obtained using the second target SQL code.
[0089] When calculating the Z value using sample details, the mean difference and standard deviation of the two sets of data are involved. The specific steps include:
[0090] 1) Calculate the mean difference: Calculate the mean difference between the experimental group and the control group (here you need to take out all the data to find the mean).
[0091] 2) Calculate the combined standard deviation: Calculate the combined standard deviation of the experimental group and the control group data.
[0092] 3) Calculate standard error: Use the combined standard deviation to calculate the standard error.
[0093] 4) Calculate the Z value: Calculate the Z value using the mean difference and standard error.
[0094] Step S205: When the target indicator type is a value indicator type, determine whether the query indicator field conforms to the binomial distribution; if so, execute the following step S206; otherwise, execute the following step S207.
[0095] In this embodiment, when the target indicator type is a value indicator type, the query indicator field itself represents the average value. Whether the query indicator field conforms to the binomial distribution determines whether it is necessary to additionally obtain the sample details corresponding to the query indicator field, and then use the sample details to calculate the indicator values corresponding to the preset AB experimental analysis indicators such as Z value and P value.
[0096] Step S206: Use the original SQL code as the first target SQL code.
[0097] In this embodiment, when the target indicator type is a value indicator type and the query indicator field conforms to the binomial distribution, according to the relevant principles and formula (1) introduced above, the query indicator field is used as an absolute value indicator. In order to determine the Z value and the P value, it is only necessary to further obtain the sample size. In addition, since the effects of the sample size on the control group and the experimental group can offset each other in the process of calculating the Z value and the P value, the query indicator field obtained by the original SQL code can already meet the conditions for determining the Z value and the P value, and thus the original SQL code is directly used as the first target SQL code.
[0098] In the specific implementation, in order to facilitate the unified use of sample size, the maximum sample size value preset in the project can be used as the sample size in the process of calculating the Z value and P value of the above-mentioned value indicators. At this time, a default SQL for querying the maximum sample size can be added as the above-mentioned target SQL code.
[0099] Step S207: Use the original SQL code as the first target SQL code, and use the SQL code obtained by adding the denominator field of the query index field corresponding rate index Group by to the original SQL code as the second target SQL code, to obtain the target SQL code including the first target SQL code and the second target SQL code.
[0100] Among them, when the query indicator field is a value indicator type, the rate indicator corresponding to the query indicator field is a rate indicator of the same concept. Taking the query indicator field of the value indicator type - click volume as an example, the rate indicator corresponding to the query indicator field is the click rate.
[0101] In this embodiment, when the target indicator type is a value indicator type and the query indicator field does not conform to the binomial distribution, it is also necessary to rely on the sample details to calculate the Z value, so the second target SQL code is further generated, and then the sample details can be obtained using the second target SQL code. The step of calculating the Z value using the sample details can refer to the description in the above step S204, which is not repeated here.
[0102] In this embodiment, the target SQL code that can query all target fields used to determine the indicator values of the preset AB experimental analysis indicators is determined based on the indicator type corresponding to the query indicator field in the original SQL code and whether the binomial distribution is satisfied, so that automatic analysis of the target monitoring indicators can be performed on this basis, and the AB experimental analysis results corresponding to the target monitoring overview can be obtained.
[0103] Step S103: query the target database based on each of the target SQL codes to obtain a target query result.
[0104] In this embodiment, after obtaining the target SQL code corresponding to each target monitoring indicator, the target SQL code can be used to query in the target database, and the obtained query result is used as the target query result.
[0105] To speed up the query, in one embodiment, the target query result includes a first query result and a second query result; based on this, the above step S103 may further include the following steps:
[0106] Performing field synthesis on the first target SQL code in each of the target SQL codes to obtain a first synthesized SQL code;
[0107] Performing field synthesis on the second target SQL code in each of the target SQL codes to obtain a second synthesized SQL code;
[0108] The first synthetic SQL code and the second synthetic SQL code are used to query the target database to obtain the first query result and the second query result.
[0109] In the specific implementation, the above field synthesis process may be to synthesize the SQL codes with the same corresponding query conditions (for example, From field, Where field), that is, to synthesize the fields after the query keyword to obtain the synthesized SQL code.
[0110] In some implementations, the synthesizable SQL codes may be further classified according to preset classification rules, and then code synthesis may be performed according to the categories. The specific classification method may be determined according to actual conditions.
[0111] In this embodiment, each target monitoring indicator corresponds to a target SQL code, which includes a first target SQL code and may further include a second target SQL code. For the first target SQL code corresponding to all target monitoring indicators, a first synthesized SQL code is obtained by performing field synthesis, and then the first synthesized SQL code is used to replace the first target SQL code for query, thereby improving the query efficiency of the data corresponding to the first target SQL code. Similarly, the query efficiency of the data corresponding to the second target SQL code is improved by performing field synthesis on the second target SQL code instead of the second target SQL code.
[0112] In practical applications, in order to use templated maintenance of the target SQL code, the target SQL code obtained above may be a target SQL code that has been templated preprocessed for a preset query condition type, and the templated preprocessed target SQL code includes placeholders corresponding to a plurality of preset query condition types. Based on this, the above step S103 may include the following steps:
[0113] Obtaining the condition value corresponding to the preset type query condition;
[0114] Writing the condition value into the corresponding placeholder in each target SQL to obtain the SQL code to be executed;
[0115] The SQL code to be executed is executed on the target database to obtain the target query result.
[0116] Among them, in specific implementation, the above-mentioned preset query condition types may include version information, date conditions, etc. To facilitate the acquisition of version information, the above-mentioned analysis tool may provide a monitoring version module for monitoring whether there is a new experiment release in the product release platform. When there is a new experiment release, the specific version information corresponding to the new experiment is added to the version table to be monitored. On this basis, the scheduler in the analysis tool obtains the version information in the version table to be monitored.
[0117] Step S104: determining the indicator value corresponding to the preset AB experiment evaluation indicator for each of the target monitoring indicators according to the target query result, and generating the AB experiment analysis result corresponding to the target monitoring overview according to the indicator value corresponding to each of the target monitoring indicators.
[0118] In this embodiment, the target query result includes a target field that can determine the indicator value corresponding to the preset AB experimental evaluation indicator of the target monitoring indicator. After obtaining the target query result, the indicator value corresponding to the preset AB experimental evaluation indicator of the target monitoring indicator is determined according to the target query result, and then the AB experimental analysis result corresponding to the target monitoring overview is generated based on the indicator value corresponding to the target monitoring indicator.
[0119] Among them, the above-mentioned AB experimental analysis results are analysis results obtained based on the indicator values corresponding to each of the target monitoring indicators. The analysis results can indicate whether the strategy to be analyzed in the AB experimental analysis project is feasible, as well as the relevant confidence level, etc.
[0120] In order to determine the index value corresponding to the preset AB experimental evaluation index of the target monitoring index according to the target query result, in one embodiment, the index value corresponding to the preset AB experimental evaluation index of the target monitoring index includes the index value corresponding to the preset AB experimental evaluation index corresponding to each indicator combination corresponding to the target monitoring index; based on this, Figure 3 As shown, determining the indicator value corresponding to the preset AB experiment evaluation indicator for each target monitoring indicator according to the target query result in the above step S104 may include the following steps S301 to S309.
[0121] S301. Generate multiple segmentation indicators based on the first query result and the fields carried in the first synthetic SQL code.
[0122] In this embodiment, based on the query results obtained, in order to achieve more detailed analysis, multiple segmentation indicators are generated according to the first query results and the fields carried in the first synthetic SQL code.
[0123] Specifically, in one embodiment, the subdivision index includes a secondary subdivision index and a tertiary subdivision index; based on this, the subdivision index can be determined based on the following method:
[0124] When the first target SQL code includes a Group by field, multiple target values of the Group by field in the first query result are obtained, and each of the target values is used as the secondary segmentation indicator;
[0125] When the first target SQL code includes a plurality of the query index fields, the index corresponding to each of the query index fields is used as the third-level subdivision index.
[0126] The multiple target values of the Group by field refer to the values of the specific content of the field targeted by the Group by field, and each different value of the specific content of the field targeted by the Group by field is taken as a target value.
[0127] In this embodiment, when the first target SQL code includes a Group by field, multiple target values of the Group by field in the first query result are used as secondary subdivision indicators. When the first target SQL code includes multiple query indicator fields, the indicators corresponding to each query indicator field are used as the third-level subdivision indicators. It is possible to further classify by query field on the basis of classification and aggregation based on different actual values of the Group by field, thereby improving the precision of data aggregation.
[0128] S302: For each target monitoring indicator, combine the target monitoring indicator with one or more of the subdivided indicators to obtain a plurality of indicator combinations corresponding to the target monitoring indicator.
[0129] When selecting specific segmentation indicators for combination, it can be determined whether the segmentation indicator is a field carried in the target SQL code corresponding to the target monitoring indicator. If so, the segmentation indicator is determined as the target segmentation indicator, and then the target monitoring indicator can be arbitrarily combined with the target segmentation indicator to obtain multiple indicator combinations corresponding to the target monitoring indicator.
[0130] For each of the indicator combinations obtained in the above S301, the following steps S303 to S309 are executed to obtain, and then the Z value and P value corresponding to each of the indicator combinations are obtained.
[0131] S303: Gather first result data corresponding to the indicator combination from the first query result, and gather second result data corresponding to the indicator combination from the second query result.
[0132] In this embodiment, in order to achieve refined analysis, multiple indicator combinations have been generated. For each indicator combination, corresponding first result data and second result data are summarized, so that analysis is performed on each indicator combination.
[0133] S304: When the first result data includes a first query result for a query indicator field of a corresponding rate indicator type, use the first query result as conversion rate data of the indicator combination.
[0134] S305: When the first result data includes a second query result for the denominator field of the query indicator field of the corresponding rate indicator type, use the second query result as the sample size data of the indicator combination.
[0135] In this embodiment, for the first result data obtained by querying according to the first synthetic SQL code, when the query indicator field corresponding to the target monitoring indicator in the indicator combination is a rate indicator type (that is, the query indicator field in the original SQL code corresponding to the target monitoring indicator is a rate indicator type), the first result data includes the query indicator field (that is, the first query result) and the denominator field of the query indicator field with the added query (that is, the first query result). For the query indicator field (that is, the first query result), it is used as conversion rate data, and for the denominator field of the query indicator field (that is, the first query result), it is used as sample size data.
[0136] S306: When the first result data includes a third query result for a query indicator field of a corresponding value indicator type, use the third query result as sample value data of the indicator combination.
[0137] In this embodiment, for the first result data obtained by querying based on the first synthetic SQL code, when the query indicator field corresponding to the target monitoring indicator in the indicator combination is a value indicator type (that is, the query indicator field in the original SQL code corresponding to the target monitoring indicator is a value indicator type), the first result data includes the query indicator field (that is, the third query result), and the query indicator field (that is, the third query result) is used as sample value data.
[0138] S307: When the second result data includes a fourth query result for a numerator field of a query indicator field of a corresponding rate indicator type, use the fourth query result as sample value detail data of the indicator combination.
[0139] In this embodiment, when the query indicator field in the original SQL code corresponding to the target monitoring indicator in the indicator combination does not conform to the binomial distribution, the second result data of the indicator combination exists. When the query indicator field is a rate indicator type, the second result data includes the numerator field of the query indicator field classified according to the specific value of the numerator field of the query indicator field (i.e., the fourth query result), that is, as the sample value detail data.
[0140] S308: When the second result data includes a fifth query result for a query indicator field of a corresponding value indicator type, use the fifth query result as the sample value detail data of the indicator combination.
[0141] In this embodiment, when the query indicator field is of value indicator type, the second result data includes the query indicator field classified according to the specific values of the query indicator field content (ie, the fifth query result), that is, as sample value detail data.
[0142] S309: Determine the Z value and P value corresponding to the indicator combination based on the conversion rate data, the sample size data, the sample value data, and the sample value detail data.
[0143] In this embodiment, through the above steps S301 to S309, the Z value and P value for each indicator combination are determined based on the target query result, which not only realizes the automatic calculation of the indicator value of the preset AB experiment analysis indicator, but also improves the analysis accuracy of the indicator, realizes the analysis of various indicator combinations, and improves the analysis speed and analysis accuracy of the AB experiment, which is beneficial to improve the accuracy of the AB experiment analysis results.
[0144] In summary, the present application is based on a monitoring overview including multiple monitoring indicators provided by a target data observation platform. After obtaining the target overview identifier input by the user, the target monitoring indicators included in the corresponding target monitoring overview are obtained based on the target overview identifier, and for each target monitoring indicator, the target SQL code corresponding to the target monitoring indicator is obtained; wherein, the target SQL code is determined based on the query indicator field carried in the original SQL code corresponding to the target monitoring indicator in the target data observation platform, and the target SQL code indicates the query for determining one or more target fields associated with the query indicator field required for the indicator value corresponding to the preset AB experimental analysis indicator of the target monitoring indicator; on this basis, based on each of the target SQL codes, a query is performed in the target database to obtain a target query result, and then the indicator value corresponding to the preset AB experimental evaluation indicator for each of the target monitoring indicators is determined according to the target query result, and the AB experimental analysis result corresponding to the target monitoring overview is generated according to the indicator value corresponding to each of the target monitoring indicators. When the target monitoring indicator needs to be used for AB experiment analysis, the present application modifies the query field of the SQL code (original SQL code) of the target monitoring indicator in the data overview provided by the target data observation platform to obtain the target SQL code that can query all target fields required for AB experiment analysis for the target monitoring indicator, and then execute the target SQL code, and determine the indicator value corresponding to the preset AB experiment evaluation indicator of the target monitoring indicator based on the obtained target query result, and then generate the AB experiment analysis result corresponding to the target monitoring overview according to the indicator value corresponding to each of the target monitoring indicators, thereby realizing automatic analysis of each target monitoring indicator of the AB experiment, avoiding the omission of indicators that is easy to occur in manual analysis, and improving analysis efficiency.
[0145] The embodiment of the present invention further provides an automatic analysis device for AB experimental data, which is used to perform the steps in any embodiment of the automatic analysis method for AB experimental data described above. Figure 4, Figure 4 The structure diagram of an automatic analysis device 400 for AB experimental data provided by an embodiment of the present invention is shown. The automatic analysis device 400 for AB experimental data specifically includes a first acquisition unit 401, a second acquisition unit 402, a data query unit 403 and a data analysis unit 404, wherein:
[0146] The first acquisition unit 401 is used to acquire each target monitoring indicator included in the corresponding target monitoring overview based on the target overview identifier input by the user; the target monitoring overview is a monitoring overview displayed by the target data observation platform based on the data in the target database, and the monitoring overview includes one or more monitoring indicators.
[0147] The second acquisition unit 402 is used to obtain the target SQL code corresponding to the target monitoring indicator for each of the target monitoring indicators; the target SQL code is determined based on the query indicator field carried in the original SQL code corresponding to the target monitoring indicator in the target data observation platform, and the target SQL code indicates one or more target fields associated with the query indicator field required for querying to determine the indicator value corresponding to the preset AB experimental analysis indicator of the target monitoring indicator.
[0148] The data query unit 403 is used to query the target database based on each target SQL code to obtain a target query result.
[0149] The data analysis unit 404 is used to determine the indicator value corresponding to the preset AB experiment evaluation indicator for each of the target monitoring indicators according to the target query result, and generate the AB experiment analysis result corresponding to the target monitoring overview according to the indicator value corresponding to each of the target monitoring indicators.
[0150] In some embodiments of the present invention, the preset AB experiment analysis index includes a Z value and a P value; the target SQL code includes at least a first target SQL code; the automatic analysis device 400 for AB experiment data further includes a determination unit, and the determination unit is used to:
[0151] Determine the target indicator type corresponding to the query indicator field in the original SQL code corresponding to the target monitoring indicator based on a preset indicator type parsing strategy; the target indicator type is a rate indicator type or a value indicator type;
[0152] When the target indicator type is a rate indicator type, determining whether the numerator field of the query indicator field conforms to a binomial distribution;
[0153] If the numerator field of the query index field conforms to the binomial distribution, the SQL code obtained by adding the denominator field of the query index field to the original SQL code is used as the first target SQL code;
[0154] If the numerator field of the query index field does not conform to the binomial distribution, the SQL code obtained by adding the denominator field of the query index field to the original SQL code is used as the first target SQL code, the query index field is replaced with the numerator field of the query index field in the original SQL code, and the SQL code obtained by Groupbying the denominator field of the query index field is added as the second target SQL code, to obtain the target SQL code including the first target SQL code and the second target SQL code;
[0155] When the target indicator type is a value indicator type, determining whether the query indicator field conforms to a binomial distribution;
[0156] If the query index field conforms to the binomial distribution, the original SQL code is used as the first target SQL code;
[0157] If the query index field does not conform to the binomial distribution, the original SQL code is used as the first target SQL code, and the SQL code obtained by adding the denominator field of the corresponding rate index of the query index field Group by to the original SQL code is used as the second target SQL code, to obtain the target SQL code including the first target SQL code and the second target SQL code.
[0158] In some implementation modes of the present invention, the determining unit is further configured to:
[0159] Parsing the Select field in the original SQL code using an SQL parsing tool to obtain the query index field;
[0160] Determine whether the query index field has a numerator field and a denominator field;
[0161] When the query indicator field has a numerator field and a denominator field, determining that the target indicator type corresponding to the query indicator field is a rate indicator type;
[0162] When the query indicator field does not have a numerator field and a denominator field, it is determined that the target indicator type corresponding to the query indicator field is a value indicator type.
[0163] In some implementations of the present invention, the target query result includes a first query result and a second query result; the data query unit 403 is further configured to:
[0164] Performing field synthesis on the first target SQL code in each of the target SQL codes to obtain a first synthesized SQL code;
[0165] Performing field synthesis on the second target SQL code in each of the target SQL codes to obtain a second synthesized SQL code;
[0166] The first synthetic SQL code and the second synthetic SQL code are used to query the target database to obtain the first query result and the second query result.
[0167] In some embodiments of the present invention, the index value corresponding to the preset AB experiment evaluation index of the target monitoring index includes the index value corresponding to the preset AB experiment evaluation index corresponding to each indicator combination corresponding to the target monitoring index; the data analysis unit 404 is further used to:
[0168] Generate multiple segmentation indicators based on the first query result and the fields carried in the first synthetic SQL code;
[0169] For each of the target monitoring indicators, the target monitoring indicator is combined with one or more of the subdivided indicators to obtain a plurality of indicator combinations corresponding to the target monitoring indicator;
[0170] For each of the indicator combinations, first result data corresponding to the indicator combination is summarized from the first query result, and second result data corresponding to the indicator combination is summarized from the second query result;
[0171] When the first result data includes a first query result for a query indicator field of a corresponding rate indicator type, using the first query result as conversion rate data of the indicator combination;
[0172] When the first result data includes a second query result for the denominator field of the query indicator field of the corresponding rate indicator type, the second query result is used as the sample size data of the indicator combination;
[0173] When the first result data includes a third query result for a query indicator field of a corresponding value indicator type, using the third query result as sample value data of the indicator combination;
[0174] When the second result data includes a fourth query result for the numerator field of the query indicator field of the corresponding rate indicator type, the fourth query result is used as the sample value detail data of the indicator combination;
[0175] When the second result data includes a fifth query result for a query indicator field of a corresponding value indicator type, using the fifth query result as the sample value detail data of the indicator combination;
[0176] Based on the conversion rate data, the sample size data, the sample value data, and the sample value detail data, the Z value and P value corresponding to the indicator combination are determined to obtain the Z value and P value corresponding to each indicator combination.
[0177] In some implementations of the present invention, the subdivision index includes a secondary subdivision index and a tertiary subdivision index; the data analysis unit 404 is further used to:
[0178] When the first target SQL code includes a Group by field, multiple target values of the Group by field in the first query result are obtained, and each of the target values is used as the secondary segmentation indicator;
[0179] When the first target SQL code includes a plurality of the query index fields, the index corresponding to each of the query index fields is used as the third-level subdivision index.
[0180] In some implementations of the present invention, the target SQL code includes placeholders corresponding to a plurality of preset query condition types; the data query unit 403 is further configured to:
[0181] Obtaining the condition value corresponding to the preset type query condition;
[0182] Writing the condition value into the corresponding placeholder in each target SQL to obtain the SQL code to be executed;
[0183] The SQL code to be executed is executed on the target database to obtain the target query result.
[0184] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the automatic analysis device and each unit of the above-mentioned AB experimental data can refer to the corresponding description in the aforementioned method embodiment. For the convenience and brevity of description, it will not be repeated here.
[0185] The automatic analysis device for the AB experimental data can be implemented in the form of a computer program. The computer program can be used in Figure 5 Run on the computer device shown.
[0186] See also Figure 5 , Figure 5 500 is a schematic block diagram of a computer device provided in an embodiment of the present invention. The computer device 500 may be a terminal device such as a smart phone, a tablet computer, a personal computer (PC), etc. Figure 5 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a device bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0187] The storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute an automatic analysis method for AB experimental data.
[0188] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0189] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the automatic analysis method of the AB experiment data.
[0190] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0191] The processor 502 is used to run the computer program 5032 stored in the memory to implement the automatic analysis method of AB experimental data disclosed in the embodiment of the present invention.
[0192] Those skilled in the art will understand that Figure 5 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 5 The embodiments shown are consistent and will not be described again here.
[0193] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0194] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the automatic analysis method of AB experimental data disclosed in the embodiment of the present invention is implemented.
[0195] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0196] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0197] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0198] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0199] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a background server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), disk or optical disk and other media that can store program codes.
[0200] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. An automatic analysis method for AB experimental data, characterized in that: Applied to an analysis tool, the analysis tool is communicatively connected to a target data observation platform, the method comprising: Based on the target overview identifier input by the user, each target monitoring indicator included in the corresponding target monitoring overview is obtained; the target monitoring overview is a monitoring overview displayed by the target data observation platform based on the data in the target database, and the monitoring overview includes one or more monitoring indicators; For each of the target monitoring indicators, obtain a target SQL code corresponding to the target monitoring indicator; the target SQL code is determined based on a query indicator field carried in an original SQL code corresponding to the target monitoring indicator in the target data observation platform, and the target SQL code indicates one or more target fields associated with the query indicator field required for querying an indicator value corresponding to a preset AB experimental analysis indicator of the target monitoring indicator; Performing a query in the target database based on each of the target SQL codes to obtain a target query result; Determine the indicator value corresponding to the preset AB experiment evaluation indicator for each of the target monitoring indicators according to the target query result, and generate the AB experiment analysis result corresponding to the target monitoring overview according to the indicator value corresponding to each of the target monitoring indicators; The preset AB experiment analysis index includes a Z value and a P value; the target SQL code includes at least a first target SQL code; and the method for determining the target SQL code corresponding to the target monitoring index includes: Determine the target indicator type corresponding to the query indicator field in the original SQL code corresponding to the target monitoring indicator based on a preset indicator type parsing strategy; the target indicator type is a rate indicator type or a value indicator type, wherein the rate indicator type is a percentage type, and the value indicator type is a numerical type; When the target indicator type is a rate indicator type, determining whether the numerator field of the query indicator field conforms to a binomial distribution; If the numerator field of the query index field conforms to the binomial distribution, the SQL code obtained by adding the denominator field of the query index field to the original SQL code is used as the first target SQL code; If the numerator field of the query index field does not conform to the binomial distribution, the SQL code obtained by adding the denominator field of the query index field to the original SQL code is used as the first target SQL code, the query index field is replaced with the numerator field of the query index field in the original SQL code, and the SQL code obtained by adding the denominator field of the query index field in Group by is used as the second target SQL code, to obtain the target SQL code including the first target SQL code and the second target SQL code; When the target indicator type is a value indicator type, determining whether the query indicator field conforms to a binomial distribution; If the query index field conforms to the binomial distribution, the original SQL code is used as the first target SQL code; If the query index field does not conform to the binomial distribution, the original SQL code is used as the first target SQL code, and the SQL code obtained by adding the denominator field of the corresponding rate index of the query index field Group by to the original SQL code is used as the second target SQL code, to obtain the target SQL code including the first target SQL code and the second target SQL code.
2. The method according to claim 1, characterized in that The determining, based on a preset indicator type parsing strategy, the target indicator type corresponding to the query indicator field in the original SQL code corresponding to the target monitoring indicator includes: Parsing the Select field in the original SQL code using an SQL parsing tool to obtain the query index field; Determine whether the query index field has a numerator field and a denominator field; When the query indicator field has a numerator field and a denominator field, determining that the target indicator type corresponding to the query indicator field is a rate indicator type; When the query indicator field does not have a numerator field and a denominator field, it is determined that the target indicator type corresponding to the query indicator field is a value indicator type.
3. The method according to claim 1, characterized in that The target query result includes a first query result and a second query result; the query is performed in the target database based on each of the target SQL codes to obtain the target query result, including: Performing field synthesis on the first target SQL code in each of the target SQL codes to obtain a first synthesized SQL code; Performing field synthesis on the second target SQL code in each of the target SQL codes to obtain a second synthesized SQL code; The first synthetic SQL code and the second synthetic SQL code are used to query the target database to obtain the first query result and the second query result.
4. The method according to claim 3, characterized in that The index value corresponding to the preset AB experimental evaluation index of the target monitoring index includes the index value corresponding to the preset AB experimental evaluation index corresponding to each indicator combination corresponding to the target monitoring index; Determining the indicator value corresponding to the preset AB experiment evaluation indicator for each target monitoring indicator according to the target query result includes: Generate multiple segmentation indicators based on the first query result and the fields carried in the first synthetic SQL code; For each of the target monitoring indicators, the target monitoring indicator is combined with one or more of the subdivided indicators to obtain a plurality of indicator combinations corresponding to the target monitoring indicator; For each of the indicator combinations, first result data corresponding to the indicator combination is summarized from the first query result, and second result data corresponding to the indicator combination is summarized from the second query result; When the first result data includes a first query result for a query indicator field of a corresponding rate indicator type, using the first query result as conversion rate data of the indicator combination; When the first result data includes a second query result for the denominator field of the query indicator field of the corresponding rate indicator type, the second query result is used as the sample size data of the indicator combination; When the first result data includes a third query result for a query indicator field of a corresponding value indicator type, using the third query result as sample value data of the indicator combination; When the second result data includes a fourth query result for the numerator field of the query indicator field of the corresponding rate indicator type, the fourth query result is used as the sample value detail data of the indicator combination; When the second result data includes a fifth query result for a query indicator field of a corresponding value indicator type, using the fifth query result as the sample value detail data of the indicator combination; Based on the conversion rate data, the sample size data, the sample value data, and the sample value detail data, the Z value and P value corresponding to the indicator combination are determined to obtain the Z value and P value corresponding to each indicator combination.
5. The method according to claim 4, characterized in that The segmentation index includes a secondary segmentation index and a tertiary segmentation index; the generating multiple segmentation indexes based on the first query result and the fields carried in the first synthetic SQL code includes: When the first target SQL code includes a Group by field, multiple target values of the Group by field in the first query result are obtained, and each of the target values is used as the secondary segmentation indicator; When the first target SQL code includes a plurality of the query index fields, the index corresponding to each of the query index fields is used as the third-level subdivision index.
6. The method according to claim 1, characterized in that The target SQL code includes placeholders corresponding to a plurality of preset query condition types; The querying in the target database based on each of the target SQL codes to obtain a target query result includes: Get the condition value corresponding to the preset type query condition; Writing the condition value into the corresponding placeholder in each target SQL to obtain the SQL code to be executed; The SQL code to be executed is executed on the target database to obtain the target query result.
7. An analysis tool, characterized in that The analysis tool is connected to the target data observation platform in communication, and the analysis tool includes: A first acquisition unit is used to acquire each target monitoring indicator included in the corresponding target monitoring overview based on the target overview identifier input by the user; the target monitoring overview is a monitoring overview displayed by the target data observation platform based on the data in the target database, and the monitoring overview includes one or more monitoring indicators; A second acquisition unit is used to acquire, for each of the target monitoring indicators, a target SQL code corresponding to the target monitoring indicator; the target SQL code is determined based on a query indicator field carried in an original SQL code corresponding to the target monitoring indicator in the target data observation platform, and the target SQL code indicates one or more target fields associated with the query indicator field required for querying an indicator value corresponding to a preset AB experimental analysis indicator of the target monitoring indicator; A data query unit, configured to query the target database based on each target SQL code to obtain a target query result; A data analysis unit, configured to determine an indicator value corresponding to a preset AB experiment evaluation indicator for each of the target monitoring indicators according to the target query result, and generate an AB experiment analysis result corresponding to the target monitoring overview according to the indicator value corresponding to each of the target monitoring indicators; The preset AB experiment analysis index includes a Z value and a P value; the target SQL code includes at least a first target SQL code; the analysis tool also includes a determination unit, and the determination unit is used to: Determine the target indicator type corresponding to the query indicator field in the original SQL code corresponding to the target monitoring indicator based on a preset indicator type parsing strategy; the target indicator type is a rate indicator type or a value indicator type, wherein the rate indicator type is a percentage type, and the value indicator type is a numerical type; When the target indicator type is a rate indicator type, determining whether the numerator field of the query indicator field conforms to a binomial distribution; If the numerator field of the query index field conforms to the binomial distribution, the SQL code obtained by adding the denominator field of the query index field to the original SQL code is used as the first target SQL code; If the numerator field of the query index field does not conform to the binomial distribution, the SQL code obtained by adding the denominator field of the query index field to the original SQL code is used as the first target SQL code, the query index field is replaced with the numerator field of the query index field in the original SQL code, and the SQL code obtained by adding the denominator field of the query index field in Group by is used as the second target SQL code, to obtain the target SQL code including the first target SQL code and the second target SQL code; When the target indicator type is a value indicator type, determining whether the query indicator field conforms to a binomial distribution; If the query index field conforms to the binomial distribution, the original SQL code is used as the first target SQL code; If the query index field does not conform to the binomial distribution, the original SQL code is used as the first target SQL code, and the SQL code obtained by adding the denominator field of the corresponding rate index of the query index field Group by to the original SQL code is used as the second target SQL code, to obtain the target SQL code including the first target SQL code and the second target SQL code.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
