This repository is a compact behavioral data analysis portfolio project built with simulated repeated-measures data. The notebook shows a full workflow: data generation, quality control, participant-level summaries, visualization, and inferential statistics.
This Plotly bar chart summarizes the condition effect with standard error bars, making the baseline vs. adaptation comparison easy to read at a glance.
This paired Plotly line chart shows the within-subject pattern directly, which is often the most important behavioral-data view in a repeated-measures design.
- Generate a simulated behavioral dataset for
baselineandadaptationconditions across multiple participants. - Apply a simple quality-control exclusion based on minimum completed trials.
- Summarize participant-level
switch_rateoutcomes. - Visualize the two most important behavioral patterns with Plotly.
- Run a paired
t-testand a repeated-measures ANOVA.
- Create and activate a virtual environment.
python -m venv .venv
.venv\Scripts\activate- Install dependencies.
pip install -r requirements.txt- Generate the Plotly screenshots used in this README.
python generate_plotly_assets.py- Open the notebook to explore or rerun the full analysis.
jupyter notebook analysis.ipynbThe script writes both static PNG screenshots and interactive HTML files into assets/.
| File | Description |
|---|---|
analysis.ipynb |
Main notebook for the behavioral analysis workflow, now using Plotly for the two key graphs. |
generate_plotly_assets.py |
Recreates the simulated dataset and exports the Plotly figures to assets/. |
requirements.txt |
Python dependencies required for the notebook and Plotly figure export. |

