WASHINGTON (AP) -- So how do U.S. eighth-graders do in math and science when compared to their peers around the globe? Turns out it matters which state they live in, according to a study being released Thursday.
Massachusetts was the top performing state, but it still lagged behind some Asian countries in terms of its students' overall score on exams and the number of high achievers.
Mississippi, Alabama and the District of Columbia students scored below the international average on both exams, meaning their scores were on par with Kazakhstan and Dubai, United Arab Emirates.
West Virginia, Oklahoma and Tennessee students scored below the international average in math.
Jack Buckley, commissioner of the Education Department's National Center for Education Statistics, which released the study, called the results a "good-news, bad-news scenario" that probably will bolster both those who say the U.S. is doing fine in global competitiveness as well as those on the other side.
Overall, a majority of states performed above the international average in both subjects.
"Our states really are scattered across the performance levels," Buckley said in a conference call with reporters.
Education Secretary Arne Duncan said in a statement that the study provides "powerful confirmation that demography need not be destiny when it comes to school performance -- state policies matter too."
The study compared every state, the District of Columbia and Defense Department schools against 38 countries and nine additional subnational education systems. Some countries, including China, India, France and Germany, did not participate.
Researchers took eighth-grade test results in math and science from the 2011 National Assessment of Educational Progress (NAEP) to predict performance on the international comparative study test known as the Trends in International Mathematics and Science Study (TIMSS). Nine states participated directly in TIMSS.
NAEP includes the scores of students tested with accommodations; TIMSS does not. Buckley said statistical modeling was used to account for that difference.
South Korea, Singapore, Taiwan, Hong Kong and Japan were the top scorers in math followed by Massachusetts, Vermont, Minnesota, New Jersey and New Hampshire.
In science, Massachusetts was behind the top scorer, Singapore. Taiwan was next, followed by Vermont. The top 10 also included South Korea and Japan -- and New Hampshire, North Dakota, Maine and Minnesota.
Mark Schneider, vice president at the American Institutes for Research and a former commissioner for the National Center for Education Statistics, said one of the most disturbing results from the study is the low numbers of "advanced" achievers in the United States compared with other countries.
Even in high-scoring Massachusetts, where 19 percent of students reached the "advanced benchmark" in math and 24 reached it in science, there were fewer higher achievers than in some other countries. About half the students in Taiwan, South Korea and Singapore reached the high benchmark in math and 40 percent of students in Singapore did so.
On the other end, for example, Alabama had a lower percent of "advanced" achievers in math than Romania and Turkey -- two countries it overall scored higher than.
"In a world in which we need the best, it's pretty clear many states are empty on the best," Schneider said.
Tom Loveless, a senior fellow at the Brookings Institution, said one thing that's hidden in the results of this study is that even in high-achieving states, there are low performers who need to be brought up from the bottom.
"If we as Americans want to get all of our kids achieving at the highest level, in terms of worldwide academic achievement, we have a lot of work and it's not just the low scoring states where it's obvious," Loveless said.
The scores were ranked on a scale of 1,000.
In math, the average state scores ranged from 561 for Massachusetts to 466 for Alabama.
In science, the average state scores ranged from 567 for Massachusetts to 453 for the District of Columbia.