Former US President Barack Obama said that when making a decision, it's helpful not to watch TV or read social media.

That's because that "creates a lot of noise and clouds your judgment," Obama said on Wednesday at an event in San Francisco organized by the tech company Splunk.

He also said it's important to "have a team with a diversity of opinion" to help with making decisions and providing context.

Visit Business Insider's homepage for more stories.

If you're the president of the United States, Barack Obama has two important tips to help make good decisions.

The former US president spoke about his decision-making process on Wednesday at an event in San Francisco organized by the data-analysis company Splunk.

First, Obama said, you should "make sure you have a team with a diversity of opinion sitting around you."

"The other thing that's helpful is not watching TV or reading social media," he said. "Those are two things I would advise, if you're our president, not to do. It creates a lot of noise and clouds your judgment."

Obama spoke about entering office during the Great Recession and told attendees it's been said that the presidency is like "drinking out of a fire hose."

"That's doubly true when you're in the middle of a crisis," Obama said.

A president can't absorb all the information on their own when making a decision, so it's important to have teams to provide information and context about the problem, he said.

"Then what you have to do is create a process where you have confidence that whatever data is out there has been sifted and sorted," Obama said.

Obama said that because there's so much information out there now, including "opinion wrapped up as fact" and clickbait, it's important to filter through the noise.

"What it does mean is that if you are susceptible to worrying about what are the polls saying or what might this person say about this topic, or you start mistaking the intensity of the passion of a very small subset of people with a broader sense about your country or people who know something about the topic, that will sway your decision-making in an unhealthy way," Obama said.