Causal discovery program, causal discovery method, and causal discovery device

The causal search program addresses the challenge of insufficient samples by grouping variables and performing causal searches within and between groups, enabling accurate causal relationship estimation even when sample sizes are limited, thus improving the reliability of causal analysis.

WO2024201796A1PCT designated stage expired Publication Date: 2024-10-03FUJITSU LTD

Patent Information

Application Number
PCT/JP2023/012838
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Conventional causal search methods fail when the number of samples is less than the number of variables, leading to incorrect estimation and overfitting, as they require a large number of samples to accurately determine causal relationships between variables.

Method used

The causal search program classifies variables into groups based on similarity in joint distribution, performs causal searches within and between groups, and aggregates results to estimate causal relationships, allowing for accurate estimation even with insufficient samples.

Benefits of technology

This approach enables the estimation of causal relationships between variables with reduced sample sizes without compromising estimation accuracy, by grouping variables and performing causal searches within and between groups, thereby overcoming the limitations of conventional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023012838_03102024_PF_FP_ABST
    Figure JP2023012838_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention involves: classifying a plurality of variables into two or more groups on the basis of a similarity of the variables on a joint distribution; performing causal discovery between representative variables determined for the two or more groups, respectively; performing, for each of the two or more groups, causal discovery between variables included in each group; and outputting a result of the causal discovery between representative variables and a result of the causal discovery between variables included in each group, to thereby enable estimation of a causal relationship between variables even when the number of samples is insufficient relative to the number of variables.
Need to check novelty before this filing date? Find Prior Art

Description

Causal search program, causal search method, and causal search device

[0001] The present invention relates to a causal search program, a causal search method, and a causal search device.

[0002] Recently, many attempts have been made to infer causal relationships between given variables based on observed values ​​of those variables.

[0003] Causality, as opposed to simple correlation, represents the relationship between changes in variable values.

[0004] For example, if there is a positive (or negative) correlation between x and y, when the value of x is large (or small), the value of y will also be large (or small).

[0005] On the other hand, if there is a positive (or negative) causal relationship from x to y, increasing (or decreasing) the value of x will also increase (or decrease) the value of y.

[0006] Note that the above example shows cases where both correlation and causation are linear relationships. Nonlinear relationships also exist, and in such cases, the relationship is not simply "positive" or "negative," but follows that nonlinear relationship.

[0007] For example, when attempting to plan measures that involve changing values ​​based on the results of data mining or machine learning analysis, causality, not correlation, is required. Specifically, causality is used to estimate problems such as, "Which design parameter x should be changed and how?" to reduce product defect rate y, or "What sales measure x should be implemented and to what extent?" to increase customer purchase rate y.

[0008] Inferring causal relationships from data can be called causal discovery. One method of causal discovery is to determine the causal relationships between desired variables by imposing some assumptions on the causal relationships between variables and estimating the causal relationships that best fit the data from observed values ​​while satisfying those assumptions.

[0009] In the causal discovery method, a model that summarizes mathematical expressions that represent causal relationships between variables and assumptions regarding the distribution of latent variables that cannot be directly observed can be called a structural equation model (SEM). In SEM, latent variables that have causal relationships with observed variables are introduced.

[0010] Known representative SEMs include the Linear non-Gaussian acyclic model (LiNGAM) and the Additive noise causal model (ANM).

[0011] In LiNGAM, for example, DirectLiNGAM is used as the estimation algorithm, and in ANM, for example, RESIT is used as the estimation algorithm.

[0012] In SEM, the causal relationship is expressed by an equation, for example, in LiNGAM the causal relationship is expressed by a linear equation, and in ANM the causal relationship is expressed by an additive noise model equation.

[0013] JP 2012-79755 A JP 2012-226573 A U.S. Patent Application Publication No. 2010 / 0205138 U.S. Patent Application Publication No. 2011 / 0112998

[0014] However, such conventional causal search techniques cannot be applied when the number of samples (the number of observations) is insufficient compared to the number of observed variables, the number of model parameters to be estimated, etc. Although it depends on the type of SEM assumed and its specific estimation algorithm, conventional causal search techniques require, for example, approximately 10 to 100 times the number of samples compared to the number of variables.

[0015] Conventional causal discovery methods, especially in situations where the number of samples is less than the required number, can cause the estimation algorithm to behave unexpectedly, and there is a risk that not only will an accurate estimation be made, but the conventional causal discovery method itself will not work correctly.

[0016] This may be because, for example, the differences between each variable gradually shrink during the iterative processing within the algorithm, and as a result, it is only possible to estimate causal relationships between a certain number of variables that depend on the number of samples, and it becomes impossible to distinguish between other variables. Another possible reason is that, because the number of parameters in the causal relationship formula model is large, overfitting to the model occurs when there are only a small number of samples, and as a result, the algorithm that estimates causal relationships based on the fitting residuals does not function.

[0017] Therefore, it is effective to reduce the number of variables in advance by some method, but reducing the number of variables in this way can induce other problems.

[0018] For example, in a situation where the number of samples is less than the number of variables (number of samples < number of variables), it is necessary to reduce a large number of variables, and even if this can be achieved, the analysis results may not be useful.

[0019] Also, from the viewpoint of the behavior of the method, it is desirable to include as many related variables as possible as observed values ​​in order to estimate appropriate causal relationships.

[0020] In one aspect, an object of the present invention is to make it possible to estimate a causal relationship between variables even when the number of samples is insufficient compared to the number of variables.

[0021] For this reason, this causal search program causes a computer to execute a process of classifying multiple variables into two or more groups based on the similarity of the variables on a joint distribution, conducting a causal search between representative variables determined for each of the two or more groups, conducting a causal search between the variables included in each of the two or more groups, and outputting the results of the causal search between the representative variables and the results of the causal search between the variables included in each of the groups.

