Exposure compensation is used when you have your camera set on an auto (full program, portrait, landscape, sports, etc...) or semi-auto (aperture priority or shutter priority) exposure mode. You are telling the camera how much you would like it to under or overexpose.