Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

BADM 211 Exam 2. Questions and Answers

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
02-04-2026
Written in
2025/2026

Exam of 10 pages for the course BADM 211 at BADM 211 (BADM 211 Exam 2.)

Institution
BADM 211
Course
BADM 211

Content preview

BADM 211 Exam 2

Unsupervised learning - answer- Pattern or relationship between a set of variables,
where all of them have equal status
- Goal: Segment data into meaningful segments; detect patterns- - There is no target
(outcome) variable to predict or classify
- uses machine learning algorithms to analyze and cluster unlabeled datasets

Supervised learning - answer Pattern or relationship between an outcome (target)
variable and a set of predictor variables.
Features:
- Goal: predict a single "target" or "outcome" variable
- Training data, where value is known
- Test data, where value is unknown
- Methods: classification and regression

Reinforcement learning - answer An agent learns in an environment

Supervised: Regression - answer- Goal: predict numerical target (outcome) variable
- Examples: sales, revenue, performance
- Each row is a case (customer, tax return, applicant)
- Each column is a variable

Supervised: Classification - answer- Goal: predict categorical target (outcome) variable
- Examples: purchase/no purchase, fraud/no fraud
- Each row is a case (customer, tax return, applicant)
- Each column is a variable
- Target variable is often binary (yes/no)
- Classification and regression constitute "predictive analysis"

Unsupervised learning - answer- Goal: Segment data into meaningful segments; detect
patterns
- There is no target (outcome) variable to predict or classify
- Methods: association rules, collaborative filters, and data reduction, exploration,
visualization

data.df.shape - answerDisplay # of samples and variables/rows and columns

data_df.head(10) - answerDisplay the first 10 rows of df

data_df.tail(10) - answerDisplay the last 10 rows of the df

data_df.columns - answerDisplay variable names

, data_df.dtypes - answerDisplay the variable data types

data_df.info() - answerDisplay variable sequence numbers, names, missing values, and
datatypes

Strip leading and trailing spaces and replace any remaining spaces with an underscore
_ - answerdata_df.columns = [s.strip().replace(' ', '_') for s in data_df.columns]

Create a dummy dataframe - answerd = {'animal type ': ['dog', 'cat', 'bird'],'age in years':
[1, 2, 3],'size':['6', '8', '10'],'city of residence': ['miami', 'chicago', 'london']}
df = pd.DataFrame(data = d)
df

Iloc v. loc - answeriloc = only integer numbers, second index is exclusive
loc = label-based (can be integer labels), second index is inclusive

What is dummy coding - answer- use categorical variables as independent
variables/predictors while modeling. only uses ones and zeros.

Predictor and outcome variables - answerX = predictors
y = outcome

Train v. test data - answerTrain: fit the model
Test: test model prediction and accuracy
train_X, train_y, test_X, test_y

Creating a linear regression model - answer1. load linear regression algorithm into
"model_1m"
2. Use "fit" method to fit linear regression
3. Print coefficients
4. Check performance results

Turning lists to columns - answerdf = pd.DataFrame({"animal type ": animal_type,
"age in years": age,
"size": size,
"city of residence": city})

data.df.iloc[0:4] - answerDisplay the first four rows

data_df['Personal_Income'].iloc[0:10]
data_df.iloc[0:10]['Personal_Income']
data_df.iloc[0:10].Personal_income - answerAll display first 10 rows of the variable

data_df["personal_income"].head() - answerDisplay the first 5 rows of data

Written for

Institution
BADM 211
Course
BADM 211

Document information

Uploaded on
April 2, 2026
Number of pages
10
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$14.99
Get access to the full document:

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


Also available in package deal

Get to know the seller

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.
Dreamer252 NBursing
Follow You need to be logged in order to follow users or courses
Sold
491
Member since
3 year
Number of followers
297
Documents
21465
Last sold
2 weeks ago

4.0

119 reviews

5
63
4
23
3
18
2
2
1
13

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