[0022] According to one embodiment, even when the number of samples is insufficient compared to the number of variables, it is possible to estimate the causal relationship between variables.

[0023] 11A and 11B are diagrams illustrating the configuration of a causal exploration device as an example of an embodiment; FIG. 11B are block diagrams illustrating an example of the hardware (HW) configuration of a computer that realizes the functions of the causal exploration device as an example of an embodiment; FIG. 11C are diagrams illustrating hierarchical clustering by a grouping processing unit of the causal exploration device as an example of an embodiment; FIG. 11D are diagrams illustrating processing by the grouping processing unit of the causal exploration device as an example of an embodiment; FIG. 11E are diagrams illustrating causal exploration by an intra-group causal exploration unit of the causal exploration device as an example of an embodiment; FIG. 11F are diagrams illustrating processing by the intra-group causal exploration unit of the causal exploration device as an example of an embodiment; FIG. 11F are diagrams illustrating processing by the causal relationship summarizing unit of the causal exploration device as an example of an embodiment; FIG. 11F are diagrams illustrating processing by the causal relationship summarizing unit of the causal exploration device as an example of an embodiment;

[0024] Hereinafter, embodiments of the present causal exploration program, causal exploration method, and causal exploration device will be described with reference to the drawings. However, the embodiments shown below are merely examples, and are not intended to exclude the application of various modifications and techniques not explicitly stated in the embodiments. In other words, the present embodiment can be implemented with various modifications within the scope of its intent. Furthermore, each figure does not intend to include only the components shown in the figure, but can also include other functions, etc.

[0025] (A) Configuration FIG. 1 is a diagram schematically illustrating the configuration of a causal exploration device 1 as an example of an embodiment.

[0026] The causal exploration device 1 is an information processing device that performs causal exploration by inferring causal relationships between given variables from observed values ​​(data) of those variables. The causal exploration device 1 may also be called a data analysis device 1.

[0027] [A-1] Example of Hardware Configuration Fig. 2 is a block diagram showing an example of the hardware (HW) configuration of a computer 10 that realizes the functions of the causal exploration device 1 as an example of an embodiment. When multiple computers are used as HW resources that realize the functions of the causal exploration device 1, each computer may have the HW configuration shown in Fig. 2.

[0028] As shown in FIG. 2, the computer 10 may, as a HW configuration, illustratively include a processor 10a, a graphics processing unit 10b, a memory 10c, a storage unit 10d, an IF (Interface) unit 10e, an IO (Input / Output) unit 10f, and a reading unit 10g.

[0029] The processor 10a is an example of a processing unit that performs various controls and calculations, and corresponds to a control unit. The processor 10a may be connected to each block in the computer 10 via a bus 10j so that they can communicate with each other. The processor 10a may be a multiprocessor including multiple processors, a multi-core processor having multiple processor cores, or a configuration having multiple multi-core processors.

[0030] Examples of the processor 10a include integrated circuits (ICs) such as a CPU, MPU, APU, DSP, ASIC, and FPGA. Note that the processor 10a may be a combination of two or more of these integrated circuits. CPU is an abbreviation for Central Processing Unit, MPU is an abbreviation for Micro Processing Unit, APU is an abbreviation for Accelerated Processing Unit, DSP is an abbreviation for Digital Signal Processor, ASIC is an abbreviation for Application Specific IC, and FPGA is an abbreviation for Field-Programmable Gate Array.

[0031] The graphics processing device 10b controls screen display for an output device such as a monitor in the IO unit 10f. Examples of the graphics processing device 10b include various arithmetic processing devices, such as a GPU (Graphics Processing Unit), APU, DSP, ASIC, FPGA, or other integrated circuits (IC).

[0032] The memory 10c is an example of HW that stores various types of data, programs, and other information. The memory 10c may be, for example, a volatile memory such as a dynamic random access memory (DRAM) or a non-volatile memory such as a persistent memory (PM), or both.

[0033] The storage unit 10d is an example of HW that stores various types of data, programs, and other information. Examples of the storage unit 10d include various storage devices such as a magnetic disk device such as a hard disk drive (HDD), a semiconductor drive device such as a solid state drive (SSD), and a nonvolatile memory. Examples of nonvolatile memory include a flash memory, a storage class memory (SCM), and a read-only memory (ROM).

[0034] The storage unit 10d may store a program 10h (causal search program) that realizes all or part of the various functions of the computer 10.

[0035] For example, the processor 10a of the causal exploration device 1 can implement the functions of each of the components constituting the causal exploration device 1, which will be described later, by expanding the program 10h stored in the storage unit 10d into the memory 10c and executing it. The storage unit 10d may also store various data generated by each of the components constituting the causal exploration device 1 during processing.

[0036] The IF unit 10e is an example of a communication IF that controls the connection and communication between the computer 10 and other computers. For example, the IF unit 10e may include an adapter that complies with a LAN (Local Area Network) such as Ethernet (registered trademark) or optical communication such as FC (Fibre Channel). The adapter may support either or both of wireless and wired communication methods.

[0037] For example, the causal exploration device 1 may be connected to other information processing devices via the IF unit 10e and a network so that they can communicate with each other. The program 10h may be downloaded from the network to the computer 10 via the communication IF and stored in the storage unit 10d.

[0038] The IO unit 10f may include one or both of an input device and an output device. Examples of input devices include a keyboard, a mouse, and a touch panel. Examples of output devices include a monitor, a projector, and a printer. The IO unit 10f may also include a touch panel that combines an input device and a display device. The output device may be connected to the graphics processing device 10b.

[0039] The reading unit 10g is an example of a reader that reads data and program information recorded on the recording medium 10i. The reading unit 10g may include a connection terminal or device to which the recording medium 10i can be connected or inserted. Examples of the reading unit 10g include an adapter compliant with USB (Universal Serial Bus) or the like, a drive device that accesses a recording disk, and a card reader that accesses a flash memory such as an SD card. Note that the recording medium 10i may store the program 10h, and the reading unit 10g may read the program 10h from the recording medium 10i and store it in the memory unit 10d.

