Alexander Frederick Douglas-Home , Baron Home of the Hirsel ( 2 July 1903 â `` 9 October 1995 ) was a prime minister of the United Kingdom . Alexander Frederick Douglas-Home , Baron Home of the Hirsel , KT , PC ( 2 July 1903 â `` 9 October 1995 ) , known as The Earl of Home from 1951 to 1963 and as Sir Alec Douglas-Home from 1963 to 1974 , was a British Conservative politician who served as Prime Minister of the United Kingdom from October 1963 to October 1964 . He is the last member of the House of Lords to be appointed Prime Minister .