Cancer data is collected through various means such as medical records, cancer registries, and research studies. Medical records provide individual patient data, while cancer registries compile data from multiple sources to track cancer incidence and outcomes. Research studies, including clinical trials, contribute to the understanding of cancer biology and treatment efficacy.