Let (A, A , μ) and (B, B, ν) be probability spaces, let F be a sub-σ -algebra of the product σ -algebra A × B, let X be a Banach space and let 1 < p, q < ∞. We obtain necessary and sufficient conditions in order that the conditional expectation with respect to F defines a bounded linear operator from) of all functions having a strongly F -measurable representative.