I am inspecting the stackexchange data dump and found a discrepancy of PostIDs included in posts.xml and votes.xml.
It is obvious that there are some posts that do not have any voting activity.
My assumption was further that for every vote there should be a post in posts.xml. However, in votes.xml are often PostIDs listed for which no post in posts.xml exists.
Is that because when posts are deleted (due to various reasons) the votes for those posts are not deleted?
Here is an example:
For example, in anime.stackexchange.com.7z the votes.xml has 941 PostIDs that are not included in posts.xml, e.g. "5" "37" "47" "30" "52" "62"
.
You can quickly check this yourself by using the data explorer:
SELECT * FROM Posts WHERE Id = 5
SELECT * FROM Votes WHERE PostId = 5