  We derive the equations of state of Fermi gas by maximizing the Fermi-Dirac
entropy in modified gravity in relativistic and non-relativistic case. It will
be demonstrated that the microphysics must depend on a given theory of gravity
in order to consistently describe a physical system at a statistical
equilibrium state.
