Mathematical bases of analysis of social processes