An extended redundancy analysis and its applications to two practical examples