0% found this document useful (0 votes)
4 views17 pages

Notes For Computer

The document provides an introduction to data and data science, explaining key concepts such as types of data, classification, anomaly detection, regression, clustering, and reinforcement learning. It also discusses emerging technologies like AI, 3D printing, VR/AR, blockchain, and IoT, and emphasizes the importance of loops and lists in Python programming. The document highlights the future applications of AI across various sectors including military, healthcare, coding, research, entertainment, and transportation.

Uploaded by

studyhardchhavi
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)
4 views17 pages

Notes For Computer

The document provides an introduction to data and data science, explaining key concepts such as types of data, classification, anomaly detection, regression, clustering, and reinforcement learning. It also discusses emerging technologies like AI, 3D printing, VR/AR, blockchain, and IoT, and emphasizes the importance of loops and lists in Python programming. The document highlights the future applications of AI across various sectors including military, healthcare, coding, research, entertainment, and transportation.

Uploaded by

studyhardchhavi
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

Chapter 1: Introduction to Data

Key idea: Data is just information. It can be numbers, text, images, videos, sounds, etc.

• Types of Data:

o Qualitative data → descriptive (e.g., “The sky is blue”, “It’s a nice day”).

o Quantitative data → numerical (e.g., 25, 3.65).

▪ Discrete data → fixed values (e.g., number of days in a week).

▪ Continuous data → values in a range (e.g., temperature 25.6°C).

• Why it matters?
Data by itself is raw, but when analyzed, it helps us make decisions.

• Real-life example:
Think of YouTube or Netflix. When you watch a video, it suggests more videos you’ll
probably like. How? By analyzing data — what you and millions of others watched
earlier.

Takeaway: We live surrounded by data, and computers use it to predict, recommend,


and solve problems.

Chapter 2: Introduction to Data Science

Key idea: Data Science = finding meaning in data to solve problems.

• How it works:
Every click, purchase, ATM withdrawal, or like on social media generates data.
Data Science organizes and analyzes this to make useful insights.

• Careers in Data Science:

o Data Scientist → collects + analyzes data.

A Data Engineer is responsible for collecting, storing, and managing data


efficiently. They clean and organize raw data, build data pipelines, and ensure
that data is ready for analysis by Data Scientists to make insights and
predictions."

o Business Intelligence Analyst → studies market & trends.

o Data Engineer → builds algorithms to handle data.

o Data Architect → designs systems to manage data.

o Senior Data Scientist → experienced, predicts future needs.


• Questions Data Science answers:

Takeaway: Data Science is about turning big messy data into smart answers that
industries, apps, and even robots can use.

Classification

Definition (exam me likhne layak):


Classification is the process of identifying which category an object or data belongs to, based
on already known labels.

Samajh:
Socho tumhe fruit diya aur tumhe pehle se pata hai categories = Aam aur Seb. Tum bas
decide karte ho: ye fruit aam hai ya seb?

Two types of Quantitative Data:

1. Discrete data: Countable data, usually in whole numbers.

o Example: Number of students in a class, number of cars.

2. Continuous data: Measurable data, can take any value within a range.

o Example: Height, weight, temperature.

• Explanation: “Countable vs uncountable” is the basic idea, but using measurable for
continuous is more precise.

2. Anomaly Detection

Definition:
Anomaly detection is the process of finding unusual data that does not match the normal
pattern.

Samajh:
Class me sab uniform pehne hain, ek bachcha Superman ka costume pehne aaya. Ye odd one
out hai → anomaly.

3. Regression

Definition:
Regression is a technique used to predict a continuous numerical value from given data.
Samajh:
Jaise tum guess karte ho ki kal barish kitni hogi — 120 mm. Ye ek number hai, isi ko
regression kehte hain.

4. Clustering

Definition:
Clustering is the process of grouping similar data items together when the categories are not
already known.

Samajh:
Box me crayons hain, kisi ne categories nahi batayi. Tum khud dekh ke red, blue, green
crayons ko alag-alag group karte ho → clustering.

5. Reinforcement Learning

Definition:
Reinforcement learning is a machine learning technique where an agent learns by doing
actions and receiving rewards or punishments.

Samajh:
Video game me jump sahi hua → points (reward), galat hua → game over (punishment).
Machine bhi aise hi seekhti hai.

Chapter 3 – Emerging Technologies

This chapter introduces you to new technologies that are shaping the world.

• Artificial Intelligence (AI) → Computers that can think, learn, and make decisions
(simulation of human intelligence in computers) (like Siri, Alexa, or chatbots).

• 3D Printing → Creating objects layer by layer (used in medicine, construction,


prototypes).