[0040] Examples of the recording medium 10i include non-transitory computer-readable recording media such as magnetic / optical disks and flash memories. Examples of magnetic / optical disks include flexible disks, CDs (Compact Discs), DVDs (Digital Versatile Discs), Blu-ray Discs, and HVDs (Holographic Versatile Discs). Examples of flash memories include semiconductor memories such as USB memories and SD cards.

[0041] The above-described HW configuration of the computer 10 is an example. Therefore, the HW in the computer 10 may be increased or decreased (for example, adding or deleting any block), divided, integrated in any combination, or the HW may be added or deleted as needed.

[0042] [A-2] Example of Functional Configuration As shown in Fig. 1, the causal exploration device 1 may illustratively have the functions of a grouping processing unit 101, a group representative variable generation unit 102, an intra-group causal exploration unit 103, an inter-group causal exploration unit 104, and a causal relationship aggregation unit 105. These functions may be realized by the hardware of a computer 10 (see Fig. 2).

[0043] The grouping processing unit 101 performs grouping (clustering) by collecting multiple variables that are similar in terms of causal relationships based on the similarity in the joint distribution of multiple variables and classifying them into two or more groups (variable groups).

[0044] In the grouping processing unit 101, ideally, it is desirable to group together variables that can be considered identical in terms of true causal relationships. Although this depends on the assumed SEM and its estimation method, it is desirable to group together variables that have as little impact as possible even if grouped together. For example, it is desirable to group together variables that are connected to the same cause variable(s) and result variable(s) into one group, or to group together independent variables that are neither the cause nor the result of other variables into one group.

[0045] However, since the true causal relationship cannot be determined before the estimation stage, it is difficult to achieve such grouping.

[0046] Therefore, in the causal exploration device 1, the grouping processing unit 101 estimates the true causal relationship based on the difference in the joint distribution of variables, and realizes grouping.

[0047] Here, we can infer that groups of variables with similar joint distributions are similar in terms of causal relationships. Therefore, for two variables x and y, the similarity can be determined by the degree of change in the joint distribution when these variables are swapped. For example, if p(x,y,z,w) and p(y,x,z,w) obtained by swapping variables x and y are similar, then we can determine that x and y are similar from the perspective of joint distribution.

[0048] The grouping processing unit 101 classifies multiple variables into two or more groups by determining the similarity between two variables (x, y) based on the degree of change in the joint distribution of (y, x) when these variables are swapped.

[0049] The grouping processing unit 101 determines the similarity of a distribution p(x, y, z) of a variable set consisting of two or more variables selected from a plurality of variables, in accordance with the degree of change in the joint distribution of the distribution p(y, x, z) obtained by replacing some (x, y) in the variable set.

[0050] The grouping processing unit 101 may first calculate the similarity between two variables and then perform hierarchical clustering or the like.

[0051] The grouping method based on distribution similarity by the grouping processing unit 101 will be described below using an example of three variables (x, y, z).

[0052] The grouping processing unit 101 calculates the similarity for each pair of two variables (x, y).

[0053] Here, the difference between the original distribution p(x,y,z) and the distribution p(y,x,z) obtained by swapping the target pair (x,y) is called the similarity (inverse similarity). Hereafter, we will express it as s = [x,y,z] and t = [y,x,z].

[0054] The grouping processing unit 101 may calculate the similarity using, for example, a first method based on the difference in values ​​between samples.

[0055] In the first method, the grouping processing unit 101 calculates the sum of the differences in values ​​for each sample i using the following formula (1): Although this first method does not take into account interactions with other variables, it is simple and has low calculation costs.

[0056] The grouping processing unit 101 may also obtain the similarity using a second method based on deviation from a normal distribution.

[0057] In the second method, the grouping processing unit 101 may calculate the deviation value when each distribution is assumed to follow a normal distribution, and use the difference in values ​​between the two distributions. The deviation value may be calculated using a normality confirmation procedure or test.

[0058] The difference in the deviation values ​​may be calculated as the square error between the deviation values ​​(or a vector in which multiple types of deviation values ​​are arranged).

[0059] For example, the grouping processing unit 101 may determine that the distributions p(x, y, z) and p(y, x, z) are similar from the perspective of joint distribution if the difference between the deviation value between the original distribution p(x, y, z) and the normal distribution and the deviation value between the distribution p(y, x, z) obtained by swapping the target pair (x, y) with respect to the original distribution p(x, y, z) and the normal distribution is less than a predetermined threshold.

[0060] According to the second method, many causal search methods use deviation from a normal distribution as a clue, and by explicitly utilizing this information, a similarity that is more suitable from the perspective of causal search can be obtained.

[0061] Furthermore, the grouping processing unit 101 performs hierarchical clustering on a plurality of variables based on the calculated similarity.

[0062] FIG. 3 is a diagram illustrating hierarchical clustering by the grouping processing unit 101 of the causal exploration device 1 as an example of an embodiment.

[0063] In FIG. 3, the vertical axis represents the similarity, and an example is shown in which variables x, y, and z are clustered based on the similarity.

[0064] The grouping processing unit 101 performs hierarchical clustering based on the similarity between every two variables, and when the desired number of variables is determined in subsequent processing (described in detail later), it realizes clustering that matches that number.

[0065] FIG. 4 is a diagram illustrating processing by the grouping processing unit 101 of the causal exploration device 1 as an example of an embodiment.

[0066] In FIG. 4, the symbol A indicates a plurality of variables before grouping, and the symbol B indicates a plurality of variables after grouping.

