Before revision:  Goal-directed behavior is determined from the posterior distribution of z by planning, using active inference , to minimize the }  free energy for goal observation .
After revision:  Goal-directed behavior is determined from the posterior distribution of z by planning, using active inference , to minimize the } free energy for goal observation .