Math bases of analisys of social processes