#NEWLINE# @ cache_readonly #NEWLINE# def independence_probabilities( self ) : #NEWLINE# #INDENT# ( row , col ) = self . marginal_probabilities #NEWLINE# itab = np . outer ( row , col ) #NEWLINE# if isinstance ( self . table_orig , pd . DataFrame ) : #NEWLINE# #INDENT# itab = pd . DataFrame ( itab , self . table_orig . index , self . table_orig . columns ) #NEWLINE# #UNINDENT# return itab