A university lecturer from Edinburgh who was murdered in his own home last year left more than £1 million in his will to fight cancer.

Roger Gray, 64, a senior lecturer in actuarial mathematics and statistics at Heriot-Watt University until his retirement four years ago, stated in his will that he wanted the majority of his estate to be given to "a charity, association or institution which deals or is asociated with cure and/or alleviation of cancer".

Mr Gray was stabbed 114 times on March 19 last year by Pawel Rodak, 21, a Polish male prostitute. He then attempted to blow up Mr Gray's home to conceal his crime. Although he denied murder, Rodak was found guilty of culpable homicide by reasons of diminished responsibility and will be sentenced at the High Court in Livingston next month.

Details of Mr Gray's will emerged after Rodak's conviction. It shows Mr Gray's estate was worth £1,276,307. That was made up of money in bank accounts, a stocks and shares portfolio and the flat in which he was killed, which has been valued at £280,000.

Mr Gray, who continued to teach part-time after his retirement, directed that £2500 should be given to Heriot-Watt University to establish an annual prize for a student who has excelled in the study of statistics. The remainder of his wealth is to go to cancer charities.