You can change the iCloud account on your iPad by signing out of your old account and into a new one, or add a different account for app purchases.
You can change your Yahoo password by accessing your account settings on a computer or the Yahoo mobile app.