PSTAT197A Fall 2026
UCSB
finish discussing results from last time
develop questions about our intake form data
check which questions the shared data can answer
leave with 2–3 questions and a plan for your group analysis
Your task: prepare and present a descriptive analysis of the intake form responses addressing 2–3 questions or goals of your choosing.
extend the analysis we began in class
choose questions that are easy to state but require some work to answer
use summaries, visualizations, and exploratory models to describe patterns among the respondents
The learning outcomes for this assignment are less focused on methodology:
formulate questions and plan a simple analysis
practice using a GitHub repo in a team project setting
prepare a report that connects evidence to your questions
learn one or more new-to-you data manipulation or modeling techniques
Use the group repository you created on Tuesday.
open its RStudio project and pull the latest changes
if you have not cloned it yet, clone that same repository
review README.md, the data and metadata in data, and the examples in scripts
locate the report template in results/report.qmd
background-clean.csv: skills, comfort, coursework, and experience for 51 respondents
interest-clean.csv: project and programming language preferences, domains, and areas of interest for 49 respondents
join these files using response_id for analyses of the 49 respondents in both
class-summary.csv and response-timing.csv: aggregate summaries of 55 respondents
describe the respondents represented in the relevant files
demographic summaries cannot be linked to individual skills or preferences
self-rated proficiency and comfort measure students’ perceptions
an observed association does not establish a cause
Descriptive analysis can include modeling. Explore models that help answer your questions, and interpret their results in terms of these respondents.
In class, we used k-means clustering on proficiency and comfort ratings to explore profiles of respondents.
you are encouraged to extend that analysis or try another modeling approach
a model can summarize several variables together or reveal patterns worth examining
explain what the model adds to your question and how you interpret its output
Exploratory modeling is part of this assignment’s scope. Its conclusions should remain descriptive.
As a group: 3 minutes
what pattern from the class analysis caught your attention?
what did that summary leave unanswered?
what comparison, additional variable, or model could help you explore it?
Write down at least one possible extension.
On your own: 4 minutes
Write down three questions you are curious about.
consider preparation, comfort, experience, or project interests
for each question, jot down why the answer would be interesting
list the variables you think you would need and an analysis you might try
Keep all your ideas for now. You will check feasibility together next.
With your group: 5 minutes
Consider both what interests you and what would add to the class analysis.
Do students who have taken PSTAT 131 and PSTAT 134 rate themselves higher in programming proficiency?
Before analyzing, your group needs to decide:
does the comparison mean both courses versus everyone else, or both, one, and neither?
what would higher self-rated proficiency look like in the data?
any additional question(s) that might help you understand the pattern?
identify completion of each course from courses in background-clean.csv
compare the distribution of prog.prof across the coursework groups, showing group sizes
consider whether programming comfort shows a similar pattern
optionally explore a model relating proficiency to coursework and other preparation
Describe the association you observe. These data cannot establish that taking the courses caused higher proficiency.
compare distributions rather than reporting just one average
compare the same respondents across skill areas
examine combinations of interests or preferences
use a model to examine several variables together or summarize respondent profiles
Each additional step should help answer the question. Check group sizes before adding more subdivisions.
Use these as starting points if your group is stuck:
how do programming language preferences differ across respondents’ programming proficiency levels and completed coursework?
which application domains tend to be selected together? do those combinations differ between respondents who prefer industry versus research projects?
how do respondents with and without a domain specialization differ in the breadth and types of data science interests they select?
which application domains commonly appear together in respondents’ selections?
What makes the respondent profiles distinct, and how much do they depend on our choices?
compare clusters based on proficiency alone, comfort alone, or both
try a few values of \(k\) and describe how the profiles change
examine how scaling the variables affects the grouping
summarize coursework or project preferences within the resulting clusters
With your group: 6 minutes
For each candidate, write one sentence specifying:
Then explain what would make the answer useful or interesting.
Quick discussion
Which can the shared data address? What would you change about the others?
Open the data and metadata: 7 minutes
find the exact column names and files for each candidate
inspect category labels, missing values, and group sizes
identify needed joins, reshaping, or text processing, and any model inputs
revise or set aside questions that the available data cannot answer
Result: select 2–3 questions to investigate. You can refine them after trying an initial analysis.
upper_div_courses contains ranges, not exact course counts
project type = both means no preference
research combines supervised data-science and other research experience
multiple-selection variables need special care: some option labels contain commas
Use the metadata to decide what each variable can support before writing code.
With your group: 10 minutes
Choose one candidate question and try an initial analysis.
adapt the class script to produce a relevant summary or fit an exploratory model
for the coursework question, start by checking course groups and proficiency distributions
for clustering, change one choice in the class example and inspect cluster sizes and profiles
Record what you learned, what remains unclear, and what you want to try next.
Discuss your initial results:
does the output help answer your question?
what pattern needs a closer look?
did sparse groups, coding choices, or model behavior create a problem?
should you refine the question, change the analysis, or explore a follow-up?
An inconclusive result can still help you choose a better next step.
With your group: 6 minutes
For each selected question, record:
Save your notes in scripts/analysis-plan.md in the group repository.
Exchange one question with another group: 4 minutes
Explain your question and proposed analysis in about a minute.
The other group should ask:
Use the feedback to revise your plan.
With your group: 5 minutes
assign a lead and a reviewer for each question
agree on script filenames and who will edit the shared report at each stage
set an internal deadline for initial results and a time to review them together
choose a communication channel and arrange your next meeting
Record these decisions in your analysis plan and push it to GitHub.
Your group should be able to show:
2–3 descriptive questions grounded in the intake form data
an analysis plan with variables, proposed methods, and limitations
named responsibilities and internal deadlines
the plan saved and pushed to your existing group repository
If you finish early, extend your initial analysis or try a second approach to the same question.
Your submission consists of work committed and pushed to the group repository, including:
an updated results/report.qmd containing your write-up source
a rendered results/report.html
Please push final commits by Friday, October 16, 11:59 p.m. Pacific.
There is a 24-hour grace period. Work submitted after Saturday, October 17, 11:59 p.m. Pacific will not receive review.
lab 2 and in-class analysis: scripts/week2-surveys.R
survey metadata and the assignment README.md
course staff office hours and email
MDSR ch. 4 on data wrangling

PSTAT197A Fall 2026