Skip to content

Commit

Permalink
Merge pull request #1 from c4r-io/hms-246-activity
Browse files Browse the repository at this point in the history
Move confirmation bias 2-4-6 prototype
  • Loading branch information
JackLiddy authored Apr 4, 2024
2 parents 9891e3b + a0171e2 commit 055acf4
Show file tree
Hide file tree
Showing 15 changed files with 4,243 additions and 0 deletions.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
208 changes: 208 additions & 0 deletions hms_u01_LM_246experiment_v0_1/assets/raven-white-bg-01.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
256 changes: 256 additions & 0 deletions hms_u01_LM_246experiment_v0_1/assets/raven-white-bg-02.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
896 changes: 896 additions & 0 deletions hms_u01_LM_246experiment_v0_1/assets/raven-white-bg-05.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
208 changes: 208 additions & 0 deletions hms_u01_LM_246experiment_v0_1/assets/raven-white-bg-11.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
216 changes: 216 additions & 0 deletions hms_u01_LM_246experiment_v0_1/assets/raven-white-bg-16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions hms_u01_LM_246experiment_v0_1/feedbackPrompt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
I'm conducting an analysis of a participant's approach in Wason's 2-4-6 task and require your expertise in evaluating their strategy.

The participant is provided with a sequence of 3 numbers and is tasked with figuring out the hidden rule that aligns with these numbers.

The participant is not told the hidde
The hidden rule is: "Any sequence of increasing numbers", but the participant is not told this. They are only provided with a hint of a sequnce that aligns with it: 2, 4, 6.

Their method of figuring out the hidden rule is by guessing a sequence of 3 numbers and receiving feedback on whether it conforms to the hidden rule or not. Upon each guess, they might revise their current guess of what the hidden rule is.

For each guess I have collected the following data: The participants current guess of what the rule is, the participant's sequence of 3 numbers that they are currently testing, our calculation of whether their numbers sequence matches the hidden rule (true/false).

Please analyze the data provided and determine at each step whether the participant appears to be using their number sequence guess to disprove their current hypothesis, or confirm their hypothesis. If they appear to be disposing their hypothesis, assign the value 'true' to disproveAttempt. I request that your response be structured to reflect this evaluation for each guess, considering the progression in their guesses, the feedback received, and changes in their confidence levels.

Please respond with strictly true or false for your analysis of each. Format your answers in a json format. Example:
[
{
"entryNumber": 0,
"disproveAttempt": true
},
{
"entryNumber": 1,
"disproveAttempt": false
},
{
"entryNumber": 2,
"disproveAttempt": false
}
]

Do not respond with any additional text. just this formatted json response. Even if you cant come up with an answer.
106 changes: 106 additions & 0 deletions hms_u01_LM_246experiment_v0_1/graph.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<!DOCTYPE html>
<html>

<head>
<title>2 4 6 Activity </title>
<style>
#chart-container {

}

#my-graph {

}
</style>
</head>

<body>

<div class="chart-container" style="position: relative; height:50vh; width:60vw">
<canvas id="my-graph"></canvas>
</div>


<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
numGuesses = 3;
proportionDisproveAttempts = 0.5;

const ctx = document.getElementById('my-graph');

new Chart(ctx, {
type: 'line',
data: {
labels: [1, 2, 3, 4, 5, 6, 7, 8],
datasets: [{
label: 'Previous participants (Test Data)',
data: [0.2, 0.4, 0.7, 0.8, 1.0],
borderWidth: 3,
backgroundColor: 'rgba(0, 255, 0, 0.8)',
radius: 6,
},
{
type: 'bubble', // 'bubble' type will create a point
label: 'You',
data: [{x: numGuesses, y: proportionDisproveAttempts, r: 10}], // x and y are coordinates, r is the radius of the point
backgroundColor: 'rgba(255, 0, 0, 0.6)', // color of the point
}]
},
options: {
plugins: {
legend: {
labels: {
color: 'rgb(0, 0, 0)',
font: {
size: 16
}
},
onClick: null // Disable legend click event
},
title: {
display: true,
text: ''
},
tooltip: {
enabled: false
}
},
scales: {
x: {
title: {
display: true,
text: 'Number of attempts to guess the rule',
font: {
size: 20
}
},
beginAtZero: true,
ticks: {
font: {
size: 14
}
}
},
y: {
title: {
display: true,
text: 'Proportion of incompatible instances',
font: {
size: 20
}
},
beginAtZero: true,
ticks: {
font: {
size: 14
}
}
}
},
responsive: true,
maintainAspectRatio: false,
}
});
</script>

</body>
Loading

0 comments on commit 055acf4

Please sign in to comment.