[0067] In FIG. 4, each solid white circle represents a variable, and FIG. 4 shows an example in which the grouping processing unit 101 divides 11 variables into three groups (see dashed lines).

[0068] Furthermore, when the number of variables included in a group is equal to or greater than a threshold, the grouping processing unit 101 may regroup the variables included in the group, thereby making it possible to reduce the number of variables included in one group to less than the threshold.

[0069] The grouping processing unit 101 may group multiple variables and set, for each variable, information about the group to which the variable belongs. In addition, such grouping information is stored in a predetermined storage area or the like of the storage unit 10d.

[0070] The group representative variable generation unit 102 sets a representative variable for each of the multiple groups set by the grouping processing unit 101 .

[0071] A representative variable is a variable that represents the group to which the representative variable belongs, and one representative variable is set for each group.

[0072] The group representative variable generation unit 102 may set the representative variables using, for example, one of two methods, a first representative variable setting method and a second representative variable setting method, which will be described below.

[0073] In the first representative variable setting method, the group representative variable generation unit 102 sets one variable in the group as the representative variable.

[0074] For example, when creating a new variable makes interpretation difficult, such as when the value of the variable has a clear meaning, it is desirable for the group representative variable generation unit 102 to set the representative variable using the first representative variable setting method.

[0075] For example, the group representative variable generation unit 102 may use the most upstream variable in the causal order within the group as the representative variable. In this case, the group representative variable generation unit 102 may cause the intra-group causal search unit 103, which will be described later, to perform a causal search within the group in advance, and may use the most upstream variable as the representative based on the causal order between the variables within the group obtained as a result of the causal search.

[0076] Downstream variables are influenced by upstream variables, but not vice versa. Therefore, by using the most upstream variable as a representative variable, it is possible to reduce the adverse influence that the representative variable receives from other variables.

[0077] Furthermore, if multiple most upstream variables are detected, the group representative variable generation unit 102 may select any one variable from among these multiple most upstream variables and set it as the representative variable.

[0078] The order of causality within a group can be obtained from the results of a causal search performed by the intra-group causal search unit 103, which will be described later.

[0079] In the second representative variable setting method, the group representative variable generation unit 102 generates a new representative variable from a set of variables within a group.

[0080] For example, when variables have similar meanings or are continuous measurement values, and the variables can be interpreted even by performing averaging or median calculation, it is desirable to set representative variables using the second representative variable setting method.

[0081] For example, the group representative variable generation unit 102 may calculate the average or median of a plurality of variables (variable group) included in a group and set it as a representative variable.

[0082] Furthermore, if multiple upstream variables are detected within a group, the group representative variable generation unit 102 may calculate the average or median of these multiple upstream variables and set it as the representative variable.

[0083] Information on the representative variables set by the group representative variable generation unit 102 is stored in a predetermined storage area or the like of the storage unit 10d.

[0084] The intra-group causal search unit 103 performs a causal search on the set of variables that make up each of the multiple groups set by the grouping processing unit 101 .

[0085] In causal discovery, some assumption is made about the causal relationship between variables, and the causal relationship that best fits the data is estimated from the observed values ​​while satisfying that assumption, thereby determining the causal relationship between the desired variables.

[0086] FIG. 5 is a diagram for explaining a causal search performed by the intra-group causal search unit 103 of the causal search device 1 as an example of an embodiment.

[0087] In the example shown in Figure 5, symbol A indicates observed values ​​for three variables x1 to x3, and symbol B illustrates the causal relationships for variables x1 to x3 estimated from the observed values ​​shown by symbol A. In symbol B in Figure 5, the causal relationships are indicated by arrows connecting the variables.

[0088] A causal search for the set of variables in each group can be performed using a known method, and a detailed description thereof will be omitted.

[0089] FIG. 6 is a diagram for explaining the processing of the intra-group causal search unit 103 of the causal search device 1 as an example of an embodiment.

[0090] 6, symbol A indicates multiple grouped variables, and multiple variables indicated by solid white circles are included in one of multiple groups indicated by dot-dash circles. Symbol B indicates the state after causal exploration has been performed on each group, and within each group, multiple variables are connected by arrows indicating the causal relationships obtained as a result of the causal exploration.

[0091] Information indicating the results of the causal search performed by the intra-group causal search unit 103 is stored in a predetermined storage area or the like of the storage unit 10d.

[0092] The inter-group causal search unit 104 performs a causal search between the plurality of representative variables set by the group representative variable generation unit 102 .

[0093] The representative variables are values ​​that represent the respective groups. Therefore, the causal search performed by the inter-group causal search unit 104 between the representative variables is equivalent to the causal search performed between the multiple groups.

[0094] The inter-group causal search unit 104 may perform a causal search between multiple groups using a known method similar to that used by the intra-group causal search unit 103. A causal search for multiple representative variables can be performed using a known method, and a description thereof will be omitted.

[0095] FIG. 7 is a diagram for explaining the processing of the inter-group causal search unit 104 of the causal search device 1 as an example of an embodiment.

[0096] In Fig. 7, symbol A indicates multiple grouped variables, similar to symbol A in Fig. 6. Symbol B indicates the state after causal exploration has been performed on each representative variable (see the shaded circles) of the multiple groups indicated by symbol A, with the multiple representative variables (groups) connected by dotted arrows indicating the causal relationships obtained as a result of the causal exploration.

[0097] Information indicating the results of the causal search performed by the inter-group causal search unit 104 is stored in a predetermined storage area or the like of the storage unit 10d.

[0098] The causal relationship summarizing unit 105 summarises the results of the causal search performed by the intra-group causal search unit 103 on the set of variables that make up each group and the results of the causal search performed between multiple groups by the inter-group causal search unit 104. In this way, the causal relationship summarizing unit 105 generates hierarchical estimated causal relationships.