• Virtual Reality (VR) & Augmented Reality (AR) → VR immerses you in a computer
world (gaming), AR adds digital layers to real life (like Pokémon Go).

• Difference between VR and AR:


Feature Virtual Reality (VR) Augmented Reality (AR)
Creates a completely virtual
Overlays digital images or information
Definition environment that replaces the real
onto the real world.
world.
Uses devices like smartphones or AR
How it Users wear a VR headset to enter a
glasses to add digital layers to the real
works simulated world.
world.
Effect on
Replaces reality Enhances reality
reality

• Blockchain is a system of recording information in a way that makes it difficult or


impossible to change, hack, or cheat the system.
It works like a digital ledger where transactions are recorded in blocks, and each
block is connected (chained) to the previous one using cryptography

Samajh (5 saal ke bacche jaisa)


Socho tumhari class me ek copy hai jisme har student apne kharche likhta hai.
Har page = ek block.
Jab page fill ho jata hai, tum agla page use karte ho → wo pichle page se linked hota hai.
Agar koi bachcha pehle ke page me kuch change kare, to sabko pata chal jaayega kyunki
link toot jaayega.
Is tarah sab record safe rehta hai. Ye hi blockchain hai.

• IoT (Internet of Things) → Everyday devices connected to the internet


(smartwatches, smart fridges).

Takeaway: Technology is moving from simple computers → to smart systems that learn,
sense, and connect everything.

. Why Loops?

Sometimes we need to repeat a task many times.


Without loops, we’d have to write the same line again and again.
Example:

print("Hello")

print("Hello")

print("Hello")

This is boring. With a loop:


for i in range(3):

print("Hello")

Much shorter!

2. Types of Loops in Python

• for loop → repeats for a fixed number of times.

for i in range(1, 6): # runs from 1 to 5

print(i)

• while loop → runs until a condition becomes false.

i=1

while i <= 5:

print(i)

i += 1

3. Lists in Python

A list is like a container where you can store multiple values in one variable.
Example:

fruits = ["apple", "banana", "mango"]

print(fruits[0]) # apple

print(fruits[2]) # mango

• You can add items:

• [Link]("orange")

• You can remove items:

• [Link]("banana")

• You can change items:

• fruits[1] = "grapes"

4. Loops + Lists
We often use loops to go through all items in a list:

for fruit in fruits:

print(fruit)

5. Mini Example

Let’s say you have marks of 5 students:

marks = [88, 76, 92, 64, 70]

for m in marks:

print(m)

Output will show each student’s mark.

Takeaway:

• Loops help repeat tasks.

• Lists help store collections of data.

• Together, they make coding powerful.

how to add items into a list in Python, right?

There are mainly two ways:

1. Using .append()

Adds a new item at the end of the list.

fruits = ["apple", "banana"]


[Link]("mango")
print(fruits)

Output: ['apple', 'banana', 'mango']

2. Using .insert(position, item)

Adds an item at a specific position.


fruits = ["apple", "banana", "mango"]
[Link](1, "grapes") # adds grapes at index 1
print(fruits)

Output: ['apple', 'grapes', 'banana', 'mango']

Bonus: You can also add multiple items at once using extend():

fruits = ["apple", "banana"]


[Link](["orange", "pineapple"])
print(fruits)

Output: ['apple', 'banana', 'orange', 'pineapple']\

Extend (add multiple numbers)

numbers = [1, 2, 3]

[Link]([4, 5, 6]) # adds multiple values

print(numbers)

Output: [1, 2, 3, 4, 5, 6]

Sirf evens lo aur sum add karo

total = 0

for i in range(2, 51):

if i % 2 == 0: # check even

total += i # add to sum

print(total)

Output = 650

Step 4: Short trick (Python style)

total = sum(range(2, 51, 2)) # start=2, stop=51, step=2

print(total)

Same result: 650


What is Slicing in Python Lists?

• Definition: Slicing is a way to get a part of a list instead of the whole list.
• You use square brackets [ ] with a start index and end index.
• Syntax:

list_name[start:end]

• Start → the index where the slice begins (included)


• End → the index where the slice stops (excluded)

Indexing in Python Lists:


"Indexing is the way we access individual elements in a list using their position
(index). There are two types of indexing in Python:"

1. Positive Indexing: Counts from the left, starting at 0.


o Example: fruits[0] → first element of the list.
2. Negative Indexing: Counts from the right, starting at -1.
o Example: fruits[-1] → last element of the list.

Example:

fruits = ['Apple', 'Mango', 'Orange', 'Grapes', 'Banana']

print(fruits[1:4])

Output:

['Mango', 'Orange', 'Grapes']

