Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LaraKirfel committed May 27, 2024
2 parents ead64db + 07f80df commit cf52c5d
Showing 1 changed file with 63 additions and 56 deletions.
119 changes: 63 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,89 +1,75 @@
# Explanations Communiate Optimal Interventions
# Explanations Communicate Optimal Interventions


This repository contains the experiment, data, analyses and figured for the CogSci 2024 paper <a href="https://psyarxiv.com/XXX/">"Do as I explain" Explanations communiate optimal interventions"</a> by Lara Kirfel, Jacqueline Harding, Jeong Shin, Cindy Wu, Thomas Icard and Tobias Gerstenberg.
This repository contains the experiment, data, analyses and figured for the CogSci 2024 paper "Do as I explain" Explanations communicate optimal interventions" by Lara Kirfel, Jacqueline Harding, Jeong Shin, Cindy Wu, Thomas Icard and Tobias Gerstenberg.

## Abstract

People often select only a few events when explaining what happened. What drives people's explanation selection? Prior research argued that people's explanation choices are affected by event normality and causal structure. Here, we propose a new model of these existing findings and test its predictions in a novel experiment. The model predicts that speakers value accuracy and relevance. They choose explanations that are true, and that communicate useful information to the listener. We test the model's predictions empirically by manipulating what goals a listener has and what actions they can take. Across twelve experimental conditions, we find that our model accurately predicts that people like to choose explanations that communicate optimal interventions.

## Pre-registrations
## Pre-registrations

