<s> """<STR_LIT>""" <EOL> def cov ( v1 , v2 ) : <EOL> assert len ( v1 ) == len ( v2 ) , "<STR_LIT>" <EOL> m1 = sum ( v1 ) / ( len ( v1 ) ) <EOL> m2 = sum ( v2 ) / ( len ( v2 ) ) <EOL> cov = <NUM_LIT:0> <EOL> for i in range ( <NUM_LIT:0> , len ( v1 ) ) : <EOL> cov += ( v1 [ i ] - m1 ) * ( v2 [ i ] - m2 ) <EOL> return cov / ( len ( v1 ) - <NUM_LIT:1> ) <EOL> def cov_matrix ( M ) : <EOL> """<STR_LIT>""" <EOL> ret = [ ] <EOL> for i in range ( <NUM_LIT:0> , len ( M ) ) : <EOL> line = [ ] <EOL> for j in range ( <NUM_LIT:0> , len ( M ) ) : <EOL> line . append ( cov ( M [ i ] , M [ j ] ) ) <EOL> ret . append ( line ) <EOL> return ret <EOL> arr = [ [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] , <EOL> [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] , <EOL> [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] ] <EOL> covM = cov_matrix ( arr ) </s>
