Those struggling to stick to their New Year's resolution might take comfort in scientists' assertion that will power has very little to do with a person's character.

Professor Nick Chater revealed that the environment is a far bigger factor in determining whether people are able to stick to their diet or exercise regime and that people are suffering from the 'fundamental attribution error' in believing that the success of their New Year's resolution depends on their will power.

"It can't be that some people who lead very effective and well organised lives are just endowed with vastly more will power than others," said Professor Chater, of Warwick Business School, on BBC Radio 4's The Human Zoo. "There is no independent evidence for this. Conditions and the environment have more of an effect than we think they do. The 'fundamental attribution error' sees people consistently overweight people's character as the determining factor.

"We have to accept that external factors are very important. The environment we live in is nudging us one way or another, to buy or not to, to drink or not to, depending on what signals are present in the environment."

Professor Chater, who is Professor of Behavioural Science at Warwick Business School, experimented on students giving them the choice between a piece of fruit or chocolate. One group were given a long number to remember the other a simple short number. Though the results were mixed there is evidence to back up the hypothesis that more of those with the short number would choose fruit.

"There is quite a lot of experimental work on how our will power is affected by the amount by which our memory is taken up by other things," said Professor Chater. "Will power seems to require paying attention. On a large number of people, you really can make them have less will power by distracting them with tricky mental tasks.

"If you are exerting a lot of will power in one dimension of your life, like dieting vigorously, then other areas of your life will tend to become slacker, so your will power is a finite source."

Ed Gardiner, of the Behavioural Design Lab, a collaboration between Warwick Business School and the Design Council, believes sticking to a New Year's resolution involves changing your own environment.

"There is a misunderstanding of the power of the environment in creating new habits," said Gardiner. "We think our actions are simply the result of our own intentions, but actually they are influenced by many, many environmental factors. What are those crucial factors that have the most powerful influence on our behaviour? Once you understand that then you can start to manipulate those factors.

"Habits are formed by a link to a particular environmental cue. For example if you want to get fitter, choose a gym that is situated on your way home from work. If you want to quit drinking, don't have wine in the fridge when you start cooking."

Professor Chater, who is an advisor to the Government's Behavioural Insights Team or as it is more commonly known the 'Nudge Unit', added: "We can we can try to shape our interaction with the environment to make it as friendly as possible, to give ourselves the nudges we want to have, by trying to make sure you settle on a lifestyle and pattern of behaviour that puts you in a position to make the decisions you want to make."