[0099] FIG. 8 is a diagram for explaining the processing of the causal relationship summarizing unit 105 of the causal search device 1 as an example of an embodiment.

[0100] 8, symbol A indicates the result of the causal search performed by the inter-group causal search unit 104. Symbol B indicates the result of the causal search performed by the intra-group causal search unit 103. Symbol C indicates an example in which the result of the causal search performed by the inter-group causal search unit 104 shown by symbol A and the result of the causal search performed by the intra-group causal search unit 103 shown by symbol B are combined.

[0101] The causal relationship summarizing unit 105 may aggregate the results of the causal search by, for example, performing a process for each group in which the most downstream variable in the causal order within the group is connected to the most upstream variable in the causal order of the group downstream of the group, based on the results of the causal search within each group performed by the intra-group causal search unit 103. Note that the upstream group and the downstream group can be determined based on the causal order obtained as a result of the causal search by the inter-group causal search unit 104.

[0102] Hereinafter, the most downstream variable in the causal order may be referred to as the most downstream variable, and the most upstream variable in the causal order may be referred to as the most upstream variable.

[0103] FIG. 9 is a diagram for explaining the processing of the causal relationship summarizing unit 105 of the causal search device 1 as an example of an embodiment.

[0104] 9, symbol A indicates the results of the causal search for each variable in two groups (see symbols P1 and P2) by the intra-group causal search unit 103 and the results of the causal search by the inter-group causal search unit 104. In symbol A, the causal relationships obtained as a result of the causal search within a group are indicated by solid arrows, and the causal relationships obtained as a result of the causal search between groups are indicated by dotted lines.

[0105] Also, symbol B indicates an example in which the causal search results by the intra-group causal search section 103 and the causal search results by the inter-group causal search section 104 shown in symbol A are aggregated.

[0106] In the example shown by symbol B in Figure 9, the results of the causal search are aggregated by connecting the most downstream variable (see symbol P3) in the upstream group (see symbol P1) to the most upstream variable (see symbol P4) in the downstream group (see symbol P2) of the upstream group (see symbol P1).

[0107] The causal relationship summarizing unit 105 may, for example, connect variables by drawing arrows between them on a graph, and use a model or the like to define (estimate) the causal relationship between these connected variables according to a formula. The model used may be, for example, a linear model such as LiNGAM, or a nonlinear model such as ANM, and various modifications may be made to the model. The causal relationship summarizing unit 105 assigns a formula for the causal relationship to the arrow.

[0108] For example, when there is a linear relationship between an upstream group and a downstream group, when connecting the variables of the upstream group and the variables of the downstream group, the causal relationship summarization unit 105 may draw arrows between the variables on the graph and assign a linear formula as the equation for the causal relationship indicated by the arrows.

[0109] As an example, suppose that upstream group α and downstream group β are estimated as α → β, and are estimated to have a linear relationship with a coefficient of 5, such as β = 5.0 × α + e. When it is desired to connect variables x and y contained in α and β, one method is to connect an arrow from x to y on a graph, and assign a linear equation with a coefficient of 5, such as y = 5.0 × x + e1, as the equation of the causal relationship indicated by the arrow.

[0110] In addition, if there are multiple most upstream variables in a downstream group, one or more most downstream variables in the upstream group may be connected to each of these most upstream variables. In other words, the causal relationship may be distributed from the most downstream variable in the upstream group to multiple most upstream variables in the downstream group.

[0111] In this distribution, when not only the graph structure but also the causal function is estimated, values ​​are distributed to multiple causal relationships in the process of propagating values ​​based on the causal relationships. For example, the impact of changing the upstream is analyzed, and the degree of change is distributed downstream.

[0112] The distribution may be performed by, for example, a method of distributing using a causal relationship formula, or by distributing the degree of influence propagation during analysis, and can be modified as appropriate. In the method of distributing the degree of influence propagation during analysis, the change in the upstream variable is divided appropriately and the analysis is performed so that it flows downstream.

[0113] Furthermore, if there are multiple most downstream variables in an upstream group, each of these most downstream variables may be connected to one or more most upstream variables in the downstream group. That is, causal relationships may be concentrated from multiple most downstream variables in the upstream group to the most upstream variable in the downstream group.

[0114] As another example of a method for aggregating the results of causal search, the causal relationship aggregation unit 105 may perform a process for each group in which all variables within the group are connected to all variables in groups downstream of the group, based on the results of the causal search within each group performed by the intra-group causal search unit 103.

[0115] FIG. 10 is a diagram for explaining the processing of the causal relationship summarizing unit 105 of the causal search device 1 as an example of an embodiment, and shows another example of a method for summarizing the results of causal search.

[0116] 10, symbol A, like symbol A in Fig. 9, indicates the results of the causal search for each variable in two groups (see symbols P1 and P2) by the intra-group causal search unit 103 and the results of the causal search by the inter-group causal search unit 104. In symbol A, the results of the causal search within a group are indicated by solid arrows, and the results of the causal search between groups are indicated by dotted lines.

[0117] Furthermore, symbol B shows an example of aggregating the causal search results by the intra-group causal search unit 103 shown in symbol A and the causal search results by the inter-group causal search unit 104, and shows an example of aggregating using a method different from the method shown in Figure 9.

[0118] In the example shown by symbol B in Figure 10, the results of the causal search are aggregated by connecting all variables in an upstream group (see symbol P1) to all variables in a downstream group (see symbol P2) of that group (see symbol P1).

[0119] It should be noted that it is not necessary for the causal relationship summarizing unit 105 to aggregate the results of the causal search performed by the intra-group causal search unit 103 on the set of variables constituting each group and the results of the causal search performed between multiple groups by the inter-group causal search unit 104. In other words, aggregation of the causal search results may be performed as needed, and does not have to be performed if it is not required.

