The Harry Potter books were actually written after the movies. The books were released first to build interest in the franchise. They're also actually written by a team of writers, not just one lady. I know this because my aunt works on the writing team. She said the lady whose name is on the cover is actually the mother of the kid who plays Harry Potter in the movies.