• Explanation:
o Index 1 → 'Mango' (included)
o Index 4 → 'Banana' (excluded)
o So you get ['Mango', 'Orange', 'Grapes']

1. append()

• Use: Adds an element to the end of the list.


• Example:

fruits = ['Apple', 'Mango']

[Link]('Banana')

print(fruits) # ['Apple', 'Mango', 'Banana']

2. insert()

• Use: Adds an element at a specific position.


• Example:

fruits = ['Apple', 'Mango']

[Link](1, 'Banana')

print(fruits) # ['Apple', 'Banana', 'Mango']

3. extend()

• Use: Adds elements of another list to the end.


• Example:

fruits = ['Apple', 'Mango']

tropical = ['Pineapple', 'Papaya']

[Link](tropical)

print(fruits) # ['Apple', 'Mango', 'Pineapple', 'Papaya']

4. pop()

• Use: Removes an element from a list. By default, it removes the last element, or you
can give an index.
• Example:

fruits = ['Apple', 'Mango', 'Banana']

[Link]()

print(fruits) # ['Apple', 'Mango']


[Link](0)

print(fruits) # ['Mango']

5. remove()

• Use: Removes a specific element by value.


• Example:

fruits = ['Apple', 'Mango', 'Banana']

[Link]('Mango')

print(fruits) # ['Apple', 'Banana']

6. sort()

• Use: Sorts the list in ascending order (default).


• Example:

numbers = [5, 2, 9, 1]

[Link]()

print(numbers) # [1, 2, 5, 9]

7. reverse()

• Use: Reverses the order of the list.


• Example:

numbers = [1, 2, 3, 4]

[Link]()

print(numbers) # [4, 3, 2, 1]

8. len()

• Use: Returns the number of elements in the list.


• Example:
fruits = ['Apple', 'Mango', 'Banana']

print(len(fruits)) # 3

9. count()

• Use: Counts how many times a specific element occurs.


• Example:

numbers = [1, 2, 2, 3, 2]

print([Link](2)) # 3

10. index()

• Use: Returns the index of the first occurrence of an element.


• Example:

fruits = ['Apple', 'Mango', 'Banana']

print([Link]('Mango')) # 1

del Keyword in Python

• Use: Deletes elements from a list (or entire variables) permanently.


• Difference from pop() and remove():
o pop() removes and returns an element.
o remove() deletes an element by value.
o del can delete by index or the whole list.

Examples:

1. Delete an element at a specific index

fruits = ['Apple', 'Mango', 'Banana']

del fruits[1]

print(fruits) # ['Apple', 'Banana']

2. Delete a slice of elements

numbers = [1, 2, 3, 4, 5]
del numbers[1:4]

print(numbers) # [1, 5]

Loop ek control structure hai jo ek statement ya block ko baar-baar execute karta hai jab tak
koi condition true hoti hai.
(Matlab, ek kaam repeat karne ke liye loop use karte hain.)

Types of Loops in Python:

1. for loop
o Ek sequence (list, tuple, string, range) ke har element ke liye code repeat karta
hai.
o Syntax: for variable in range(start, stop, step):

for i in range(5):
print(i)
Output: 0 1 2 3 4
4.

2. while loop
o Jab tak condition true rahe, tab tak code repeat hota hai.

Syntax: for variable in sequence:


# Code
else:
# Runs if loop completes without 'break'
x=1
while x <= 5:
print(x)
x += 1
Output: 1 2 3 4 5

3. for-else loop
o else block tab execute hota hai jab loop normally complete ho jaye (break se
exit na ho).
o Syntax:

for i in range(3):
print(i)
else:
print("Loop finished!")
Output:
0
1
2
Loop finished!

4. while-else loop
o else block tab run hota hai jab while loop ki condition false ho jaye naturally.
o Syntax:

x=1
while x <= 3:
print(x)
x += 1
else:
print("Condition false, loop ended")

o Output:

1
2
3

Condition false, loop ended

FUTURE POSSIBLITIES OF AI

Applications of Artificial Intelligence (AI):

1. Military:
AI is used in drones, surveillance systems, and threat detection. It helps in strategic
planning, battlefield simulations, and making quick decisions during operations.

2. Healthcare:
AI assists doctors in diagnosing diseases using X-rays, CT scans, and patient data. It
recommends treatments, monitors patient health, and efficiently manages medical
records.

3. Coding / Software Development:


AI helps in writing code, detecting errors, and automating repetitive tasks. It speeds
up software development and improves accuracy.

