How to detect a possible correlation from the information of a subsystem in quantum-mechanical systems