• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 28 pages
Exam (elaborations)

SOA PA EXAM 2025/2026 QUESTIONS AND ANSWERS

Document preview thumbnail
Preview 3 out of 28 pages

What to examine when assessing the bivariate relationship between a Factor predictor variable and a binary target variable? - ANS A table to asses (with rows as factor levels) the mean probabilities, counts of observations of each factor, and counts of each observation of each binary target. What to examine when assessing the bivariate relationship between a Continuous predictor variable and a binary target variable? - ANS - A graph with separate histograms for a continuous variable, one for those with target binary = 0 and one for those with binary = 1; - Box plots summarized based on binary target; - Tables summarizing the mean, median, and count of the predictor based on each binary target What to examine when assessing the bivariate relationship between a Factor predictor variable and a Continuous target variable? - ANS Box Plots and tables summarizing the mean, median, and count of the target based on each factor What to examine when assessing the bivariate relationship between a Continuous predictor variable and a Continuous target variable? - ANS Scatter plots. Correlation between each variable [cor() in R]. What to examine when assessing (univariate analysis) a Continuous predictor variable? - ANS Assess the histogram of the distribution. Check the skewness (does it need to have a log transformation). - Check for extreme (unreasonable) outliers 2 | Page @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED - Check for obvious errors in data - Check for obvious duplicates What to examine when assessing (univariate analysis) a Factor predictor variable? - ANS Assess Bar chart. (Count of observations per factor level) What data questions should be considered while reading the project statement? - ANS Is the project statement more interested in interpretable models or more accurate complicated models? What type of variable is the target variable? What type of variable are the predictor variables? Are there any outliers that need to be removed? Are there any Factor variables that could be combined? R-Code; Histogram Continuous Variable - ANS ggplot(df, aes(x = variable)) + geom_histogram(bins = 30) + labs(x = "variable") R-Code; Bar chart for a factor variable - ANS ggplot(df, aes(x = variable)) + geom_bar() + labs(x = "variable") R-Code; Table for binary target and factor variable - ANS data %% group_by(variable) %% summarise( zeros = sum(Target == 0), ones = sum(Target == 1), n = n(), proportion = me

Content preview

SOA PA EXAM 2025/2026 QUESTIONS
AND ANSWERS




What to examine when assessing the bivariate relationship between a Factor predictor variable
and a binary target variable? - ANS A table to asses (with rows as factor levels) the mean
probabilities, counts of observations of each factor, and counts of each observation of each
binary target.


What to examine when assessing the bivariate relationship between a Continuous predictor
variable and a binary target variable? - ANS - A graph with separate histograms for a
continuous variable, one for those with target binary = 0 and one for those with binary = 1;
- Box plots summarized based on binary target;
- Tables summarizing the mean, median, and count of the predictor based on each binary target


What to examine when assessing the bivariate relationship between a Factor predictor variable
and a Continuous target variable? - ANS Box Plots and tables summarizing the mean,
median, and count of the target based on each factor


What to examine when assessing the bivariate relationship between a Continuous predictor
variable and a Continuous target variable? - ANS Scatter plots. Correlation between each
variable [cor() in R].


What to examine when assessing (univariate analysis) a Continuous predictor variable? -
ANS Assess the histogram of the distribution. Check the skewness (does it need to have a log
transformation).
- Check for extreme (unreasonable) outliers
1 | Page @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED

,- Check for obvious errors in data
- Check for obvious duplicates


What to examine when assessing (univariate analysis) a Factor predictor variable? -
ANS Assess Bar chart. (Count of observations per factor level)


What data questions should be considered while reading the project statement? - ANS Is the
project statement more interested in interpretable models or more accurate complicated
models?
What type of variable is the target variable?
What type of variable are the predictor variables?
Are there any outliers that need to be removed?
Are there any Factor variables that could be combined?


R-Code; Histogram Continuous Variable - ANS ggplot(df, aes(x = variable)) +
geom_histogram(bins = 30) +
labs(x = "variable")


R-Code; Bar chart for a factor variable - ANS ggplot(df, aes(x = variable)) +
geom_bar() +
labs(x = "variable")


R-Code; Table for binary target and factor variable - ANS data %>%
group_by(variable) %>%
summarise(
zeros = sum(Target == 0),
ones = sum(Target == 1),
n = n(),
proportion = mean(Target)


2 | Page @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED

, )


R-Code; Separate histograms for a continuous variable and a binary target - ANS ggplot(
data,
aes(
x = variable,
group = Target,
fill = as.factor(Target),
y = ..density..
)
)+
geom_histogram(position = "dodge", bins = 30)


R-Code; Relevel Factor variables - ANS table <- as.data.frame(table(df$variable))
max <- which.max(table[, 2])
level.name <- as.character(table[max, 1])
df$variable <- relevel(df$variable, ref = level.name)


R-Code; Remove all observations in entire data set of a variable greater than or equal to 50 -
ANS data <- data[data$variable <= 50, ]


R-Code; Remove all observations of a factor variable = "value" - ANS toBeRemoved <-
which(data$factor=="value")
data <- data[-toBeRemoved, ]


R-Code; Combine factor levels into new factors. - ANS var.levels <- levels(df$variable)
df$occupation_comb <- mapvalues(df$variable, var.levels, c("Group12", ... , "GroupNA"))


R-Code; remove a variable from the dataframe. - ANS df$variable <- NULL

3 | Page @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED

Document information

Uploaded on
September 18, 2025
Number of pages
28
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Brightstars
3.3
(41)
Sold
269
Followers
8
Items
15002
Last sold
4 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions