The resistivity of rocks is dependent primarily upon effective porosity, salinity of formation water, and quantity of petroleum contained in the pore space.