from otree.api import * c = cu doc = 'Economic literacy' class C(BaseConstants): NAME_IN_URL = 'End' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): inf_definition = models.StringField(choices=[['overall price level of goods and services. ', 'overall price level of goods and services. '], ['overall level of money wages. ', 'overall level of money wages. '], ['the long term interest rate. ', 'the long term interest rate. '], ['value of money.', 'value of money.']], label=' The rate of inflation in an economy is best described as the rate of increase in the ', widget=widgets.RadioSelect) simple_statistics = models.IntegerField(label='What is the median of the following numbers? 10, 30, 60, 70, 90, 150, 220, 760') numeracy = models.StringField(choices=[['More than €102', 'More than €102'], ['Exactly €102', 'Exactly €102'], ['Less than €102', 'Less than €102'], ['Do not know', 'Do not know']], label='Suppose you had €100 in a savings account and the interest rate was 2% per year. After 5 years, how much do you think you would have in the account if you left the money to grow? ', widget=widgets.RadioSelect) monetary_policy_institution = models.StringField(choices=[['The king', 'The king'], ['Parliament', 'Parliament'], ['The Central Bank (Riksbanken)', 'The Central Bank (Riksbanken)'], ['Ministry of Finance', 'Ministry of Finance']], label='Who carries out monetary policy in Sweden?', widget=widgets.RadioSelect) monetary_policy_purpose = models.StringField(choices=[['Stabilize the price level of goods and services', 'Stabilize the price level of goods and services'], ['Stabilize the price of corporate stocks', 'Stabilize the price of corporate stocks'], ['Keep interest rates low and steady', 'Keep interest rates low and steady'], ['Reduce national debt', 'Reduce national debt']], label='A primary purpose of monetary policy today is to:', widget=widgets.RadioSelect) monetary_policy_tools = models.StringField(choices=[['Raising and lowering income taxes', 'Raising and lowering income taxes'], ['Increasing and decreasing unemployment benefits', 'Increasing and decreasing unemployment benefits'], ['Buying and selling government securities', 'Buying and selling government securities'], ['Increasing and decreasing government spending', 'Increasing and decreasing government spending']], label='Which of the following is a tool of monetary policy?', widget=widgets.RadioSelect) prices_and_inflation = models.StringField(choices=[['The price of milk', 'The price of milk'], ['The price of a barrel of oil', 'The price of a barrel of oil'], ['The price of gold', 'The price of gold'], ['The price of corporate stocks', 'The price of corporate stocks']], label='A change in which of the following prices tends to have the largest impact on overall inflation? ', widget=widgets.RadioSelect) inflation_measures = models.StringField(choices=[['Raising the short-term interest rate', 'Raising the short-term interest rate'], ['Lowering the short-term interest rate', 'Lowering the short-term interest rate'], ['Lowering income taxes', 'Lowering income taxes'], ['Raising the level of government spending', 'Raising the level of government spending']], label='Which of the following measures is most likely to lead to lower inflation? ', widget=widgets.RadioSelect) higher_inflation = models.StringField(choices=[['Low unemployment', 'Low unemployment'], ['High unemployment', 'High unemployment'], ['Low government debt', 'Low government debt'], ['High immigration', 'High immigration']], label='Which of the following circumstances is most likely to contribute to higher inflation?', widget=widgets.RadioSelect) simple_prob = models.StringField(choices=[['5 ', '5 '], ['20 ', '20 '], ['50 ', '50 '], ['500', '500']], label='The chance of getting a viral infection is 0.0005. Out of 10,000 people, how many of them are expected to get infected?', widget=widgets.RadioSelect) growth_comparison = models.StringField(choices=[['A bank account', 'A bank account'], ['Stocks', 'Stocks'], ['U.S. Government savings bonds', 'U.S. Government savings bonds'], ['A savings account', 'A savings account']], label='Which of the following tends to have the highest growth over periods of time as long as 20 years? ', widget=widgets.RadioSelect) compounding_interest = models.StringField(choices=[['More than €200', 'More than €200'], ['Exactly €200', 'Exactly €200'], ['Less than €200', 'Less than €200'], ['Do not know', 'Do not know']], label='Suppose you had €100 in a savings account and the interest rate is 20% per year and you never withdraw money or interest payments. After 5 years, how much would you have on this account in total? ', widget=widgets.RadioSelect) interest_vs_inflation = models.StringField(choices=[['More than today', 'More than today'], ['Exactly the same', 'Exactly the same'], ['Less than today', 'Less than today'], ['Do not know', 'Do not know']], label='Imagine that the interest rate on your savings account was 1% per year and inflation was 2% per year. After 1 year, how much would you be able to buy with the money in this account? ', widget=widgets.RadioSelect) time_value_of_money = models.StringField(choices=[['My friend', 'My friend'], ['His siblings', 'His siblings'], ['They are equally rich', 'They are equally rich'], ['Do not know', 'Do not know']], label='Assume a friend inherits €10,000 today and his sibling inherits €10,000 3 years from now. Who is richer because of the inheritance? ', widget=widgets.RadioSelect) money_illusion = models.StringField(choices=[['More than today', 'More than today'], ['The same', 'The same'], ['Less than today', 'Less than today'], ['Do not know', 'Do not know']], label='Suppose that in the year 2010, your income has doubled and prices of all goods have doubled too. In 2010, how much will you be able to buy with your income? ', widget=widgets.RadioSelect) when_to_invest = models.StringField(choices=[['If the stock market has been going up in the past two years', 'If the stock market has been going up in the past two years'], ['If the stock market has been going down in the past two years', 'If the stock market has been going down in the past two years'], ['I do not have an opinion', 'I do not have an opinion']], label='When would you say is a good time to invest in stocks:', widget=widgets.RadioSelect) class EconFinLiteracy(Page): form_model = 'player' form_fields = ['inf_definition', 'simple_statistics', 'numeracy', 'monetary_policy_institution', 'monetary_policy_purpose', 'monetary_policy_tools', 'prices_and_inflation', 'inflation_measures', 'higher_inflation', 'simple_prob', 'growth_comparison', 'compounding_interest', 'interest_vs_inflation', 'time_value_of_money', 'money_illusion', 'when_to_invest'] class FinalPage1(WaitPage): title_text = 'Thank you!' body_text = 'Thank you for taking part in this experiment! You can close this browser tab now.' @staticmethod def is_displayed(player: Player): return True page_sequence = [EconFinLiteracy, FinalPage1]