changed self.data to self.samples in likelihood.approximate()