For the Monty hall problem, with 3 doors, two of which have sheep and 1 has a car. I calculated the probability of getting the car if you swap being 2/6 instead of 2/3. I have drawn this tree diagram of how I calculated it:
And from it I get that the probability of getting a car if you swap is 2/6 and if you stay it's 1/6, which is not the same as the actual answer 2/3 and 1/3. I have included the probabilities of getting sheep, as well as my overall probabilities, add up so I want to know what is wrong with my tree diagram, which resulted in this wrong answer. In my tree diagram I haven't included the host revealing a door, so could this be a factor as to why my answer is wrong?
It's simply because your diagram assumes you stay with probability $1/2$. In that case the probability of switching and getting the car is indeed $2/6$, and the probability of switching and not getting the car is $1/6$.
But if you always switch, you're twice as likely to get each of these outcomes - instead of a $1/2$ probability of switching, you have probability $1$ of switching - so they become $2/3$ and $1/3$ respectively.