MacBook Air shuts down at random
My MacBook Air from Mid 2013, running 10.10.2, started to shut down at random. I tried to update the computer to the newest software that is El Caption, but it still kept happening. Then i tried to make a backup from the computer, and deleted and recovered my mac, from a backup from last year when there wasn't any problems, but it still keeps happening.
And I tried to make an Apple Diagnostic, where it wrote that the problem was with a reference code PPT004, which states that the problem is with the battery.
So what do you recon I should do? And do you think if I got a new battery that it would solve the my problem of it shutting down at random?
MacBook Air, OS X Yosemite (10.10.2)