Prof Ralph Allan (or Allen) Sampson FRSFRSE LLD (June 25, 1866 – November 7, 1939) was an Irish-born astronomer.
He was born in Schull, County Cork in Ireland, the fourth of five children to James Sampson, a Cornish-born metallurgical chemist, and his wife, Sarah Anne Macdermott.
The family moved to Liverpool and Sampson attended the Liverpool Institute and then graduated from St. John's College, Cambridge in 1888. In 1891 he was awarded a scholarship to carry out astronomical research at Cambridge University. (He had been a student of astronomer John Couch Adams, and helped to edit and publish Part I of the second volume of Adams' papers in 1900).
In 1893 he was made Professor of Mathematics at Durham College of Science in Newcastle-on-Tyne and in 1895 was elected Professor of Mathematics at Durham University. In December 1910 he became Astronomer Royal for Scotland (until 1937) and Professor of Astronomy at the University of Edinburgh. He did pioneering work in measuring the color temperature of stars. He did important research into the theory of the motions of Jupiter's four Galilean satellites, for which he won the Gold Medal of the Royal Astronomical Society in 1928. He served as president of the Royal Astronomical Society from 1915 to 1917.