0% found this document useful (0 votes)
6 views1 page

Data Science Applications and Techniques

The document outlines a series of theory questions related to Data Science and its applications, focusing on topics such as hypothesis testing, confidence intervals, A/B testing, gradient descent, and data manipulation. It includes practical examples and Python routines for web scraping, data cleaning, and dimensionality reduction. The questions are designed for students in the Department of CSE (AI&ML) at Sai Vidya Institute of Technology.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Data Science Applications and Techniques

The document outlines a series of theory questions related to Data Science and its applications, focusing on topics such as hypothesis testing, confidence intervals, A/B testing, gradient descent, and data manipulation. It includes practical examples and Python routines for web scraping, data cleaning, and dimensionality reduction. The questions are designed for students in the Department of CSE (AI&ML) at Sai Vidya Institute of Technology.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Data Science and It’s Applications 21AD62

Module 2: Hypothesis and Inference


Theory Questions
1. Explain null and alternative hypothesis by considering the example for a flipping coin and also
Interpret the importance of power and significance in Statistical Hypothesis Testing with
suitable Python routine.
2. Explain Confidence Intervals.
3. What is p-Hacking? Describe A/B test with an example.
4. Explain how gradient descent is used to fit parameterized models.
5. Explain minibatch and stochastic gradient descent in detail.
6. Describe Bayesian inference in detail.
7. What is web scrapping explain with an example and Articulate the role of BeautifulSoup in
Web scraping using Python snippet
8. Sketch the use of [Link], [Link] and [Link] in processing Delimited Files
9. Explain cleaning and munging of data with an example
10. Explain rescaling of data with an example.
11. Consider an html file. Write python program to scrap the page extract values associated with
tags and properties.
12. Describe how data can be manipulated by considering an example.
13. Write Python program to extract the date and time of a GitHub repository created and also the
language of the last five repositories.
14. Illustrate tqdm library by considering an example.
15. Explain dimensionality reduction with an example.

1
Page

Dept. of CSE (AI&ML), Sai Vidya Institute of Technology, Rajanukunte, Bangalore

Common questions

Powered by AI

Rescaling involves transforming data to fit within a specific range, typically via normalization (scaling between 0 and 1) or standardization (mean-centered with unit variance). This process is crucial in machine learning to prevent features with larger scales from disproportionately influencing model outcomes, enhancing convergence rates in algorithms like gradient descent. An example is normalizing feature ranges in a dataset of mixed units to ensure fair comparison and effective learning .

Data cleaning and munging transform raw data into a format suitable for analysis, involving tasks like handling missing values, filtering noise, converting data types, and correcting inconsistent entries. For instance, cleaning a dataset might involve replacing missing numerical values with mean values and standardizing categorical variables. This process ensures data quality, consistency, and readiness for further processing and analysis .

Bayesian inference incorporates prior beliefs with new data, updating probability estimates via Bayes' theorem. Unlike frequentist methods that provide point estimates and null hypothesis significance testing, Bayesian methods yield probability distributions over parameters, offering more nuanced insights. Its applications span predictive modeling, anomaly detection, and updating predictions with real-time data, significantly enhancing interpretive power and adaptability in dynamic environments .

Web scraping involves extracting data from web pages for analysis, crucial in data science for collecting unstructured data from online sources. BeautifulSoup, a Python library, parses HTML documents and enables straightforward navigation and searching of nested tags. With functions like find_all() and get_text(), it efficiently extracts information such as links and text content, aiding the transformation of web data into structured datasets suitable for analysis .

Confidence intervals quantify the uncertainty in an estimate, providing a range within which the true parameter value is likely to fall, with a specified probability (e.g., 95%). They are crucial in indicating the precision of an estimate and guiding decision-making under uncertainty. Practically, confidence intervals help assess the reliability of parameter estimates, ensuring informed interpretations and predictions in various fields .

The tqdm library provides progress bars for loops, enhancing user awareness of long-running operations by graphically displaying status and estimated time remaining. For example, in a data processing loop reading large files, embedding tqdm informs users of processing pace, improving program usability and debug efficiency, especially in iterating over extensive datasets .

Gradient descent optimizes model parameters by iteratively updating them in the direction of the negative gradient of the loss function, thus minimizing error. Variations like stochastic gradient descent (SGD) and mini-batch gradient descent enhance computational efficiency by adjusting parameters based on a single example or a small batch, respectively, reducing computation time and potentially improving convergence by introducing noise during training .

P-hacking involves manipulating data or analytical methods until non-significant results appear significant, thus compromising the validity of A/B tests by increasing false positives. To prevent p-hacking, one should pre-register hypotheses and analytical plans, apply proper statistical techniques, control for multiple comparisons, and report all conducted tests. Ensuring transparency and adherence to pre-specified analysis protocols helps maintain integrity and validity in A/B testing outcomes .

The null hypothesis (H0) represents a default position that there is no effect or difference, while the alternative hypothesis (H1) indicates the presence of an effect or difference. In a coin flipping scenario, the null hypothesis might state that a coin is fair (i.e., heads and tails are equally likely), whereas the alternative might suggest the coin is biased towards heads. The significance level, often set at 0.05, helps decide when to reject H0, balancing false positives and negatives. Power, the probability of correctly rejecting a false H0, is crucial for determining test reliability, as it impacts the sample size and effect detection .

Dimensionality reduction addresses the 'curse of dimensionality,' reducing feature space complexity to improve model performance and interpretability. Common techniques like Principal Component Analysis (PCA) and t-Distributed Stochastic Neighbor Embedding (t-SNE) help compress data while preserving variance or structure. Benefits include reducing computational costs, enhancing visualization, and mitigating overfitting, thus facilitating efficient and meaningful data analysis .

You might also like