Data Mining Concepts Exam Questions
with Complete Answers
Explain the steps in data mining, along with an example at each step. - Answer-1)
Develop an understanding of purpose of the data mining project. (ex: How will the
stakeholder use the results? Who will be affected by the results? Will the analysis be
a one-shot effort or an ongoing procedure?)
2) Obtain the dataset to be used in the analysis. Includes sampling from a large
database to capture records to be used in analysis. (internal ex: past purchases
made by customers, external ex: credit ratings)
3) Explore, clean, and preprocess the data. This step involves verifying that the data
are in reasonable condition. Are there obvious outliers? (ex: "duration" can be
computed from start and end dates).
4) Reduce the data dimension, if necessary. (ex: eliminating unneeded variables,
transforming variables, etc.
5) Determine the data mining task. Translate general question/problem of Step 1 into
a more specific data mining question (ex: classification, prediction, clustering, etc.)
6) Partition the data, if the task is supervised (classification/prediction), randomly
partition the data set into training, validation, and test datasets.
7) Choose the data mining techniques to be used
8) Use algorithms to perform the task. (ex: Iterative process -- trying multiple
variants, and often using multiple variants of the same algorithm. Use feedback from
algorithm's performance on validation data and refine settings)
9) Interpret the results of the algorithms. (ex: Chose best algorithm to deploy, and
where possible, testing the final choice on the test data to get an idea as to how well
it will perform.)
10) Deploy the model (ex: model might be applied to a purchased list of possible
customers, and the action might be "include in the mailing if the predicted amount of
purchase is > $10. Key step here is "scoring the new records, or using the chosen
model to predict the outcome value ("score") for each new record
Why is the concept of oversampling a rare event important? - Answer-- When an
event is rare (customer purchasing a product in response to a mailing/fraudulent
credit card transactions), we would have a lot of data on non-purchase/non-
fraudulent, but not enough data to base a model that distinguishes purchases from
non-purchasers or fraudulent from non-fraudulent.
- In order to compensate, you need to overweight the rare class.
- Also important because the cost of misclassification. When response rate is
extremely low, we are likely to attach more importance to identifying a responder to
identifying a non-responder.
What are the different type of variables? - Answer-- Variables can be numerical or
text (character/string)
, - Continuous = able to assume any real numerical value, usually in a given range)
- Integer = taking only integer values
- Categorical = assuming one of a limited number of values. Can be either coded as
numerical (ex: 1,2,3) or text (ex: payments current, payments not current,
bankrupts), or unordered (called nominal variables...ex: North America, Europe, and
Asia) or ordered (called ordinal variables...ex: high value, low value, nil value)
- Date
How do you handle categorical variables when modeling a regression analysis? -
Answer-- If the categorical variable is ordered (ex: age group), you can usually code
it as a continuous variable.
- If the categorical variable is unordered (ex: whether someone is a student or not)
break it down into binary data sets. In this case, Student - YES/NO
How do we got about managing outliers? - Answer-- Determination whether to
remove outlier or not must be made using domain knowledge, knowledge of a
particular application (ex: direct mail, mortgage finance).
- Do not use technical knowledge of statistical or data mining procedures. These can
do little more than identify a record as something needing review.
- Different ways in r to identify outliers...min()/max()/order()
How do we handle missing data? - Answer-- Common method is to just replace the
missing value with simple substitutes (ex:mean/median).
- Does not adversely impact variability of the data set because you can assess
performance using the validation data
- Sophisticated method is to use linear regression, based on other variables, to fill in
the missing variables
Why's it necessary to normalize and rescale the data? - Answer-- Subtract the mean
from each value and then divide by the standard deviation.
- "Expressing each value as the number of deviations away from the mean"...also
called z score
What is overfitting? - Answer-- Overfitting, or *high variance*, is caused by a
hypothesis function that fits the available data but does not generalize well to predict
new data
- Can be caused if sample is small (ex: 100 people, height doesn't mean that people
are more likely to contribute to charity)
- Larger sample size = less chance for flukes to be prevalent
How does the creation of subsets of data help us address overfitting? - Answer-- By
putting data into subsets, we set up more barriers from a model to be chosen that
may not be the most accurate.
- Train data to build various models, use validation with random data to see how well
models perform with data, take best model and use test data to ensure that it was
not a fluke and to mitigate chances of overfitting
Identify 3 top trends that every analyst in the field must know (Herb Edelstein) -
Answer-- Amount of data we have access to and the variety of different data now
available.
with Complete Answers
Explain the steps in data mining, along with an example at each step. - Answer-1)
Develop an understanding of purpose of the data mining project. (ex: How will the
stakeholder use the results? Who will be affected by the results? Will the analysis be
a one-shot effort or an ongoing procedure?)
2) Obtain the dataset to be used in the analysis. Includes sampling from a large
database to capture records to be used in analysis. (internal ex: past purchases
made by customers, external ex: credit ratings)
3) Explore, clean, and preprocess the data. This step involves verifying that the data
are in reasonable condition. Are there obvious outliers? (ex: "duration" can be
computed from start and end dates).
4) Reduce the data dimension, if necessary. (ex: eliminating unneeded variables,
transforming variables, etc.
5) Determine the data mining task. Translate general question/problem of Step 1 into
a more specific data mining question (ex: classification, prediction, clustering, etc.)
6) Partition the data, if the task is supervised (classification/prediction), randomly
partition the data set into training, validation, and test datasets.
7) Choose the data mining techniques to be used
8) Use algorithms to perform the task. (ex: Iterative process -- trying multiple
variants, and often using multiple variants of the same algorithm. Use feedback from
algorithm's performance on validation data and refine settings)
9) Interpret the results of the algorithms. (ex: Chose best algorithm to deploy, and
where possible, testing the final choice on the test data to get an idea as to how well
it will perform.)
10) Deploy the model (ex: model might be applied to a purchased list of possible
customers, and the action might be "include in the mailing if the predicted amount of
purchase is > $10. Key step here is "scoring the new records, or using the chosen
model to predict the outcome value ("score") for each new record
Why is the concept of oversampling a rare event important? - Answer-- When an
event is rare (customer purchasing a product in response to a mailing/fraudulent
credit card transactions), we would have a lot of data on non-purchase/non-
fraudulent, but not enough data to base a model that distinguishes purchases from
non-purchasers or fraudulent from non-fraudulent.
- In order to compensate, you need to overweight the rare class.
- Also important because the cost of misclassification. When response rate is
extremely low, we are likely to attach more importance to identifying a responder to
identifying a non-responder.
What are the different type of variables? - Answer-- Variables can be numerical or
text (character/string)
, - Continuous = able to assume any real numerical value, usually in a given range)
- Integer = taking only integer values
- Categorical = assuming one of a limited number of values. Can be either coded as
numerical (ex: 1,2,3) or text (ex: payments current, payments not current,
bankrupts), or unordered (called nominal variables...ex: North America, Europe, and
Asia) or ordered (called ordinal variables...ex: high value, low value, nil value)
- Date
How do you handle categorical variables when modeling a regression analysis? -
Answer-- If the categorical variable is ordered (ex: age group), you can usually code
it as a continuous variable.
- If the categorical variable is unordered (ex: whether someone is a student or not)
break it down into binary data sets. In this case, Student - YES/NO
How do we got about managing outliers? - Answer-- Determination whether to
remove outlier or not must be made using domain knowledge, knowledge of a
particular application (ex: direct mail, mortgage finance).
- Do not use technical knowledge of statistical or data mining procedures. These can
do little more than identify a record as something needing review.
- Different ways in r to identify outliers...min()/max()/order()
How do we handle missing data? - Answer-- Common method is to just replace the
missing value with simple substitutes (ex:mean/median).
- Does not adversely impact variability of the data set because you can assess
performance using the validation data
- Sophisticated method is to use linear regression, based on other variables, to fill in
the missing variables
Why's it necessary to normalize and rescale the data? - Answer-- Subtract the mean
from each value and then divide by the standard deviation.
- "Expressing each value as the number of deviations away from the mean"...also
called z score
What is overfitting? - Answer-- Overfitting, or *high variance*, is caused by a
hypothesis function that fits the available data but does not generalize well to predict
new data
- Can be caused if sample is small (ex: 100 people, height doesn't mean that people
are more likely to contribute to charity)
- Larger sample size = less chance for flukes to be prevalent
How does the creation of subsets of data help us address overfitting? - Answer-- By
putting data into subsets, we set up more barriers from a model to be chosen that
may not be the most accurate.
- Train data to build various models, use validation with random data to see how well
models perform with data, take best model and use test data to ensure that it was
not a fluke and to mitigate chances of overfitting
Identify 3 top trends that every analyst in the field must know (Herb Edelstein) -
Answer-- Amount of data we have access to and the variety of different data now
available.