A brain activity analyzing method causing a computer having a processing device and a storage device to execute a brain activity analysis based on information from a brain activity detecting device for measuring brain activities of a plurality of subjects; wherein a plurality of attribute information items are associated with each of the plurality of subjects; the method comprising a step of the processing device generating a discriminator, from information obtained by the brain activity detecting device time-sequentially measuring in advance brain activities at a plurality of prescribed regions in a brain of each of the plurality of subjects; the step of generating a discriminator includes the steps of: i) calculating, for each of the subjects, a correlation matrix of brain activities among the plurality of prescribed regions from the measured signals, ii) extracting elements of the correlation matrix that connect to a canonical variable corresponding only to a specific attribute information item among the plurality of attribute information items by successively selecting, from M (M: natural number not smaller than 2) different subsets extracted from the plurality of subjects, one subset and by performing a sparse canonical correlation analysis on the attribute information items and on elements of the correlation matrix of (M-1) subsets except for the selected one subset, iii) obtaining, for the successively selected subsets, a first sum-set as a sum-set of elements of the extracted correlation matrix, and iv) calculating a discriminator for estimating the specific attribute information item from the elements of the first sum-set; the method further comprising the steps of: storing information for specifying the calculated discriminator in the storage device; and performing a process of discriminating input data based on the discriminator specified by the information stored in the storage device. a plurality of attribute information items are associated with each of the plurality of subjects; the method comprising a step of the processing device generating a discriminator, from information obtained by the brain activity detecting device time-sequentially measuring in advance brain activities at a plurality of prescribed regions in a brain of each of the plurality of subjects; the step of generating a discriminator includes the steps of: i) calculating, for each of the subjects, a correlation matrix of brain activities among the plurality of prescribed regions from the measured signals, ii) extracting elements of the correlation matrix that connect to a canonical variable corresponding only to a specific attribute information item among the plurality of attribute information items by successively selecting, from M (M: natural number not smaller than 2) different subsets extracted from the plurality of subjects, one subset and by performing a sparse canonical correlation analysis on the attribute information items and on elements of the correlation matrix of (M-1) subsets except for the selected one subset, iii) obtaining, for the successively selected subsets, a first sum-set as a sum-set of elements of the extracted correlation matrix, and iv) calculating a discriminator for estimating the specific attribute information item from the elements of the first sum-set; i) calculating, for each of the subjects, a correlation matrix of brain activities among the plurality of prescribed regions from the measured signals, ii) extracting elements of the correlation matrix that connect to a canonical variable corresponding only to a specific attribute information item among the plurality of attribute information items by successively selecting, from M (M: natural number not smaller than 2) different subsets extracted from the plurality of subjects, one subset and by performing a sparse canonical correlation analysis on the attribute information items and on elements of the correlation matrix of (M-1) subsets except for the selected one subset, iii) obtaining, for the successively selected subsets, a first sum-set as a sum-set of elements of the extracted correlation matrix, and iv) calculating a discriminator for estimating the specific attribute information item from the elements of the first sum-set; the method further comprising the steps of: storing information for specifying the calculated discriminator in the storage device; and performing a process of discriminating input data based on the discriminator specified by the information stored in the storage device. storing information for specifying the calculated discriminator in the storage device; and performing a process of discriminating input data based on the discriminator specified by the information stored in the storage device.