While it's not to say Skywalker wouldn't stand a chance, the duel between Yoda and Anakin would be close. In the end, though, Yoda would be the ultimate victor if he fought Anakin in Star Wars' Revenge of the Sith.
One of the main reasons why Yoda would've won against Anakin is simply because he was far better trained than him. Yoda could see the moves his opponents were going to make before they made them; therefore, battling against Anakin would've put him at a far heavier advantage.
Evidence for ROTS Anakin > Yoda (in the force)
Sidious then confirms that Anakin is 'far' more powerful. Anakin's quick work of Dooku + Sheev's confirmation immediately make it clear that Anakin is a tier above Dooku power wise when he cuts loose.
Tyranus and mace are considered being peers of yoda too in sabers(per other jedis in the order based on their sparring matches) and knightfall vader is ranked above yoda in dueling too.
The answer to this should be pretty obvious period since Yoda was far higher in power and skill then Obi-Wan Kenobi, and Obi-Wan Kenobi was able to defeat Anakin therefore Yoda could certainly defeat anakin and he would have done it likely within the first 5 to 10 seconds.
Aside from agility and telekinesis, Yoda could absorb and redirect Force attacks, like lightning. Because of his higher understanding, he would easily overcome Darth Vader in a fight, though that doesn't mean it wouldn't be a difficult battle.
The Force: Despite his advanced age and small size, Yoda was very strong with the Force and a greatly skilled warrior. Yoda was capable of holding his own in combat against opponents such as the Dark Lords Darth Tyrannus and Sidious.
More cunning and devious than all but the most attuned Force-sensitive beings, Darth Bane could more than likely defeat Yoda in a battle of both strength and wit.
In Star Wars Legends and Canon, Galen Marek (Starkiller) is the only Jedi (other than Obi-Wan Kenobi) to put a beat down on Darth Vader/Anakin Skywalker. Galen was secretly trained as a Sith Lord apprentice to Vader, but returned to the light side and the Jedi.
1 Darth Sidious
There has been no Sith, as powerful, meticulous, nor as evil as the Emperor himself, Darth Sidious. As previously mentioned, Sidious trained in the Dark Side by Darth Plagueis before Sidious killed Plagueis in his sleep, making Sidious a Sith Master.
Most of them were just happy to last longer than 20 seconds against the Grandmaster, and bragged about it to their friends if they could.
By the time of Episode 3; Anakin is in his prime, and already one of the Jedi Order's most powerful “masters” (although technically still a knight), just behind Obi-Wan, Windu, and Yoda. Maul wouldn't stand a chance. Anakin stomps.
Immense Strength: Anakin utilized his Force powers to amplify his physical strength; this made him physically stronger then most, if not all other sentient beings. His cybernetic arm also allowed him additional strength to overpower others with greater ease.
Yoda's Duel With Palpatine Called for a Strategic Shake-Up
Yoda claims that the light side of the Force is stronger than the dark, but his battle against Palpatine is almost equal. The Sith Lord's powers were enough to overwhelm the Jedi and send him plummeting down to the depths of the senate chamber.
From simple google searches you can find that Yoda's midi count was 18,000 per cell, Obi-wan's was 15,000, Palpatine's is said to be higher that Yoda's around 18,500-19,000, and the highest known was Anakin Skywalker's at 20,000 midis per cell.
Luke Skywalker
However, once Luke fully embraced his power in Star Wars: Return of the Jedi, he proved that he was indeed stronger than Darth Vader and struck his father down.
Obi-Wan Kenobi episode 6 saw the Jedi Master defeat Darth Vader in a spectacular duel - and he accomplished this feat by breaking the same rules as Anakin Skywalker.
in the years that followed, he slew another 5 Jedi. Kirak and Thila, Jocasta Nu Ferran, Barr Ith Koth, and finally. Obi Wan Kenobi. that puts his confirmed total at 27 Jedi killed.
Master Yoda has risen above all others to claim the top spot as the most powerful Jedi of all time and the true chosen one according to IGN's audience. He won pretty handily as well, as he was victorious in 89,756 of his 95,243 battles and had a win percentage of 94.2%.
Unwilling to see his son die, Vader gave his life to save Luke, thereby dying as Anakin Skywalker. Anakin ultimately fulfilled his role as the Chosen One and brought balance to the Force, fulfilling Qui-Gon Jinn's belief in the prophecy that foretold Anakin's destiny.
Arguably, Qui-Gon is wiser in some ways, given that he knows how to preserve his consciousness in death. Yoda is wise, but sometimes flawed, given that some of his views align with the problematic thinking of the Jedi of this era.
Yoda's Lightsaber Form Hints He Was Vulnerable To The Dark Side - IMDb. With the various forms of lightsaber combat in the Star Wars universe, the form that Master Yoda employs suggests of a possible weakness to the dark side's sway.
Yoda was tempted by the dark side on a few occasions throughout his life. If he fell to the Sith ways, he would've been more powerful than Palpatine. If Yoda had turned to the dark side in Star Wars, he would have eclipsed the might of even the strongest Sith Master, Emporer Palpatine.
Through the Force, Yoda was considered to have mastered Form IV to its highest level. He used it in almost all of his battles, and his mastery of the style caused others to describe him as virtually unstoppable against most opponents, including Separatist battle droids, despite his small size and advanced age.