local and distributed inference