Join 75,000+ students acing their exams with Studygenie
Unlimited practice
Flashcards, multiple choice and written questions, as many as you want.
Study sets in seconds
Turn your notes and files into a set with AI.
See your progress
Always know what you've learned and what's left.
Questions in this set (37)
How does DBSCAN differ from k-means in terms of cluster shape identification?
DBSCAN can identify arbitrarily shaped clusters, while k-means assumes spherical clusters
What type of plot is typically used to visualize the distribution of a single variable?
Histogram
What is the primary advantage of using k-means++ over standard k-means?
It improves initial centroid selection, leading to better clustering results
How do you find the mean of all elements in a NumPy array 'arr'?
np.mean(arr)
What is broadcasting in NumPy?
A method to automatically expand array dimensions for arithmetic operations without explicit looping
What Pandas method combines multiple DataFrames along their columns?
pd.concat() with axis=1
What is the primary purpose of the elbow method in clustering?
To determine the optimal number of clusters for k-means
What is a crucial step in item-based collaborative filtering for recommendation systems?
Calculating a similarity score between items based on user ratings
How does PCA relate to clustering algorithms?
PCA can be used for dimensionality reduction before applying clustering algorithms
How does increasing the confidence level affect the width of a confidence interval?
It widens the confidence interval
Why is the F1-score often preferred over accuracy for imbalanced datasets?
It balances precision and recall, providing a more informative metric
How does one-hot encoding transform categorical text data?
It creates multiple binary columns representing the presence or absence of each category
How do content-based recommendation systems typically measure item similarity?
Using cosine similarity measures over item features
What is the bag-of-words model in NLP?
A text representation that counts word occurrences while ignoring word order
What is a common method for handling missing data in data cleaning?
Imputing values using the column mean or median
How does Latent Dirichlet Allocation (LDA) represent documents in topic modeling?
As a distribution over multiple topics
What is the primary goal of Principal Component Analysis (PCA)?
To find directions of maximum variance and project data onto these directions
What NLP preprocessing step reduces words to their base or dictionary form?
Stemming or Lemmatization
How can two DataFrames be combined on a common key column in Pandas?
Using pd.merge(left, right, on='key', how='inner')
How does user-based collaborative filtering generate recommendations?
By finding users with similar behavior and suggesting items they have liked or rated highly
How does SMOTE (Synthetic Minority Oversampling Technique) address class imbalance?
By creating new synthetic examples of the minority class to balance the dataset
What approach can address the cold start problem for new users in recommendation systems?
Collecting initial preferences or using demographic information to generate initial recommendations
How can the performance of a model on imbalanced data be more accurately assessed?
By using metrics such as precision, recall, or F1-score that focus on minority class performance
What characterizes the complete linkage criterion in Hierarchical Agglomerative Clustering?
It defines the distance between clusters as the maximum distance between any two points from different clusters
Why is accuracy often an inadequate metric for evaluating models trained on imbalanced datasets?
It can be misleading as it may not reflect the model's performance on the minority class
How does the elbow method assist in k-means clustering?
It helps determine the optimal number of clusters by identifying where additional clusters provide diminishing returns in reducing within-cluster variance
What clustering algorithm is particularly suitable for identifying arbitrarily shaped clusters?
DBSCAN (Density-Based Spatial Clustering of Applications with Noise)
How does the choice of k affect the k-Nearest Neighbors algorithm?
It determines how many neighbors influence the prediction
What is the primary purpose of a histogram in data analysis?
To show the frequency of data within intervals
Why is Gini Impurity used in decision tree algorithms?
To measure the impurity of a node in classification problems
What term describes the outcome variable that a machine learning model aims to predict?
Target variable
How does grid search differ from random search in hyperparameter tuning?
Grid search tries all combinations; random search samples randomly
How does increasing the confidence level affect the width of a confidence interval?
It widens the confidence interval
What is the effect of one-hot encoding on categorical data?
It creates multiple binary columns for each category
What is the purpose of k-fold cross-validation in machine learning?
To assess model performance using multiple train-test splits
What is the term for the hypothesis stating 'no difference' or 'no effect' in statistical testing?
Null hypothesis
How is unsupervised learning different from supervised learning in machine learning?
It works with unlabeled data to find patterns or structures