Suppose I want to get letter of recommendation for a PhD program. Could this letter be from someone not from my institution? Could is be from someone I have collaborated with online? Or generally do schools want recommendations from professors from a student's home institution?
Generally if it’s for a PHD program they want letters of recommendations from a professor . It depends on the program though, so it’s better to ask the admissions office at the school your applying to .