What kind of ants have yellow stripes?

Bugs that look like ants with yellow stripes are actually called Neoclytus acuminatus or more commonly, red headed ash borers. They are not ants at all but beetles and have a fondness for dead or dying trees.