4. Research:
AI analyzes large amounts of data quickly, predicts outcomes, models experiments,
and supports scientific discoveries in various fields.
5. Entertainment:
AI is used to recommend movies, music, and games based on user preferences. It
also helps in animation, creating virtual characters, and developing interactive
games.

6. Transportation:
AI powers self-driving cars, manages traffic efficiently, and helps optimize routes. It
improves safety and reduces travel time.

Qualities for a Machine learning engineer

A Machine Learning Engineer should have knowledge of programming languages (like


Python), data science concepts, and a strong foundation in mathematics and statistics.

Data Scientist

Qualifications needed:

• Strong knowledge of Mathematics & Statistics


• Programming skills (Python, R, SQL)
• Knowledge of Machine Learning & Data Analysis
• Understanding of data visualization tools (Tableau, Power BI, Matplotlib)

Role / What they do:

• Collect, clean, and analyze data from multiple sources


• Build predictive models using Machine Learning
• Identify trends and patterns to help businesses make decisions
• Present insights through reports and dashboards

2. Business Intelligence (BI) Developer

Qualifications needed:

• Knowledge of databases and SQL


• Familiarity with BI tools (Power BI, Tableau, QlikView)
• Understanding of data warehousing and ETL processes
• Basic programming skills (Python or R optional)

Role / What they do:

• Design and develop dashboards and reports for businesses


• Collect and organize data to support decision-making
• Analyze business trends and performance metrics
• Help managers and stakeholders make informed business decisions
Threats from AI

AI bots can pose a serious threat because people may become overly reliant on them for
everyday tasks, and they can lead to job losses. Additionally, if misused, AI can
compromise privacy and security.

Business Intelligence (BI) Analyst

• What they do:


o Analyze business data to find trends and patterns.
o Create dashboards, reports, and charts for decision-making.
o Use BI tools (Power BI, Tableau).
• Goal: Help companies make better decisions with data.

2. Data Engineer

• What they do:


o Build and maintain data pipelines (systems that collect and move data).
o Clean and organize large datasets.
o Make sure data is ready for analysis by data scientists.
• Goal: Ensure data flows smoothly and is easy to use.

3. Data Architect

• What they do:


o Design the overall structure of databases and data systems.
o Decide where and how data will be stored and accessed.
o Create blueprints for large-scale data solutions.
• Goal: Build a strong data foundation for organizations.

4. Senior Data Scientist

• What they do:


o Lead data science projects and create advanced ML/AI models.
o Solve complex business problems with data.
o Mentor junior data scientists.
• Goal: Turn raw data into strategies and predictions for the future.
Common List Methods

Method Use
append(x) Adds element to end
insert(i, x) Inserts at index i
remove(x) Removes first occurrence of x
pop(i) Removes element at index i
sort() Sorts list
reverse() Reverses list
len(list) Finds length of list

Difference Between For & While Loop

For Loop While Loop


Runs for a fixed number of times Runs until a condition is false
Used when we know how many times Used when we don’t know times

Emerging Technologies (Quick Points)

• AI: Machines simulating human intelligence.


• ML: Machines learning patterns from data.
• IoT: Internet-connected devices (smart homes).
• Blockchain: Distributed ledger for transactions.
• Robotics: Automation using robots.
• AR/VR: Virtual experiences and simulations.

Future of AI (Quick Points)

• Personalized learning
• AI in healthcare & medicine
• Automation in industries
• Smart cities & IoT
• Autonomous vehicles

Chapter 1: Introduction to Data

Key Points:
• Data:
Raw facts and figures which have no meaning on their own.
Example: 25, Delhi, 98.
• Information:
Processed data that is meaningful and useful.
Example: “Ravi scored 98 marks in Delhi school.”
• Types of Data:
1. Qualitative (Categorical): Data in words, categories. (e.g., colors, gender)
2. Quantitative (Numerical): Data in numbers. (e.g., marks, height)
• Data Collection Methods:
o Surveys, Observations, Experiments, Online forms, Sensors.
• Importance of Data:
Helps organizations make decisions, analyze trends, and predict outcomes.

Chapter 2: Introduction to Data Science

Key Points:

• Data Science:
A field that combines statistics, computer science, and domain knowledge to extract
insights from data.
• Stages of Data Science:
1. Data Collection: Gathering raw data.
2. Data Cleaning: Removing errors, duplicates, and missing values.
3. Data Analysis: Applying methods to find patterns and trends.
4. Data Visualization: Showing data using charts/graphs.
5. Decision Making: Using insights to take action.
• Data Scientist:
A professional who analyzes data and gives meaningful insights.
• Applications:
o E-commerce (recommendations)
o Healthcare (predicting diseases)
o Banking (fraud detection)
o Transport (maps, traffic prediction)

You might also like