[0120] For example, if a user wishes to output the results of a causal search for multiple variables as a single causal relationship (graph), the user may input a setting to that effect in advance and store the input result as a flag in a specified memory area of ​​memory unit 10d.

[0121] The causal relationship summarizing unit 105 may refer to this flag to determine whether or not to summarise the results of the causal search by the intra-group causal search unit 103 and the results of the causal search by the inter-group causal search unit 104.

[0122] The causal search results aggregated by the causal relationship aggregation unit 105, or the causal search results by the intra-group causal search unit 103 and the causal search results by the inter-group causal search unit 104 may be presented to the user. These causal search results may be presented to the user by, for example, outputting them to an output device such as a monitor (not shown).

[0123] Based on the presented causal search results, the user may perform analysis directly on the causal relationships represented in a hierarchical structure, for example.

[0124] (B) Operation The processing of the causal exploration device 1 as an example of an embodiment configured as described above will be described according to the flowchart (steps S1 to S10) shown in FIG. 11 with reference to FIG.

[0125] 12 is a diagram illustrating an overview of processing by the causal exploration device 1 as an example of an embodiment. In Fig. 12, each solid white circle represents a variable, and Fig. 12 shows an example in which the grouping processing unit 101 performs data analysis on 11 variables.

[0126] In step S1, the causal exploration device 1 reads a plurality of data (observed values) to be analyzed. The read data is stored in a predetermined storage area of ​​the storage unit 10d.

[0127] In step S2, the causal exploration device 1 checks whether the number of samples is sufficient for the number of variables. For example, the causal exploration device 1 may determine whether the number of samples is sufficient by determining whether the number of samples is equal to or greater than a threshold set in advance based on the number of variables. For example, the threshold may be equal to the number of variables.

[0128] If the number of samples is less than the threshold value, that is, if the number of samples is insufficient (see NO route from step S2), the process proceeds to step S3.

[0129] In step S3, the grouping processing unit 101 performs grouping by classifying the multiple variables into multiple groups that are similar in terms of causal relationships based on the similarity in the joint distribution of the multiple variables (see symbol P1 in Figure 12).

[0130] In step S4 , the group representative variable generation unit 102 sets a representative variable for each of the groups set by the grouping processing unit 101 .

[0131] In step S5, the inter-group causal search unit 104 performs a causal search between the multiple representative variables set by the group representative variable generation unit 102. That is, the inter-group causal search unit 104 performs a causal search between the multiple groups (inter-group causal search) (see symbol P2 in FIG. 12 ). Thereafter, the process proceeds to step S7.

[0132] In addition, in step S6, the intra-group causal search unit 103 performs a causal search (intra-group causal search) on the set of variables that make up each group for each of the multiple groups set by the grouping processing unit 101 (see symbol P3 in Figure 12).

[0133] Note that the processing of steps S4 and S5 and the processing of step S6 may be performed in any order. Furthermore, the processing of steps S4 and S5 and the processing of step S6 may be performed in parallel, or may be performed with appropriate modifications.

[0134] In step S7, the causal relationship aggregation unit 105 confirms whether it is necessary to aggregate the results of the causal search performed by the intra-group causal search unit 103 on the set of variables that make up each group and the results of the causal search performed by the inter-group causal search unit 104 on multiple groups.

[0135] For example, the causal relationship summarization unit 105 checks whether the results of the causal search need to be aggregated by referring to a flag indicating whether the user wants to output the results of the causal search for multiple variables as a single causal relationship (graph).

[0136] If it is determined in step S7 that the results of the causal search need to be aggregated (see the YES route in step S7), the process proceeds to step S8.

[0137] In step S8, the causal relationship aggregation unit 105 aggregates the results of the causal search performed by the intra-group causal search unit 103 on the set of variables that make up each group and the results of the causal search performed by the inter-group causal search unit 104 on multiple groups (see symbol P4 in Figure 12).

[0138] Furthermore, if it is determined in step S7 that the results of the causal search do not need to be aggregated (see the NO route in step S7), step S8 is skipped and the process proceeds to step S9.

[0139] On the other hand, if the result of the check in step S2 shows that there are a sufficient number of samples, that is, if the number of data is equal to or greater than the threshold value, the process proceeds to step S10.

[0140] In step S10, all data is used to perform a causal search for variables. The causal search device 1 performs a causal search for variables using all data read in step S1. In step S10, the causal search device 1 may perform a causal search using a known causal search method. Then, the process proceeds to step S9.

[0141] In step S9, the causal search results are output and presented to the user. For example, the results of the causal search performed by the intra-group causal search unit 103 on the set of variables that make up each group and the results of the causal search performed by the inter-group causal search unit 104 on multiple groups are output. At this time, if the causal relationship summarizing unit 105 has aggregated the causal search results, these causal search results are output in an aggregated state.

[0142] Furthermore, if the causal relationship summarizing unit 105 has not yet aggregated the causal search results, these causal search results are output in an unaggregated state, after which the process ends.

[0143] (C) Effects As described above, according to the causal exploration device 1 of one embodiment of the present invention, the grouping processing unit 101 performs grouping by collecting multiple variables that are similar in terms of causal relationships and classifying them into two or more groups (variable groups). Then, the intra-group causal exploration unit 103 performs causal exploration on the variable groups that make up each group for each of the multiple groups set by the grouping processing unit 101.

[0144] This reduces the number of variables for which the intra-group causal search unit 103 performs a causal search, and enables the causal search to be realized without reducing estimation accuracy even when the number of samples is small.

[0145] Furthermore, the inter-group causal search unit 104 performs a causal search between the multiple representative variables set by the group representative variable generation unit 102. Then, the causal relationship summarization unit 105 aggregates the results of the causal search performed by the intra-group causal search unit 103 on the variable groups that make up each group and the results of the causal search performed by the inter-group causal search unit 104 on the multiple groups.

