21 October 2026

Today

  • Check the assessment and project deadline map.
  • Work from a topic to an available dataset and a possible research question.
  • Discuss whether the data are suitable, using a few simple R checks.

General Check-In

Thinking about the last fortnight:

  • How are you finding the balance between taught sessions and independent study?
  • What has surprised you about the course so far?
  • How are you keeping in touch with others on the course to share ideas, stay on track, or check anything you might have missed?

Take a moment to think, then share what you are comfortable sharing.

Assessment And Project Map

Deadline Module Milestone
30 Oct ’26 Visualization/Data Dashboards Formative
30 Oct ’26 Python/Machine Learning Formative
11 Dec ’26 Computational Statistics Formative report
08 Jan ’27 Visualization/Data Dashboards Portfolio
15 Jan ’27 Python/Machine Learning Report
01 Mar ’27 Research project Ethics deadline
19 Mar ’27 Computational Statistics Report
25 Mar ’27 Professional Skills Portfolio
09 Apr ’27 Brain, Behaviour and Cognition Written assignment
23 Apr ’27 Cyberspace/Online Behaviour Critical essay
11 Jun ’27 Research project Project draft
23 Jul ’27 Research project PG project submission

Discuss the upcoming assessments:

Think individually for 2-3 minutes, then share your estimates and approach with the group.

  • How many hours do you expect to spend preparing each assessment?
  • What needs that time: reading, data preparation, coding, writing, or checking?
  • When will you start, and how much time can you set aside each week?
  • Where will work overlap, including over the winter break?
  • What information do you still need?

Finding A Dataset

Finding and evaluating suitable data is a useful skill across several modules:

  • Computational Statistics for Behavioural Data Science;
  • Visualization of Behavioural Data and Data Dashboards;
  • Python for Behavioural Data Science and Machine Learning;
  • Research Project

Check each assessment brief for its requirements about choosing data.

You can start with a research question or a topic of interest.

A specific question can guide your search, but suitable data may not exist or be accessible. You may need to refine the question, population, or measurements.

Today: topic -> available data -> understand measurements -> develop/refine a question.

Where Have You Looked For Data?

Think about a dataset search you have tried:

  • Where did you look, and what search terms did you use?
  • What helped you find a promising dataset?
  • What was difficult, or made you reject a result?
  • What would you recommend someone else try?

Let’s collect useful sources and search tips as a group. An unsuccessful search is useful to discuss too.

Useful Material At The End

The reference slides include:

  • Places to search: OSF, Zenodo, Kaggle, UK Data Service, and Rdatasets, with links and search tips.
  • Your dataset checklist: assess your own candidate before committing.
  • Keeping the scope manageable: possible simplifications and tidyverse functions.
  • Kaggle checks: tracing sources, documentation, and reuse terms.
  • Importing and inspecting data: file formats, R functions, paths, and simple checks.

Use the sources overview for your search and the checklist to assess what you find.

Find A Promising Dataset

Let’s explore Rdatasets together in the browser.

Find and inspect

  1. Use the browser’s Find function to search for sleep.
  2. Choose one result and open its DOC link.
  3. Identify what was measured and what one row represents.
  4. Locate the CSV link for the data file.

What still needs checking?

  • Permission: do the original source’s terms allow reuse, and how should we cite it?
  • Assessment brief: is it behavioural data, with enough variables of the right types for the task?
  • Analysis fit: are there enough usable observations and suitable group sizes for the required analysis?

A matching title or study plan does not guarantee usable data.

What Does This Dataset Measure?

R demo: Explore the data and run a few simple checks.

library(tidyverse)
dat <- ggplot2::msleep
?msleep
glimpse(dat)
View(dat)

?msleep opens the dataset documentation; View(dat) opens the data viewer.

The documentation describes 83 species, including:

  • sleep_total: total sleep in hours;
  • vore: diet group;
  • bodywt: body weight in kilograms.

One row represents a species. What comparisons or relationships could we explore?

From Measurements To A Question

The data include sleep duration and diet groups, so one possible question is:

How does total sleep differ between mammal diet groups?

  • Outcome: sleep_total; grouping variable: vore.
  • Explain why the comparison is interesting, using relevant background.
  • Keep the claim within the design: this is a comparison, not evidence that diet causes sleep differences.

We developed the question from the available measurements. If patterns in the results later suggest a new question, describe that exploration honestly.

Is This A Workable Choice?

Use Your Dataset Checklist in the reference slides when assessing your own data. In brief:

Check Ask
Assessment and source Does it meet the brief, with a clear source and reuse terms?
Measurements and question Do the actual variables support a meaningful question?
Observations What is one row? Are usable cases and groups sufficient?
Data quality Are values, missingness, and repeated observations understood?
Workload Can we open and prepare the data in the time available?

