Federated Data Analytics: Theory And Application