[0146] This makes it possible to obtain the analytical processing of causal search for all variables as a single causal relationship (graph).

[0147] In addition, if it is not necessary to obtain the analytical processing of the causal search for all variables as a single causal relationship (graph), the causal search for the group of variables that make up each group by the intra-group causal search unit 103 can be used for analysis.

[0148] Furthermore, the group representative variable generation unit 102 sets a representative variable for each group, and the inter-group causal search unit 104 performs a causal search for these representative variables. This makes it possible to easily perform a causal search between multiple groups.

[0149] The grouping processing unit 101 groups variables that are similar in terms of causal relationships based on the similarity of the joint distributions of the variables, thereby grouping multiple variables, and thereby making it possible to group multiple variables without reducing the estimation accuracy of the causal search.

[0150] The grouping processing unit 101 calculates the similarity using the first method based on the difference in values ​​between samples, thereby making it possible to perform grouping with low calculation costs.

[0151] Furthermore, the grouping processing unit 101 obtains the similarity using the second method based on deviation from a normal distribution, thereby making it possible to perform grouping that is more appropriate from the perspective of causal search.

[0152] (D) Others The disclosed technology is not limited to the above-described embodiment, and various modifications can be made without departing from the spirit of the present embodiment. The configurations and processes of the present embodiment can be selected or combined as needed.

[0153] In the above-described embodiment, when the intra-group causal search unit 103 performs a causal search on variables within each group, there may be cases where the number of samples within the group is still small.

[0154] In this case, the grouping processing unit 101 may further group the variables in the group. The multiple groups created by further grouping the variables in the group may be called subgroups. Furthermore, dividing a group into multiple subgroups may be called subgrouping.

[0155] Then, the intra-group causal search section 103 and the inter-group causal search section 104 may search for causalities inside and outside the subgroups, and the causal relation summarizing section 105 may perform summarizing processing as necessary.

[0156] These processes may be performed recursively, i.e., if a subgroup with fewer samples is generated as a result of these processes, the above processes may be applied again to that subgroup.

[0157] A modified example of the process in step S6 of the flowchart shown in FIG. 11 will be described with reference to the flowchart (steps S21 to S30) shown in FIG.

[0158] In step S21, a loop process is started in which the control up to step S30 is repeatedly performed for all groups generated by the grouping processing unit 101.

[0159] In step S22, the intra-group causal search unit 103 checks whether the number of samples is sufficient. For example, the causal search device 1 may determine whether the number of samples is sufficient by determining whether the number of samples is equal to or greater than a threshold set in advance based on the number of variables in the group. For example, the threshold may be equal to the number of variables.

[0160] If the number of samples is less than the threshold value, that is, if the number of samples is insufficient (see NO route from step S22), the process proceeds to step S23.

[0161] In step S23, the grouping processing unit 101 performs grouping by classifying the multiple variables into multiple subgroups that are similar in terms of causal relationships, based on the similarity in the joint distribution of the multiple variables, in accordance with instructions from the intra-group causality search unit 103.

[0162] In step S24, the group representative variable generation unit 102 sets a representative variable for each of the plurality of subgroups set by the grouping processing unit 101 in accordance with an instruction from the intra-group causality search unit 103.

[0163] In step S25, the inter-group causal search unit 104 performs a causal search between the plurality of representative variables set by the group representative variable generation unit 102, in accordance with an instruction from the intra-group causal search unit 103. Thereafter, the process proceeds to step S27.

[0164] In step S26, the intra-group causal search unit 103 performs a causal search on the set of variables constituting each subgroup for each of the subgroups set by the grouping processing unit 101.

[0165] Note that the processing of steps S24 and S25 and the processing of step S26 may be performed in any order. Furthermore, the processing of steps S24 and S25 and the processing of step S26 may be performed in parallel, and may be modified as appropriate.

[0166] In step S27, the causal relationship aggregation unit 105, in accordance with instructions from the intra-group causal search unit 103, confirms whether it is necessary to aggregate the results of the causal search performed by the intra-group causal search unit 103 on the groups of variables that make up each subgroup and the results of the causal search performed by the inter-group causal search unit 104 on multiple subgroups.

[0167] For example, the causal relationship summarization unit 105 checks whether the results of the causal search need to be aggregated by referring to a flag indicating whether the user wants to output the results of the causal search for multiple variables as a single causal relationship (graph).

[0168] If it is determined in step S27 that the results of the fruit search need to be aggregated (see the YES route in step S27), the process proceeds to step S28.

[0169] In step S28, the causal relationship aggregation unit 105, in accordance with instructions from the intra-group causal search unit 103, aggregates the results of the causal search performed by the intra-group causal search unit 103 on the groups of variables that make up each subgroup and the results of the causal search performed by the inter-group causal search unit 104 between multiple subgroups.

[0170] If it is determined in step S27 that the results of the fruit search do not need to be aggregated (see the NO route in step S27), step S28 is skipped and the process proceeds to step S30.

[0171] On the other hand, if the result of the check in step S22 shows that there are a sufficient number of samples, that is, if the number of data is equal to or greater than the threshold value (see YES route in step S22), the process proceeds to step S29.

[0172] In step S29, a causal search is performed on the variables using all the data. In step S29, the causal search device 1 may perform the causal search using a known causal search method. Then, the process proceeds to step S30.

[0173] In step S30, the loop end process corresponding to step S21 is performed. When the process for all groups is completed, this flow ends.

[0174] Furthermore, the above disclosure enables those skilled in the art to implement and manufacture the present embodiment.

[0175] REFERENCE SIGNS LIST 1 Causal search device 10 Computer 10a Processor 10b Graphics processing device 10c Memory 10d Storage unit 10e IF unit 10f IO unit 10g Reading unit 10h Program 10i Recording medium 10j Bus 101 Grouping processing unit 102 Group representative variable generation unit 103 Intra-group causal search unit 104 Inter-group causal search unit 105 Causal relationship summarization unit

