Fewer foreclosures were started and completed in July as the Massachusetts housing market and overall economy continued to slowly improve, according to data released Monday.

Alan Clayton-Matthews, an economist at Northeastern University, said the newest foreclosure numbers are in line with other recent statistics.

“The economy has been fairly slowly but steadily improving. You would expect to see an effect in [mortgage] default rates,” Clayton-Matthews said.