We advance an analytical model describing the polarimetric response of a depolarizing retarder whose retardance varies spatially in magnitude or in orientation. The variation of the retarder parameters may be either of deterministic or of random nature. The model provides both the mean values and the uncertainties of the parameters. Its application is illustrated on two experimental examples, respectively covering the deterministic and the random cases.