Claims

1. A causal discovery program that causes a computer to execute the following processes: classifying multiple variables into two or more groups based on the similarity of the variables in a joint distribution; conducting a causal discovery between representative variables determined for each of the two or more groups; conducting a causal discovery between the variables contained in each of the two or more groups; and outputting the results of the causal discovery between the representative variables and the results of the causal discovery between the variables contained in each of the groups.

2. The causal discovery program according to claim 1, characterized in that the process of classifying a plurality of variables into two or more groups based on the similarity of the variables on the joint distribution includes a process of determining the similarity for two variables based on the degree of change in the joint distribution when these variables are swapped.

3. The causal discovery program according to claim 1, characterized in that the process of classifying multiple variables into two or more groups based on the similarity of the variables on the joint distribution includes a process of calculating the deviation value when each distribution is assumed to follow a normal distribution, and determining the similarity based on the difference in values ​​between the two distributions.

4. The causal discovery program according to any one of claims 1 to 3, characterized in that the computer is caused to execute a process of combining the results of the causal discovery between the representative variables and the results of the causal discovery between the variables included in each group, and outputting the results of the causal discovery for all of the multiple variables.

5. A causal discovery program as described in any one of claims 1 to 3, characterized in that the process of combining the results of the causal discovery between the representative variables and the results of the causal discovery between the variables included in each group includes a process of connecting the most downstream variable among the variables belonging to an upstream group in the results of the causal discovery between the representative variables with the most upstream variable among the variables belonging to a group downstream of the upstream group.

6. A causal discovery program as described in any one of claims 1 to 3, characterized in that the process of combining the results of the causal discovery between the representative variables and the results of the causal discovery between the variables included in each group includes a process of connecting all variables belonging to an upstream group in the results of the causal discovery between the representative variables with all variables belonging to a downstream group of the upstream group.

7. A causal discovery method characterized in that a computer executes the following processes: classifying multiple variables into two or more groups based on the similarity of the variables on a joint distribution; conducting a causal discovery between the representative variables determined for each of the two or more groups; conducting a causal discovery between the variables contained in each of the two or more groups; and outputting the results of the causal discovery between the representative variables and the results of the causal discovery between the variables contained in each of the groups.

8. The causal discovery method according to claim 7, characterized in that the process of classifying a plurality of variables into two or more groups based on the similarity of the variables on the joint distribution includes a process of determining the similarity for two variables based on the degree of change in the joint distribution when these variables are swapped.

9. The causal discovery method according to claim 7, characterized in that the process of classifying a plurality of variables into two or more groups based on the similarity of the variables on the joint distribution includes a process of calculating the deviation value when each distribution is assumed to follow a normal distribution, and determining the similarity based on the difference in values ​​between the two distributions.

10. A causal discovery method according to any one of claims 7 to 9, characterized in that the computer executes a process of combining the results of the causal discovery between the representative variables and the results of the causal discovery between the variables included in each group, and outputting the results of the causal discovery for all of the multiple variables.

11. A causal discovery method as described in any one of claims 7 to 9, characterized in that the process of combining the results of the causal discovery between the representative variables and the results of the causal discovery between the variables included in each group includes a process of connecting the most downstream variable among the variables belonging to an upstream group in the results of the causal discovery between the representative variables with the most upstream variable among the variables belonging to a group downstream of the upstream group.

12. A causal discovery method as described in any one of claims 7 to 9, characterized in that the process of combining the results of the causal discovery between the representative variables and the results of the causal discovery between the variables included in each group includes a process of connecting all variables belonging to an upstream group in the results of the causal discovery between the representative variables with all variables belonging to a downstream group of the upstream group.

13. A causal discovery device comprising a control unit that executes the following processes: classifying multiple variables into two or more groups based on the similarity of the variables on a joint distribution; conducting a causal discovery between representative variables determined for each of the two or more groups; conducting a causal discovery between the variables included in each of the two or more groups; and outputting the results of the causal discovery between the representative variables and the results of the causal discovery between the variables included in each of the groups.

14. The causal exploration device described in claim 13, characterized in that the process of classifying multiple variables into two or more groups based on the similarity of the variables on the joint distribution includes a process of determining the similarity for two variables based on the degree of change in the joint distribution when these variables are swapped.

15. The causal exploration device described in claim 13, characterized in that the process of classifying multiple variables into two or more groups based on the similarity of the variables on the joint distribution includes a process of calculating the deviation value when each distribution is assumed to follow a normal distribution, and determining the similarity based on the difference in values ​​between the two distributions.

16. A causal discovery device as described in any one of claims 13 to 15, characterized in that the control unit executes a process of combining the results of the causal discovery between the representative variables and the results of the causal discovery between the variables included in each group, and outputting the results of the causal discovery for all of the multiple variables.

17. A causal discovery device as described in any one of claims 13 to 15, characterized in that the process of combining the results of the causal discovery between the representative variables and the results of the causal discovery between the variables included in each group includes a process of connecting the most downstream variable among the variables belonging to an upstream group in the results of the causal discovery between the representative variables with the most upstream variable among the variables belonging to a group downstream of the upstream group.

18. A causal discovery device as described in any one of claims 13 to 15, characterized in that the process of combining the results of the causal discovery between the representative variables and the results of the causal discovery between the variables included in each group includes a process of connecting all variables belonging to an upstream group in the results of the causal discovery between the representative variables with all variables belonging to a downstream group of the upstream group.

Citation Information

Patent Citations

  • Display method, display device, and program

    JP2019145160A

  • Feature selection program, device, and method

    JP2022029347A

Cited By

  • Information processing program, information processing method, and information processing device

    EP4835748A1

  • Information processing program, information processing method, and information processing device

    JP2026178834A