What I was trying to get across was that god is a human concept. I don't think god outside of humanity is well defined and I really don't want to go there.
So, this is a purely evolutionary explanation of the god concept - why it exists, meaning why, when and how was it beneficial in the course of our history. That's the only way I see how you can somewhat mathematically model god.
Also, god right now is a way more complex idea than it originally was. I focused on what god initially meant (when humans were less complicated).