• 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 20 pages
Exam (elaborations)

PA Exam Master Grades …Edufiles.

Document preview thumbnail
Preview 3 out of 20 pages

PA Exam Master Grades …Edufiles.

Content preview

PA Exam Master Grades …Edufiles


Code to remove variables-CORRECT ANSWERS✔✔rm( )



Clustering and PCA are what type of algorithms-CORRECT ANSWERS✔✔Unsupervised that find and
simplify variation in the data without you, as the user, having to do it



Code for Histogram-CORRECT ANSWERS✔✔ggplot(data=data) + geom_histogram(aes(x=variable))



Code for Histogram using density-CORRECT ANSWERS✔✔ggplot(data=data) +
geom_density(aes(x=variable), fill="color")



Code for Scatterplot-CORRECT ANSWERS✔✔ggplot(data=data, aes(x=variable, y=variable)) +
geom_point(aes(color="color))



Code for Boxplot-CORRECT ANSWERS✔✔ggplot(data=data, aes(x=variable, y=variable)) +
geom_boxplot()



Code for Violion-CORRECT ANSWERS✔✔ggplot(data=data, aes(x=variable, y=variable)) + geom_violin()

,Code for Line Graph-CORRECT ANSWERS✔✔ggplot(data=data, aes(x=variable, y=variable)) +
geom_lime()



Code for RMSE-CORRECT ANSWERS✔✔predict.variable <- predict(regression, data, type="response")

rmse.variable <- sqrt(sum(predict.variable - data$variable)^2)/nrow(data)

rmse.variable



Code to add labels-CORRECT ANSWERS✔✔labs(x=" ", y=" ", title=" ")



Code for weighted Histogram-CORRECT ANSWERS✔✔ggplot(data, mapping=aes(x, fill=variable) +
geom_hist(aes(weight=expo),alpha=#)



or



ggplot stays the same + geom_hist(aes(weight,fill=variable),alpha=#)



Note for the Exam 1-CORRECT ANSWERS✔✔For missing data you can eliminate the record and
comment on a more sophisticated approach



Technique 1 for dealing with missing values-CORRECT ANSWERS✔✔Remove the column if there is so
many missing values if it is no longer useful in the model



Technique 2 for dealing with missing values-CORRECT ANSWERS✔✔Remove the row when missing
values are few and random enough so that removing them will not introduce a bias or reduce the
effectiveness of the model.

, Technique 3 for dealing with missing values-CORRECT ANSWERS✔✔Replace the missing value with
mean, median or mode. You can either use this based off the other data or randomly select ad replace.
Either way this approach assumes the missing values are completely random.



Technique 4 for dealing with missing values-CORRECT ANSWERS✔✔Replace missing values with an
assigned category/value.This should be used if data is missing systematically.



Technique 5 for dealing with missing values-CORRECT ANSWERS✔✔Predict the missing value using the
other variables (imputation) uses a model or models based on combinations of variables to fill in the
missing values. We can only use this if we assume there is a true value associated with each missing
value and that value was omitted.



Note for the Exam 2-CORRECT ANSWERS✔✔During the exam you will not be asked to take samples
from the data other than to create training and validation sets.



Note for Exam 3-CORRECT ANSWERS✔✔During the exam you must pick an appropriate time frame and
sample such that you have a good representation of the intended population in your dataset.



Purpose of ASOP 23-CORRECT ANSWERS✔✔The purpose of this actuarial standard of practice (ASOP) is
to provide guidance to the actuary when performing the following:

a. selecting the data that underlie the actuarial work product;

b. relying on data supplied by others;

c. reviewing data;

d. using data;

e. preparing data to be used by other actuaries in an actuarial work product; and

f. making appropriate disclosures with regard to data quality.



Code for a linear model-CORRECT ANSWERS✔✔lm(dependent~independent + independent + ... ,
data=data)

Document information

Uploaded on
August 13, 2025
Number of pages
20
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.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.
Edufiles
4.9
(217)
Sold
149
Followers
10
Items
7461
Last sold
3 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