calculate ase creates validity matrix.