Java Notes
Java Notes
1. Define Research.
Research is a structured, systematic, and objective investigation aimed at discovering new facts, verifying
existing knowledge, establishing relationships, and reaching novel conclusions. It follows a scientific method
to solve problems, close knowledge gaps, and expand the horizons of a discipline through purposeful data
collection, critical analysis, and logical interpretation.
Example: Gender (1 = Male, 2 = Female), Software Development Roles (QA, Developer, Architect), or eye
color.
• Ordinal Scale: A scale that groups items into discrete categories that possess a clear, logical progression,
rank, or order. However, the exact mathematical difference between ranks is unknown or unequal.
Example: Project Priority (High, Medium, Low), Student Grade (A, B, C), or Likert agreement rankings.
11. What is Interval Scale and Ratio Scale? Explain with examples.
• Interval Scale: A scale with ordered categories where the distance (interval) between any two
consecutive points is completely equal and measurable. It does not possess an absolute or true zero
point; zero is assigned arbitrarily.
Example: Temperature in Celsius or Fahrenheit. The difference between 20°C and 30°C equals that
between 30°C and 40°C. However, 0°C does not mean an absence of heat.
• Ratio Scale: The most advanced scale, possessing all characteristics of an interval scale along with a
true, absolute zero point representing the total absence of the measured attribute. This allows for
meaningful multiplicative and ratio statements.
Example: Monthly Income, Execution Time (seconds), or Weight. An execution time of 0 seconds means
zero duration, and a 10-second process takes exactly twice as long as a 5-second process.
Definition The sum of all values divided by the The exact physical midpoint of a
total count of observations. dataset sorted in ascending or
descending order.
Sensitivity to Outliers Highly sensitive; extreme values distort Highly robust; extreme values do not
the mean significantly. shift the center position.
Mathematical Base Uses all data points (Σx / n). Positional measure (identifies the
(n+1)/2 th position).
Example Scenario: Consider software developer salaries in a startup (in thousands): 40, 45, 50, 55, 300
(where 300 belongs to the founder).
• Mean: (40 + 45 + 50 + 55 + 300) / 5 = 490 / 5 = 98. The mean salary is $98k, which doesn't accurately
represent the typical developer due to the single outlier.
• Median: Sorted array: [40, 45, 50, 55, 300]. The middle value is $50k. This provides a much fairer
representation of a developer's typical earnings.
Structure Highly flexible, unstructured, informal, and Rigid, highly structured, structured
iterative. instruments, and pre-planned.
Hypothesis Formulated during or at the end of the Starts with a clear hypothesis or specific
research process. research questions.
Variable Control No control over variables. The researcher Deliberate control and manipulation of
observes and measures things as they independent variables to observe their
naturally occur. effects.
Core Evaluation Assesses each item independently on an Compares items relative to one another to
absolute continuum or score metric. establish an ordinal preference list.
Ties Multiple objects can receive identical Ties are typically prohibited or restricted;
scores (e.g., three items rated 5 stars). forces distinct placement ordering (1st,
2nd, 3rd).
Cognitive Load Low; simple to score each criterion High; requires respondents to weigh and
individually. balance all options collectively.
Examples:
• Rating: Rate 3 programming languages on a scale of 1-5 for ease of use. (Python: 5/5, Java: 4/5, C++:
3/5).
• Ranking: Rank the following languages in order of preference from 1 to 3: Python, Java, C++. (1st: Python,
2nd: Java, 3rd: C++).
Number of Examines exactly one variable at a time. Examines two variables simultaneously.
Variables
Statistical Tools Frequency distributions, Mean, Median, Scatter plots, Pearson correlation
Mode, Variance, Standard Deviation, coefficient (r), Simple Linear Regression,
Histograms. Chi-Square tests.
Example: Selecting 50 student IDs out of a database of 500 using an Excel random number generator
script.
2. Stratified Random Sampling: The population is segregated into mutually exclusive, homogeneous
subgroups (strata) based on specific characteristics (e.g., age, income, stream). A simple random sample
is then drawn from each stratum.
Example: In an IT company survey, dividing employees into strata of Developers, HR, and Managers, then
drawing proportional samples from each group to capture all organizational perspectives.
3. Systematic Sampling: Elements are selected from an ordered sampling frame at fixed, regular geometric
intervals determined by a sampling interval k = N / n (where N is population size and n is sample size),
starting from a randomly chosen point.
Example: Selecting every 10th customer entering a retail store, beginning with a randomly selected 3rd
customer.
4. Cluster Sampling: The population is partitioned into heterogeneous, geographically diverse blocks or
groups called clusters. The researcher randomly selects entire clusters, and then surveys all elements
within those chosen clusters.
Example: To study banking habits in a state, a researcher randomly selects 5 specific districts (clusters)
and studies all residents within those districts.
Example: A college researcher interviewing fellow students standing outside the campus library.
2. Purposive / Judgmental Sampling: The researcher uses specialized knowledge and subjective
discretion to handpick individuals who best fit the research profile or objectives.
3. Quota Sampling: The researcher sets explicit targets or quotas for specific subgroups (e.g., 60% male,
40% female) to mirror population distributions, but selects the actual respondents within those quotas non-
randomly.
Example: Stopping shoppers in a mall until exactly 50 iPhone users and 50 Android users have completed
the survey questionnaire.
4. Snowball (Network) Sampling: Used when target populations are hard to reach or hidden. Initial
respondents are located and, after being interviewed, are asked to refer others from their social network
who meet the criteria.
Example: Researching the challenges faced by underground, undocumented gig-workers or elite hackers.
A. Sampling Errors
These occur purely due to the nature of chance when taking a sample instead of conducting a full census. It
represents the divergence between the true population parameter and the sample statistic.
• Characteristics: It is unavoidable unless the whole population is measured. It decreases systematically
as the sample size increases.
• Causes: Bad sample design, chance selection of non-representative elements.
B. Non-Sampling Errors
These errors stem from human, operational, or systemic failures during research execution, data collection, or
data processing. They can occur in both sample surveys and complete censuses.
• Characteristics: They do not decrease with larger sample sizes; in fact, they can grow worse if field
teams are poorly trained.
• Key Categories:
◦ Data Acquisition Errors: Poorly framed, ambiguous questions that confuse respondents, or leading
questions that introduce bias.
◦ Non-Response Error: Occurs when selected individuals refuse to participate or cannot be reached,
skewing results if non-respondents share distinct traits.
◦ Response/Measurement Bias: Respondents deliberately giving false, socially acceptable answers or
recording tools failing.
◦ Processing Errors: Mistakes during manual data entry, coding, tabulation, or software execution.
21. What is the Concept of Primary Data? Explain sources with examples.
Primary Data is original data gathered for the first time by a researcher to address the specific problem at
hand. It represents unmanipulated, raw empirical evidence collected directly from field subjects.
Example: Distributing a Google Form to 500 mobile application users to assess UI/UX satisfaction scores.
2. Interviews: Direct verbal communication between an interviewer and interviewee, ranging from
unstructured dialogues to highly formal, standardized structures.
Example: Conducting one-on-one video calls with 10 Chief Technology Officers (CTOs) to learn about
corporate AI adoption barriers.
Example: A software engineer tracking click-stream maps and user heatmaps on an e-commerce
checkout page to identify drop-off zones.
4. Controlled Experiments: Active scientific setups where independent variables are systematically
modified under controlled conditions to isolate and measure behavioral changes.
Example: Running an A/B test on a landing page design, where Group A sees a blue button and Group B
sees a green button, to evaluate changes in conversion rates.
22. Under what circumstances would you recommend Qualitative and Quantitative
Research? Explain with suitable examples.
The choice between qualitative and quantitative methodologies depends on the nature of the inquiry, the
depth required, and the research objectives.
Example: Investigating how software developers experience burnout during sudden transitions to remote
work. This requires open-ended focus groups and deep narrative interviews to capture emotional nuances,
coping strategies, and domestic challenges.
Example: Assessing whether implementing a new automated testing tool shortens deployment cycles. The
researcher measures and compares exact deployment times (in hours) and bug counts before and after the
tool's rollout across 100 enterprise software teams.
Applied Research: It is designed to solve practical problems of the modern world, rather than to acquire
knowledge for knowledge's sake. The goal of the applied scientist is to improve the human condition or solve
specific corporate/organizational problems.
OR
Q1) c) Elaborate Research Process and Steps explain with diagram. [5 Marks]
The research process consists of a series of systematic, sequential steps necessary to effectively carry out research.
Although the steps are presented linearly, research is often an iterative process where steps are revisited.
↓
Step 2: Extensive Literature Survey (Reviewing Existing Works)
↓
Step 3: Developing Working Hypotheses (Formulating Testable Statements)
↓
Step 5: Determining Sample Design (Selecting Sampling Method & Size)
↓
Step 6: Collecting Data (Primary/Secondary Data Collection Execution)
↓
Step 7: Execution of the Project & Data Analysis (Hypothesis Testing via Stats)
↓
Step 8: Interpretation and Report Writing (Drawing Conclusions & Documentation)
OR
Researchers formulate research questions by moving from a broad topic of interest to a specific, researchable
problem. The standard process involves:
Both experimental and quasi-experimental research designs aim to identify cause-and-effect relationships by
introducing an intervention or treatment. However, they differ fundamentally on internal validity controls.
OR
Q2) b) Discuss different methods of data collection used in research with examples. [5 Marks]
Data collection methods are broadly categorized into primary data collection (freshly collected original
observations) and secondary data collection (historical or pre-existing records).
• Observation Method: Data is gathered by monitoring and recording human behavioral patterns, events, or
processes systematically without direct interaction. Example: An ethnographer sitting in a hospital waiting
room recording non-verbal patient anxiety indicators.
• Survey / Questionnaire Method: Relying on a structured list of questions distributed to a target sample to
gather attitudes, opinions, or facts. Example: Circulating a Google Form to 500 corporate employees to
measure remote-work burnout metrics.
• Interview Method: Face-to-face, telephonic, or digital synchronous conversational interactions to extract deep
insights. Example: Semi-structured interviews with 10 hospital Chief Medical Officers regarding AI-tool
adoption hurdles.
• Experimental Data Collection: Actively manipulating an independent variable while capturing changing
states of a dependent metric. Example: Recording blood sugar variations before and after administering a new
drug molecule.
OR
Definition: Research is a structured, systematic, objective, and empirical investigation initiated to discover new
facts, validate existing theories, establish causal frameworks, or find practical resolutions to persistent issues.
Objectives of Research:
1. To Gain Familiarity / Achieve Insights: Exploratory studies to map out ambiguous phenomena.
2. To Portray Characteristics Accurately: Descriptive studies documenting exact attributes of groups or
profiles.
3. To Determine Frequency: Diagnostic studies investigating how often an event interfaces with another.
4. To Test Hypotheses: Causal or experimental testing to validate mathematical correlations.
Importance of Research: It forms the scientific backbone for national socio-economic policy formulations. It
resolves operational market anomalies for commercial industries, catalyzes technological and clinical progress,
and sharpens analytical and critical thinking competencies across academic institutions.
OR
Sampling Design: A sampling design is a definite, predefined plan or algorithmic roadmap for obtaining a
representative sample from a given target population before any field data collection begins. It determines the
specific selection logic (e.g., probability vs. non-probability) and calculations governing the sample elements.
Importance of Sampling:
• Cost and Time Efficiency: Consuming data from a smaller subset drastically reduces physical resource
outlays and operational turnaround compared to a full census.
• Higher Accuracy/Depth: Enables researchers to manage quality control, train field staff better, and deploy
highly detailed diagnostic instruments.
• Destructive Testing Capability: In cases where checking involves consuming the element (e.g., testing bullet
velocity or chemical lifespan), sampling is the only viable method.
Given parameters:
First, we calculate the sample size for an infinite population (n0) using Cochran's formula:
n0 = (Z² × P × Q) / e²
n = n0 / [1 + ((n0 - 1) / N)]
Rounding up to the nearest whole integer, the required sample size is 384 subjects.
OR
Primary data refers to the original information collected firsthand directly from respondents for the specific
research goal at hand. The primary methods include:
Discussion: The Chi-square (χ²) test of independence is a non-parametric statistical tool used to evaluate whether
two categorical variables are significantly associated or independent of one another. It compares observed
frequency distributions against expected theoretical frequencies under the assumption of independence.
• Null Hypothesis (H0): The treatment outcome is independent of the type of treatment. The new treatment is
not superior to the conventional treatment.
• Alternative Hypothesis (H1): The treatment outcome is dependent on the treatment type. The new treatment
is significantly superior to the conventional option.
Conventional 60 20 80
Step 3: Calculate Expected Frequencies (E = (Row Total × Column Total) / Grand Total)
Since the calculated χ² (1.84) is less than the critical table value (3.84), we fail to reject the null hypothesis
(H0). There is no statistically significant evidence at a 5% significance level to prove that the new treatment is
superior to the conventional treatment.
OR
Q4) b) The population mean of height of 5 year-old boys is 100 cm. A teacher measures height of
25 students, obtaining a mean height of 105 cm & standard deviation 18. Perform the student's
one sample t-test with 5% significance level to calculate whether the true mean is actually
greater than 100cm. (Consider t value at 0.05 significance = 2.064) [10 Marks]
• Null Hypothesis (H0): μ = 100 cm (The true mean height is equal to 100 cm).
• Alternative Hypothesis (H1): μ > 100 cm (The true mean height is significantly greater than 100 cm — One-
tailed test).
t = (X̄ - μ) / (s / √n)
Substitute values:
An ideal architectural blueprint for an advanced post-graduate engineering or management research report must
comply with formal scientific disclosure layout requirements as structured below:
1. Preliminary Pages
• Title Page: Explicitly states topic, researcher details, institution, and submission year.
• Certificate of Authenticity: Validated clearance endorsement by academic guide.
• Abstract: A compact 250-word synthesis of problem background, methodologies, ML models deployed,
core test metrics (accuracy/AUC), and clinical implications.
• Table of Contents & List of Tables/Figures: Operational page indexing.
3. Postliminary Sections
• References / Bibliography: APA or IEEE indexed sourcing list of academic artifacts.
• Appendices: Source code repositories, specific hardware configurations, or extended statistical calculation
tables.
OR
Q5) b) Prepare an outline for a research on topic "Role of AI in Healthcare". [10 Marks]
Below is a structured blueprint layout outlining a dedicated thesis project targeting artificial intelligence
deployment vectors within healthcare systems.
2. Objectives:
• To evaluate the performance optimization delta of Convolutional Neural Networks (CNNs) in identifying
pulmonary anomalies from chest X-rays.
• To analyze the reduction in administrative operational triage response time for emergency critical care
admissions.
3. Hypotheses:
• Null Hypothesis (H0): AI-driven triage implementation produces no significant change in emergency
department waiting times.
• Alternative Hypothesis (H1): AI-driven triage systems significantly lower patient processing times
compared to traditional nurse-led triage methods.
4. Research Gap:
While existing research extensively optimizes abstract laboratory algorithm accuracy, there remains a critical
operational research gap regarding how real-world clinical data drift and systemic clinician distrust alter
model deployment efficacy in high-pressure emergency clinical units.
5. Data Collection:
Retrospective acquisition of anonymized historical radiological image streams alongside active, time-tracked
log tracking entries across a multi-center public hospital deployment trial.
6. Sampling Design:
Stratified random sampling across distinct clinical demographic units (categorized by age blocks and acute
admission severities), evaluating a target sample size of n = 500 unique patient diagnostic records.
8. Conclusion:
AI systems function efficiently as powerful collaborative diagnostic amplifiers rather than standalone
replacements for medical experts. Regulatory framework standards must evolve to address liability dynamics
before large-scale hospital integration.
1. All questions are fully answered in this text compiled for reference study.
2. In the actual exam layout, options (OR questions) are provided. Both paths are thoroughly resolved here.
3. Calculations are detailed step-by-step to demonstrate standard formulation.
The research process consists of a series of systematic, sequential steps necessary to effectively carry out research.
While the steps are presented linearly, the actual process is iterative, often requiring researchers to revisit previous steps
based on new insights.
• 1. Formulating the Research Problem: The first step is to identify and clearly define a broad statement of a
general question, then narrow it down into a specific research problem. This involves conceptualizing the topic,
understanding its relevance, and stating operational objectives.
• 2. Extensive Literature Review: Researchers review existing conceptual framework knowledge, books, academic
journals, and past empirical reports. This establishes context, prevents duplication, and highlights critical research
gaps.
• 3. Formulation of Working Hypotheses: A hypothesis is a tentative predictive proposition tentative to empirical
verification. It guides the researcher's focus towards factual data collection and appropriate testing measures.
A literature review is an intensive, evaluative account of existing published works by scholars and researchers on a
specific topic. Its paramount importance in scientific inquiry is summarized through the following dimensions:
• Identification of Research Gaps: By mapping out existing knowledge, it uncovers variables that have been
ignored, methodological weaknesses in past studies, or unexamined demographics, providing the justification for a
new project.
• Avoiding Duplication: It prevents researchers from wasting resources to rediscover facts that are already robustly
established in the academic domain.
• Methodological Guidance: It reveals the analytical frameworks, research designs, sampling approaches, and data
collection tools utilized by earlier researchers, providing a roadmap for one's own research methodology.
• Theoretical Grounding: It provides a deep conceptual understanding of the theories, variables, and paradigms
governing the area of study, helping to build strong hypotheses.
• Contextualizing Findings: Once data collection and analysis are complete, the literature review acts as a
benchmark, enabling the researcher to compare their results with established literature to point out similarities or
deviations.
OR
Q1) c) Differentiate qualitative and quantitative research methods with suitable example. [5]
The core differences between qualitative and quantitative paradigms are outlined systematically in the table below:
Illustrative Examples:
• Qualitative Example: Conducting in-depth focus group interviews with ten users to explore their subjective
emotional experiences, frustrations, and cognitive difficulties while using a new enterprise software application.
• Quantitative Example: Distributing a structured 5-point Likert scale questionnaire to 500 users to calculate the
mean usability rating, system loading speeds, and compiling the exact percentage distribution of operational errors.
Research Methodology: Research methodology refers to the systematic, theoretical blueprint used to solve a research
problem. It is the overall strategy that shapes the choice and application of specific methods. It goes beyond the methods
themselves to encompass the rationale and philosophical principles behind why a researcher chooses particular
techniques, instruments, and statistical treatments, detailing how data is extracted, processed, and validated.
Objectives of Research:
The primary purpose of research is to discover answers to inquiries through systematic procedures. The core objectives
can be categorized as follows:
• To Gain Familiarity or Achieve New Insights (Exploratory/Formulative Studies): Geared towards investigating
an under-explored field to generate preliminary insights and clarify complex concepts for deeper research.
• To Portray Characteristics Accurately (Descriptive Studies): Aimed at precisely mapping the profiles,
behaviors, or situational characteristics of an individual, group, or system.
Research paradigms can be classified based on their underlying objectives, context, application, and structural
procedures. Below are the primary types explained with corresponding examples:
Q2) b) What is hypothesis? Prepare a hypothesis (null & alternate) for following situations.
i) Researcher wants to understand the impact of social media usage on children's behaviour.
ii) Researcher wants to understand the lectures attended by first-year students and its effect on
final exam scores. [5]
Hypothesis: A hypothesis is a formal, tentative statement that proposes a predictive relationship between two or more
variables. It acts as an operational proposition that can be empirically tested using statistical tools to confirm or refute
its validity.
• Null Hypothesis (H0): There is no significant impact of social media usage on children's behavior. (i.e., varying
levels of social media usage do not alter behavioral metrics).
• Alternative Hypothesis (H1): There is a significant impact of social media usage on children's behavior. (i.e.,
higher social media usage is correlated with observable changes in behavior).
Situation ii): Lectures attended by first-year students and its effect on final exam scores.
• Null Hypothesis (H0): There is no significant relationship between the number of lectures attended by first-year
students and their final exam scores. (i.e., attendance does not affect performance).
• Alternative Hypothesis (H1): There is a significant positive relationship between the number of lectures attended
by first-year students and their final exam scores. (i.e., higher attendance leads to an increase in exam scores).
Q2) c) What are the key components of a well-structured research design? [5]
A well-structured research design serves as the operational framework of the study. Its key components include:
• 1. Title and Problem Statement: A concise, unambiguous description of the core research problem under
investigation and the scope of the inquiry.
• 2. Purpose and Objectives of the Study: A clear statement outlining what the study aims to achieve, its
importance, and the specific research questions or hypotheses it addresses.
• 3. Population and Sampling Design: Defining the target population, sampling frame, sample size calculation, and
the exact sampling method (probability vs. non-probability) to ensure proper representation.
• 4. Operationalization of Variables: Explicitly identifying independent, dependent, confounding, and intervening
variables, and defining how they will be measured or manipulated.
• 5. Data Collection Strategy: Specifying the sources of data (primary or secondary) and the methods used to collect
it (e.g., surveys, experiments, interviews, observations).
Sampling is the process of selecting a subset of individuals from a population to estimate characteristics of the whole
group. Sampling techniques are divided into probability and non-probability methods.
Every element in the target population has a known, non-zero chance of selection. This minimizes selection bias and
supports statistical generalization.
• Simple Random Sampling: Every member has an equal probability of being chosen. Selection is usually done via
lottery or random number generators.
Example: Pulling 50 student IDs out of a hat containing all 1,000 enrolled college students.
• Stratified Random Sampling: The population is divided into mutually exclusive subgroups (strata) based on
shared traits (e.g., gender, age, income), and random samples are drawn from each stratum.
Example: Dividing a university population into Freshmen, Sophomores, Juniors, and Seniors, then randomly
selecting 50 students from each group to assess satisfaction levels.
• Systematic Sampling: Elements are selected from an ordered sampling frame at regular, predetermined intervals
determined by a sampling interval k = N / n.
Example: Selecting every 10th customer who walks into a retail store, starting from a randomly selected initial
customer.
• Cluster Sampling: The population is divided into clusters (often geographical), and entire clusters are randomly
selected for full analysis.
Example: Selecting 5 city blocks at random from an urban layout and surveying every household within those
selected blocks.
Selection relies on the subjective judgment of the researcher rather than random chance. These methods are typically
used for exploratory studies where statistical generalization is not the primary goal.
• Convenience Sampling: Data is collected from population members who are most accessible to the researcher.
Example: A researcher standing outside a shopping mall and interviewing anyone who passes by.
• Purposive / Judgmental Sampling: The researcher intentionally selects specific individuals based on their
expertise or characteristics relevant to the study.
Example: Interviewing only senior IT managers with over 15 years of experience to study cloud infrastructure
trends.
• Quota Sampling: The population is segmented into subgroups, and a non-random quota of participants is chosen
from each group until the target numbers are met.
Example: Instructing field workers to collect data from 40 males and 60 females on the street, without randomized
selection.
OR
Q3) b) Suppose you are asked to select a sample for is conducting a survey on students'
learning habits. Which sampling method would be most suitable and why? What will be sample
size for the same? [10]
To conduct a rigorous, objective survey on students' learning habits across an institution or university, Stratified
Random Sampling is the most suitable method.
Rationale (Why?):
• Heterogeneity of Learning Habits: Learning habits vary significantly across different academic disciplines (e.g.,
Engineering vs. Management vs. Fine Arts) and across distinct year levels (e.g., First-year undergraduate vs. Final-
year Postgraduate).
• Proportional Representation: Dividing the overall student population into homogeneous strata based on their
specific Department/Stream or Academic Year ensures that smaller departments are not underrepresented, which
can happen with simple random sampling.
• Enhanced Statistical Precision: Minimizing variances within each stratum leads to a more precise estimation of
overall student learning behaviors.
To calculate a mathematically valid sample size (n) without knowing the exact total population, we use Cochran's
Sample Size Formula for an infinite or large population:
n = (Z2 × p × q) / e2
• Z = Standard normal deviation value corresponding to the desired confidence level. For a standard 95% confidence
level, Z = 1.96.
• p = Estimated proportion of an attribute present in the population. Lacking previous empirical benchmarks, we
assume maximum variability: p = 0.5.
• q = 1 - p = 1 - 0.5 = 0.5.
• e = Acceptable margin of error (precision level). We set a standard margin of error: e = 0.05 (i.e., ±5%).
Rounding up to the nearest whole integer yields an ideal sample size of 385 students. If the university's total population
(N) is small (e.g., N = 2,000), this can be adjusted using Cochran's finite population correction formula:
Pink 10 40 50
Black 70 30 100
Yellow 30 20 50
(consider: chi-squared value 0.05 significance level at degree of freedom 2 is = 5.99) [10]
The Chi-square test of independence is a non-parametric statistical tool used to determine if there is a significant
association between two categorical variables. It compares observed frequencies (O) from empirical data against
expected frequencies (E) calculated under the assumption that the variables are independent. The formula is:
χ2 = Σ [ (O - E)2 / E ]
• Null Hypothesis (H0): Gender and color preferences are independent of each other (there is no significant
relationship between them).
• Alternative Hypothesis (H1): Gender and color preferences are dependent (there is a significant relationship
between them).
The expected frequency for any cell is calculated as: E = (Row Total × Column Total) / Grand Total. Given the Grand
Total is 200, Male Total is 110, and Female Total is 90:
• Pink-Male: (50 × 110) / 200 = 27.5; Pink-Female: (50 × 90) / 200 = 22.5
• Black-Male: (100 × 110) / 200 = 55.0; Black-Female: (100 × 90) / 200 = 45.0
• Yellow-Male: (50 × 110) / 200 = 27.5; Yellow-Female: (50 × 90) / 200 = 22.5
Since the calculated Chi-square value (34.343) is much greater than the critical table value (5.99), we reject the null
hypothesis (H0) and accept the alternative hypothesis (H1).
Conclusion: There is a highly significant relationship between gender and color preferences.
OR
Q4) b) What is t-test, When it is used? Determine whether the average weight of sample of 20
mangoes is significantly different from population average weight of 70 gms. The sample mean
weight is 70.55gms & sample standard deviation is 2.82 gm. Apply one sample t test for the
above example (consider t value at 0.05 significance = 2.093). [10]
A t-test is a parametric statistical test used to compare means and determine if they are significantly different from one
another. It is used when:
• Null Hypothesis (H0): μ = 70 gms (The average weight of mangoes is not significantly different from the
population mean).
• Alternative Hypothesis (H1): μ ≠ 70 gms (The average weight of mangoes is significantly different from the
population mean).
t = (X̄ - μ) / (s / √n)
Since the calculated t-value (0.872) is less than the critical table value (2.093), we fail to reject the null hypothesis (H0).
Conclusion: The average weight of the sample of mangoes (70.55 gms) is not significantly different from the
population average weight of 70 gms. The observed difference is statistically negligible and can be attributed to random
sampling variation.
1. Title: Optimizing Edge-Computing Resource Allocation for Real-Time Traffic Management in Smart Cities Using
Machine Learning Frameworks.
2. Abstract:
Modern smart city infrastructures produce large volumes of geospatial data that require immediate processing.
Traditional cloud architectures introduce latency bottlenecks that limit real-time traffic control. This study proposes an
adaptive machine learning resource allocation framework designed for edge nodes. By dynamically distributing
computing tasks based on localized traffic predictions, the framework minimizes system latency. Simulation results
indicate a 24% reduction in data processing latency compared to centralized cloud models, validating the feasibility of
edge-layer intelligence for smart infrastructure management.
3. Introduction:
Urban traffic congestion is a major source of economic inefficiency and environmental emissions. While modern IoT
sensors collect real-time traffic metrics, transferring this data to centralized servers leads to processing delays.
Integrating Machine Learning (ML) at the network edge allows for localized processing and immediate traffic
adjustments. This study outlines a resource allocation framework tailored to the computing constraints of edge-
computing nodes.
4. Literature Review:
Recent studies by Smith et al. (2022) highlight that centralized cloud environments struggle with network congestion
during peak commuting hours. Kumar (2023) demonstrated that edge computing alleviates bandwidth constraints by
processing data near the source. However, dynamic workload balancing across heterogeneous edge nodes remains an
open technical challenge, which this research aims to address.
5. Objectives:
6. Hypothesis:
• Null Hypothesis (H0): The proposed ML-driven edge allocation model shows no significant reduction in
processing latency compared to standard round-robin cloud methods.
7. Methodology:
This study utilizes an experimental simulation design. An urban traffic environment comprising 50 intersection nodes is
emulated. We implement a lightweight Random Forest regression algorithm on simulated edge processors to forecast
incoming data traffic. Performance is benchmarked against centralized cloud models and non-predictive edge allocation
strategies over 100 simulation hours.
9. Conclusion:
Deploying machine learning models for resource allocation at the edge significantly improves the responsiveness of
smart city systems. Transitioning from centralized architectures to localized edge processing provides the low-latency
framework necessary for automated traffic management.
10. References:
1. Kumar, A. (2023). Edge Computing Paradigms in Modern IoT Infrastructures. Academic Press.
2. Smith, J., & Jones, M. (2022). Cloud Latency Obstacles in Real-Time Urban Systems. Journal of Smart Cities Research, 14(2),
112-128.
OR
Q5) b) Prepare an outline for a research on topic "Impact of Social Media on Indian Youth"
with proper title, objectives, hypothesis, Research Gap, Data Collection, sampling, Result and
Discussion and Conclusion. [10]
1. Title: Digital Consumption Paradigms: Assessing the Impact of Short-Form Video Social Media Platforms on the
Academic Attention Span of Indian Youth.
2. Objectives:
• To measure the average daily hours spent by Indian undergraduate students on short-form video streaming
platforms (e.g., Instagram Reels, YouTube Shorts).
• To evaluate the statistical relationship between daily social media usage and students' self-reported academic focus
and concentration levels.
• Null Hypothesis (H0): There is no significant relationship between daily time spent on short-form social media
videos and the academic attention span of Indian youth.
• Alternative Hypothesis (H1): There is a significant negative relationship between daily time spent on short-form
social media videos and the academic attention span of Indian youth.
4. Research Gap:
While existing literature extensively explores the broader psychological impacts of social media on mental health, there
is a lack of research specifically focusing on how short-form vertical videos (under 60 seconds) affect cognitive
retention and academic attention spans within the context of the Indian higher education system.
5. Sampling Design:
The target population consists of undergraduate students aged 18 to 23 across major colleges in an urban hub. This
study utilizes Stratified Random Sampling to select participants. The population is stratified by stream (Arts, Science,
Commerce), drawing a proportional random sample from each to achieve a total sample size of 400 respondents.
8. Conclusion:
High consumption of short-form social media content is associated with a measurable decrease in academic attention
span among urban Indian youth. These findings suggest a need for educational institutions to update pedagogical
methods and promote digital wellness initiatives to address changing cognitive habits.