Factor models for big data