# parameters.py
from otree.api import cu # for Currency values
# ---------- global experiment-level settings ----------
BASE_PARTICIPATION_FEE = cu(7.00)
PRIZE_AMOUNT = cu(10.00)
TARGET_REPS = 5
import csv
from pathlib import Path
# ---------- questions & payoff tables ----------
RISK_QUESTIONS = [
# Each dict is one row on the “Risk” page
{
"name": "risk_q1",
"text": "Option A: 0/10 chance of $4.00, 10/10 chance of $3.20
"
"Option B: 0/10 chance of $7.70, 10/10 chance of $0.20",
# Payoff table keyed by player choice
# (probability of high outcome, high $, low $)
"payoff": {
"A": (0.00, cu(4.00), cu(3.20)),
"B": (0.00, cu(7.70), cu(0.20)),
},
},
{
"name": "risk_q2",
"text": "Option A: 1/10 chance of $4.00, 9/10 chance of $3.20
"
"Option B: 1/10 chance of $7.70, 9/10 chance of $0.20",
"payoff": {
"A": (0.10, cu(4.00), cu(3.20)),
"B": (0.10, cu(7.70), cu(0.20)),
},
},
{
"name": "risk_q3",
"text": "Option A: 2/10 chance of $4.00, 8/10 chance of $3.20
"
"Option B: 2/10 chance of $7.70, 8/10 chance of $0.20",
"payoff": {
"A": (0.20, cu(4.00), cu(3.20)),
"B": (0.20, cu(7.70), cu(0.20)),
},
},
{
"name": "risk_q4",
"text": "Option A: 3/10 chance of $4.00, 7/10 chance of $3.20
"
"Option B: 3/10 chance of $7.70, 7/10 chance of $0.20",
"payoff": {
"A": (0.30, cu(4.00), cu(3.20)),
"B": (0.30, cu(7.70), cu(0.20)),
},
},
{
"name": "risk_q5",
"text": "Option A: 4/10 chance of $4.00, 6/10 chance of $3.20
"
"Option B: 4/10 chance of $7.70, 6/10 chance of $0.20",
"payoff": {
"A": (0.40, cu(4.00), cu(3.20)),
"B": (0.40, cu(7.70), cu(0.20)),
},
},
{
"name": "risk_q6",
"text": "Option A: 5/10 chance of $4.00, 5/10 chance of $3.20
"
"Option B: 5/10 chance of $7.70, 5/10 chance of $0.20",
"payoff": {
"A": (0.50, cu(4.00), cu(3.20)),
"B": (0.50, cu(7.70), cu(0.20)),
},
},
{
"name": "risk_q7",
"text": "Option A: 6/10 chance of $4.00, 4/10 chance of $3.20
"
"Option B: 6/10 chance of $7.70, 4/10 chance of $0.20",
"payoff": {
"A": (0.60, cu(4.00), cu(3.20)),
"B": (0.60, cu(7.70), cu(0.20)),
},
},
{
"name": "risk_q8",
"text": "Option A: 7/10 chance of $4.00, 3/10 chance of $3.20
"
"Option B: 7/10 chance of $7.70, 3/10 chance of $0.20",
"payoff": {
"A": (0.70, cu(4.00), cu(3.20)),
"B": (0.70, cu(7.70), cu(0.20)),
},
},
{
"name": "risk_q9",
"text": "Option A: 8/10 chance of $4.00, 2/10 chance of $3.20
"
"Option B: 8/10 chance of $7.70, 2/10 chance of $0.20",
"payoff": {
"A": (0.80, cu(4.00), cu(3.20)),
"B": (0.80, cu(7.70), cu(0.20)),
},
},
{
"name": "risk_q10",
"text": "Option A: 9/10 chance of $4.00, 1/10 chance of $3.20
"
"Option B: 9/10 chance of $7.70, 1/10 chance of $0.20",
"payoff": {
"A": (0.90, cu(4.00), cu(3.20)),
"B": (0.90, cu(7.70), cu(0.20)),
},
},
{
"name": "risk_q11",
"text": "Option A: 10/10 chance of $4.00, 0/10 chance of $3.20
"
"Option B: 10/10 chance of $7.70, 0/10 chance of $0.20",
"payoff": {
"A": (1.00, cu(4.00), cu(3.20)),
"B": (1.00, cu(7.70), cu(0.20)),
},
},
]
TIME_QUESTIONS = [
{
"name": "time_q1",
"text": "Option A: Receive $9 for sure today
"
"Option B: Receive $10 for sure in five weeks",
# Payoff table keyed by player choice
# (amount, week delay)
"payoff": {
"A": {"amount": cu(9.00), "delay_weeks": 0},
"B": {"amount": cu(10.00), "delay_weeks": 5},
},
},
{
"name": "time_q2",
"text": "Option A: Receive $8 for sure today
"
"Option B: Receive $10 for sure in five weeks",
"payoff": {
"A": {"amount": cu(8.00), "delay_weeks": 0},
"B": {"amount": cu(10.00), "delay_weeks": 5},
},
},
{
"name": "time_q3",
"text": "Option A: Receive $6 for sure today
"
"Option B: Receive $10 for sure in five weeks",
"payoff": {
"A": {"amount": cu(6.00), "delay_weeks": 0},
"B": {"amount": cu(10.00), "delay_weeks": 5},
},
},
{
"name": "time_q4",
"text": "Option A: Receive $4 for sure today
"
"Option B: Receive $10 for sure in five weeks",
"payoff": {
"A": {"amount": cu(4.00), "delay_weeks": 0},
"B": {"amount": cu(10.00), "delay_weeks": 5},
},
},
{
"name": "time_q5",
"text": "Option A: Receive $1 for sure today
"
"Option B: Receive $10 for sure in five weeks",
"payoff": {
"A": {"amount": cu(1.00), "delay_weeks": 0},
"B": {"amount": cu(10.00), "delay_weeks": 5},
},
},
{
"name": "time_q6",
"text": "Option A: Receive $10 for sure today
"
"Option B: Receive $10 for sure in ten weeks",
"payoff": {
"A": {"amount": cu(10.00), "delay_weeks": 0},
"B": {"amount": cu(10.00), "delay_weeks": 10},
},
},
{
"name": "time_q7",
"text": "Option A: Receive $9 for sure today
"
"Option B: Receive $10 for sure in ten weeks",
"payoff": {
"A": {"amount": cu(9.00), "delay_weeks": 0},
"B": {"amount": cu(10.00), "delay_weeks": 10},
},
},
{
"name": "time_q8",
"text": "Option A: Receive $8 for sure today
"
"Option B: Receive $10 for sure in ten weeks",
"payoff": {
"A": {"amount": cu(8.00), "delay_weeks": 0},
"B": {"amount": cu(10.00), "delay_weeks": 10},
},
},
{
"name": "time_q9",
"text": "Option A: Receive $6 for sure today
"
"Option B: Receive $10 for sure in ten weeks",
"payoff": {
"A": {"amount": cu(6.00), "delay_weeks": 0},
"B": {"amount": cu(10.00), "delay_weeks": 10},
},
},
{
"name": "time_q10",
"text": "Option A: Receive $3 for sure today
"
"Option B: Receive $10 for sure in ten weeks",
"payoff": {
"A": {"amount": cu(3.00), "delay_weeks": 0},
"B": {"amount": cu(10.00), "delay_weeks": 10},
},
},
]
SOCIAL_QUESTIONS = [
{
"name": "social_q1",
"text": (
"Option A: You get $6, and the other person gets $6
"
"Option B: You get $13, and the other person gets $0"
),
# Payoff table keyed by player choice
# (pparticipant payment, other payment)
"payoff": {
"A": {"self": cu(6.00), "other": cu(6.00)},
"B": {"self": cu(13.00), "other": cu(0.00)},
},
},
{
"name": "social_q2",
"text": (
"Option A: You get $6, and the other person gets $6
"
"Option B: You get $11, and the other person gets $1"
),
"payoff": {
"A": {"self": cu(6.00), "other": cu(6.00)},
"B": {"self": cu(11.00), "other": cu(1.00)},
},
},
{
"name": "social_q3",
"text": (
"Option A: You get $6, and the other person gets $6
"
"Option B: You get $9, and the other person gets $2"
),
"payoff": {
"A": {"self": cu(6.00), "other": cu(6.00)},
"B": {"self": cu(9.00), "other": cu(2.00)},
},
},
{
"name": "social_q4",
"text": (
"Option A: You get $6, and the other person gets $6
"
"Option B: You get $7, and the other person gets $3"
),
"payoff": {
"A": {"self": cu(6.00), "other": cu(6.00)},
"B": {"self": cu(7.00), "other": cu(3.00)},
},
},
{
"name": "social_q5",
"text": (
"Option A: You get $6, and the other person gets $6
"
"Option B: You get $5, and the other person gets $8"
),
"payoff": {
"A": {"self": cu(6.00), "other": cu(6.00)},
"B": {"self": cu(5.00), "other": cu(8.00)},
},
},
{
"name": "social_q6",
"text": (
"Option A: You get $6, and the other person gets $6
"
"Option B: You get $3, and the other person gets $13"
),
"payoff": {
"A": {"self": cu(6.00), "other": cu(6.00)},
"B": {"self": cu(3.00), "other": cu(13.00)},
},
},
]