The credit and finance website WalletHub compared the 50 states to determine which one has residents who feel the freest on this Independence Day.

Researchers determined a state’s independence “based on five sources of dependency: consumer finances, the government, the job market, international trade, and personal vices.”

Utah came out number one, and Kentucky is at the bottom of the list.

“Americans value independence,” WalletHub wrote. “We fought hard for it during the American Revolutionary War.”

“Today, however, we celebrate not only our freedom from the British crown but also our strong ability to rely upon ourselves as individuals,” WalletHub wrote. “It’s a virtue we bring up in our children, employees, and organizations.”

The website asked, “But what does it mean for whole populations to be ‘independent’ in the modern sense of the word?”

WalletHub used 39 key indicators to rank the states that are the most “self-sustaining.”

The states rounding out the top ten are, in order, Nebraska, Massachusetts, Wisconsin, South Dakota, and Virginia.

The least free states, from 41 to 50, are Oregon, Tennessee, Indiana, West Virginia, Alabama, South Carolina, Louisiana, Mississippi, Alaska, and Kentucky.

Some other fast facts include:

Montana has the lowest share of private industry workers employed by foreign-owned firms, at 1.9 percent. That’s 4.3 times lower than in New Jersey, the highest at 8.1 percent

Pennsylvania has the lowest share of government workers (local, state, and federal), at 10.4 percent. Alaska has the country’s highest share, at 25.2 percent.

New Hampshire has the lowest share of residents in poverty, at 8.1 percent — 2.7 times lower than in Mississippi (21.5 percent).

You can view the entire report here.

Follow Penny Starr on Twitter.