Keep it, narrow the scope, or look for another source. A dataset that opens successfully may still be unsuitable.

AI Dataset Search: Try The Same Prompt

Start a new conversation without your fav AI and use this prompt. Enable web search if available.

Suggest one publicly accessible dataset about sleep for a small MSc behavioural data analysis. Give links to the dataset and its documentation. Briefly describe the measurements, what one row represents, the file format, and access/reuse conditions. Use web sources if available, and mark anything you cannot verify as unknown.

Everyone submits the same prompt independently, then compares with a partner.

(Check the questions on the next slide!)

Compare And Check The AI Suggestions

Open the suggested dataset and documentation in your browser.

  • Did you get the same dataset? What differed in the answers?
  • Can you find the actual data file and confirm the measurements and unit of observation?
  • Do the source pages support the claims about access and reuse?

Share one verified detail and one claim that was wrong, unclear, or unsupported. A missing or broken link is a finding too.

Would you use this dataset, and what would you still need to check?

Different answers are not necessarily wrong; matching answers are not evidence of accuracy.

Try It Together

Choose a topic.

  1. Find one candidate and open its documentation.
  2. Identify what was measured and what one row represents.
  3. Suggest one meaningful question those measurements could answer.
  4. Use the checklist (and simple R checks) to assess the choice.
  5. Share your decision and one unresolved issue.

Before You Leave

What do you find difficult about finding datasets? What helped?

Share:

  • a dataset or source you could use;
  • a question grounded in its measurements;
  • what you need to check or do next.

Raise any unresolved assessment or deadline questions.

Dataset Reference Material

Your Dataset Checklist

  • I have checked the assessment brief allows this choice of data.
  • I have saved the original source, documentation, and citation details.
  • I have checked access and reuse terms, including any restrictions.
  • I can open the file and explain the variables, units, and category labels.
  • I know what one row represents and whether observations repeat or cluster.
  • I have checked missing values, unusual values, and usable cases/group sizes.
  • My question fits the measurements and design, without unsupported causal claims.
  • I can prepare and analyse the data within the available time and my current skills.

Anything unchecked? Note what you need to verify, simplify, or ask about before committing.

Places To Search

What Could You Simplify?

Change Tidyverse function What to explain
Fewer outcomes or predictors select() Which variables answer the narrower question?
One population, condition, or period filter() How does the target population change?
Clearer names or units rename(), mutate() What do the revised variables mean?
Fewer categories forcats::fct_collapse() Is combining groups meaningful?
One row per person/group group_by(), summarise() What detail is lost by averaging?
Reshape repeated measurements pivot_longer(), pivot_wider() What should one row represent?
Handle missing required values drop_na() How many cases are lost, and could this bias results?
Smaller development sample slice_sample() Use for testing code; revisit the full data.

Choose changes for the question and assessment. Removing inconvenient cases or combining unlike groups needs justification.

Optional: Keep The Scope Manageable

If the question becomes a comparison of herbivores and carnivores:

# Choose columns
sleep_small <- select(dat, name, vore, sleep_total)
# Choose rows
sleep_small <- filter(sleep_small, vore == "herbi" | vore == "carni")

This leaves 51 species and excludes other/unknown diets. Explain the narrower scope; related species can still share evolutionary history.

You may not need to change the data. Consider a simpler source if preparation becomes too demanding.

Kaggle

Kaggle can be useful, especially for CSV files with previews.

Treat it as a starting point, not automatic approval.

A Kaggle dataset is only suitable if you can:

  • identify the original source or documentation;
  • understand the column names and values;
  • find a usable outcome and predictors;
  • explain a behavioural or psychological question;
  • check that reuse is allowed.

Can You Actually Import It?

A dataset is not useful if you cannot open it reliably.

Common formats and R tools:

Format Example R package/function
CSV data.csv readr::read_csv()
TSV/text data.tsv, data.txt readr::read_tsv(), readr::read_delim()
Excel data.xlsx readxl::read_excel()
SPSS data.sav haven::read_sav()
Stata data.dta haven::read_dta()
R data data.rds readRDS()

Same Data, Different Formats

Use the right function to import your dataset.

library(tidyverse)
library(readxl)
library(haven)

ldt_csv <- read_csv("data/chinese_ldt.csv")
ldt_excel <- read_excel("data/chinese_ldt.xlsx")
ldt_spss <- read_sav("data/chinese_ldt.sav")

Check that you can import and inspect the data.

Inspect Immediately After Import

After importing, do not start modelling immediately.

glimpse(ldt_csv)
names(ldt_csv)
count(ldt_csv, lexicality)
count(ldt_csv, script, lexicality)
  • Are the variables named clearly?
  • Do categories mean what you think they mean?
  • Are numeric variables really numeric?
  • Are missing values coded sensibly?
  • Does the imported dataset match the documentation?