Dogs can help you with all those things. When a dog is ALWAYS happy to see you, and ALWAYS wants to be around you - it's obviously gonna help with your self esteem, which in effect helps with the depression, which will then help with the loneliness. When you take your dog for walks regularly...