1. A method for data compression comprising the steps of: constructing a Slepian-Wolf code with one or more inputs wherein mismatched decoding resulting from imperfect knowledge of joint probability distribution is taken into account; encoding a source data using the said Slepian-Wolf code to output a syndrome data; and decoding the source data from the syndrome data and a side information data by choosing an optimal decoding metric for the mismatched decoding.