<ul>
<li>the pre-registrations for all experiments may be accessed via the Open Science Framework <a href="https://osf.io/fpyst/">here</a>.</li>
<li>separate links for each experiment:</li>
<ul>
<li><a href="https://osf.io/8k9sy">Condition "Hard Intervention / Negative Outcome" </a></li>
<li><a href="https://osf.io/7qzu9">Condition "Hard Intervention / Positive Outcome" </a></li>
<li><a href="https://osf.io/aw286">Condition "Soft Intervention / Negative Outcome" </a></li>
<li><a href="https://osf.io/dmgcw">Condition "Soft Intervention / Positive Outcome" </a></li>
<li><a href="https://osf.io/49bfq">Condition "Fixed Intervention / Negative Outcome" </a></li>
<li><a href="https://osf.io/rbu7y">Condition "Fixed Intervention / Positive Outcome" </a></li>
</ul>
</ul>
The pre-registrations for all experiments may be accessed via the Open Science Framework [here](https://osf.io/fpyst/).

Here are separate links for each experiment:
- [Condition "Hard Intervention / Negative Outcome"](https://osf.io/8k9sy)
- [Condition "Hard Intervention / Positive Outcome"](https://osf.io/7qzu9)
- [Condition "Soft Intervention / Negative Outcome"](https://osf.io/aw286)
- [Condition "Soft Intervention / Positive Outcome"](https://osf.io/dmgcw)
- [Condition "Fixed Intervention / Negative Outcome"](https://osf.io/49bfq)
- [Condition "Fixed Intervention / Positive Outcome"](https://osf.io/rbu7y)

## Repository structure
## Repository structure

```
.
├── code
│   ── R
│   ── R
├── data
├── docs
│   ├── experiment1 (Hard Intervention)
│   ├── experiment2 (Soft Intervention)
│   └── experiment3 (Fixed Intervention)
└── figures
│  └── plots
│   ├── analyses
│   ├── experiment_1
│   ├── experiment_2
│   └── experiment_3
├── figures
│   └── plots
└── writeup
└── cogsci
```

### code

This folder contains two types of R scripts.
The model predictions can be seen <a href="https://cicl-stanford.github.io/explanation_intervention/analyses/experiments/index.html">here</a>. The analyses and plots can be seen <a href="https://cicl-stanford.github.io/explanation_intervention/analyses/model/index.html">here</a>

<ul>
<li><code>R/optimal_intervention_model</code>
<ul>
<li> <code>R/optimal_intervention.rmd</code> creates the model predictions for the intervention model, the truth model and a combined model.</li>
<ul>
<li><code>explanation_predictions_truth_only.csv</code>, for example, contains the predictions for a "Truth Only" model.</li>
</ul>
</ul>
</li>
<li><code>R/experiments</code>
<ul>
<li> This folder contains all raw data from all experimental conditions.
<ul>
<li><code>[...]study_X-responses.csv</code> contains the response data (i.e., intervention and explanation selection).</li>
<li><code>[...]study_X-participants.csv</code> contains demographic information and post-experiment feedback/comments from participants.</li>
<li><code>Experiment.rmd</code> reads in the response data from each experimental condition (e.g., fixed intervention / negative), calculates average responses and outputs these in a new data file (e.g., <code>fixedint_negative.csv</code>).
</li>
</ul>
</li>
</ul>
</li>
</ul>

- The model predictions can be seen [here](https://cicl-stanford.github.io/explanation_intervention/analyses/model/index.html)
- The analyses and plots can be seen [here](https://cicl-stanford.github.io/explanation_intervention/analyses/experiments/index.html)

- <code>R/optimal_intervention_model</code>:
- <code>R/optimal_intervention.rmd</code> creates the model predictions for the intervention model, the truth model and a combined model.
- <code>explanation_predictions_truth_only.csv</code>, for example, contains the predictions for a "Truth Only" model.
- <code>R/experiments</code>: This folder contains all raw data from all experimental conditions.
- <code>[...]study_X-responses.csv</code> contains the response data (i.e., intervention and explanation selection).
- <code>[...]study_X-participants.csv</code> contains demographic information and post-experiment feedback/comments from participants.
- <code>Experiment.rmd</code> reads in the response data from each experimental condition (e.g., fixed intervention / negative), calculates average responses and outputs these in a new data file (e.g., <code>fixedint_negative.csv</code>).

### docs

Contains all the experiment code. You can preview the experiments below:

Condition "Hard Intervention / Positive Outcome": <a href="https://cicl-stanford.github.io/explanation_intervention/experiment_1/index.html?condition=1">Click here!</a>
- [Condition "Hard Intervention / Positive Outcome"](https://cicl-stanford.github.io/explanation_intervention/experiment_1/index.html?condition=1)

Condition "Hard Intervention / Negative Outcome": <a href="https://cicl-stanford.github.io/explanation_intervention/experiment_1/index.html?condition=3">Click here!</a>
- [Condition "Hard Intervention / Negative Outcome"](https://cicl-stanford.github.io/explanation_intervention/experiment_1/index.html?condition=3)

Condition "Soft Intervention / Positive Outcome": <a href="https://cicl-stanford.github.io/explanation_intervention/experiment_2/index.html?condition=1">Click here!</a>
- [Condition "Soft Intervention / Positive Outcome"](https://cicl-stanford.github.io/explanation_intervention/experiment_2/index.html?condition=1)

Condition "Soft Intervention / Negative Outcome": <a href="https://cicl-stanford.github.io/explanation_intervention/experiment_2/index.html?condition=3">Click here!</a>
- [Condition "Soft Intervention / Negative Outcome"](https://cicl-stanford.github.io/explanation_intervention/experiment_2/index.html?condition=3)

Condition "Fixed Intervention / Positive Outcome": <a href="https://cicl-stanford.github.io/explanation_intervention/experiment_3/index.html?condition=1">Click here!</a>
- [Condition "Fixed Intervention / Positive Outcome"](https://cicl-stanford.github.io/explanation_intervention/experiment_3/index.html?condition=1)

Condition "Fixed Intervention / Negative Outcome": <a href="https://cicl-stanford.github.io/explanation_intervention/experiment_3/index.html?condition=3">Click here!</a>
- [Condition "Fixed Intervention / Negative Outcome"](https://cicl-stanford.github.io/explanation_intervention/experiment_3/index.html?condition=3)


### data
### data

Contains anonymized combined data for all experimental conditions (hard / soft / fixed intervention x positive / negative outcome) (for raw data and how these were computed, see <code>code/R/</code>).

Expand All @@ -92,10 +78,31 @@ For example, <code>fixedint_negative.csv</code> contains the average percentage
<code>data_int.csv</code> combines all four dataframes (hardint_pos, hardint_neg, softint_pos, softint_neg, fixedint_pos, fixedint_neg)


### figures
### figures

contains all the figures from the paper (generated using the script in <code>code/R/experiments</code>).
Contains all the figures from the paper (generated using the script in <code>code/R/experiments</code>).

### writeup

contains a pdf of the CogSci 2024 paper.
Contains a pdf of the CogSci 2024 paper.

## CRediT

Please see [here](https://www.elsevier.com/researcher/author/policies-and-guidelines/credit-author-statement) for definitions of the different terms.

| | Lara | Jacqueline | Jeong | Cindy | Thomas | Tobias |
|----------------------------|------|------------|-------|-------|--------|--------|
| Conceptualization | X | | | | X | X |
| Methodology | X | X | X | | | X |
| Software | X | X | X | X | | X |
| Validation | X | | | | | X |
| Formal analysis | X | X | | | | X |
| Investigation | X | | X | | | |
| Resources | | | | | | |
| Data Curation | X | | | | | X |
| Writing - Original Draft | X | X | | | | |
| Writing - Review & Editing | X | X | X | X | X | X |
| Visualization | | | | | | X |
| Supervision | | | | | X | X |
| Project administration | | | | | | X |
| Funding acquisition | | | | | | X |

0 comments on commit cf52c5d

Please sign in to comment.