redundancy calculation

redundancy calculation