Class 10 AI Unit 4: Statistical Data & No-Code AI with Orange – Notes | CBSE Code 417
What statistical data is, no-code vs low-code AI, and a full walkthrough of the Palmer Penguins project in Orange and Excel.
Unit 4 has no theory marks. It is assessed in your practical exam and viva. So focus on doing it hands-on in Orange and Excel, and on explaining what each step does.
- What is statistical data?
- No-code vs low-code AI
- Orange Data Mining tool: install, screen, widgets, Test and Score, add-ons
- Case study: Palmer Penguins
- Quick analysis in MS Excel
Strike rate, economy, average, run rate — every IPL broadcast is full of statistics. Commentators predict "this team needs 11 an over" by crunching numbers. When an AI does the same thing with tables of numbers, it's working with statistical data. And in this unit, you'll build such an AI without writing a single line of code.
1. What is Statistical Data?
Statistical data is data that is collected, organised and analysed using numbers and statistics to find patterns, trends and relationships. It is usually stored in tables with rows (records) and columns (features).
Examples: census data, weather records, school results, cricket scores, hospital patient records, shop sales.
Data Science is the AI domain that uses statistical data to make predictions and decisions, like price comparison sites, weather forecasting and sales prediction.
2. No-Code vs Low-Code AI
No-Code AI
Build AI models using drag-and-drop blocks and visual interfaces. No programming at all.
Examples: Orange Data Mining, Teachable Machine, Lobe.
Low-Code AI
Mostly visual tools, but you can add a little code to customise.
Examples: Azure Machine Learning designer, Google AutoML.
| Point | No-Code | Low-Code |
|---|---|---|
| Coding needed | None | A little |
| Who uses it | Beginners, teachers, business users | Users with some programming knowledge |
| Flexibility | Limited to built-in features | More control and customisation |
| Speed | Very fast to build | Fast, but takes a bit longer |
3. Orange Data Mining: Your No-Code AI Lab
With LEGO, you don't make bricks — you just snap ready-made bricks together to build a house. Orange works the same way. Each "brick" is called a widget (load data, draw a chart, train a model). You snap widgets together with lines, and data flows through them. The finished model is called a workflow. No typing code at all.
What is Orange?
- A free, open-source tool for data visualisation, machine learning and data mining.
- Developed by the Bioinformatics Laboratory, University of Ljubljana (Slovenia). It is built on Python.
- Works on Windows, macOS and Linux.
- Uses visual programming: you build models by dragging and connecting widgets instead of writing code.
- Used in CBSE AI for Unit 4 (Statistical Data), Unit 5 (Image Analytics) and Unit 6 (Sentiment Analysis).
Why is it great for students?
No coding
Focus on AI concepts, not syntax errors.
Instant visuals
Change one setting and see charts and results update immediately.
Follows the AI Project Cycle
Load → explore → model → evaluate → predict, all on one screen.
Add-ons
Extra widget packs for text, images, time series and more.
Installing Orange
- Go to orangedatamining.com/download.
- Windows: download the standalone installer (.exe) and install it. It works without admin rights. A portable .zip version is also available for school lab computers.
- Mac: download the .dmg for your chip (Apple Silicon or Intel).
- With Anaconda:
conda install orange3(after adding the conda-forge channel), then runpython -m Orange.canvas. - Add-ons (needed for Units 5 and 6): open Orange → Options → Add-ons → tick Text Mining and Image Analytics → OK → restart Orange.
The Orange screen
Widget categories you'll use
| Category | What it's for | Widgets for your practical |
|---|---|---|
| ๐ Data | Load and view data | File, Datasets, Data Table, Data Info |
| ๐ง Transform | Clean and prepare data | Select Columns, Select Rows, Impute (fill missing values), Data Sampler |
| ๐ Visualize | Explore data with charts | Distributions, Scatter Plot, Box Plot, Bar Plot |
| ๐ง Model | Machine learning algorithms | kNN, Tree, Logistic Regression, Naive Bayes, Random Forest |
| ๐ฏ Evaluate | Check how good the model is | Test and Score, Confusion Matrix, Predictions |
| ๐ซง Unsupervised | Find groups without labels | k-Means, Hierarchical Clustering, Distance Matrix |
A typical workflow
Step by step: build the Penguins workflow
- Load data: drag a File widget onto the canvas, double-click it and browse to the penguins CSV. In the columns list, make sure species has role target.
- Look at it: connect File → Data Table. Check the number of rows and spot missing values ("?").
- Clean it: add Impute (or Select Rows) to handle missing values.
- Explore: connect Distributions and Scatter Plot. Try flipper length vs body mass and colour points by species.
- Choose models: drag kNN, Tree and Logistic Regression onto the canvas.
- Train and evaluate: connect the data and all three models to Test and Score.
- See the mistakes: connect Test and Score → Confusion Matrix.
- Predict: connect a model and new data to Predictions.
- Save: File → Save As. Orange workflows are saved as .ows files. Take screenshots for your practical file.
Understanding Test and Score
This widget trains each model and tests it for you. You choose how to split the data:
| Sampling method | Meaning (simple words) |
|---|---|
| Cross-validation | Splits data into folds (usually 5 or 10). Each fold takes a turn as test data. Most reliable. |
| Random sampling | Randomly splits into training and testing sets in a chosen ratio, e.g., 80:20 (the train-test split from Unit 3). |
| Leave-one-out | Tests on one row at a time. Very thorough but slow. |
| Test on train data | Tests on the same data it learned from. Scores look too good, so don't trust it. |
| Test on test data | Uses a separate test file you provide. |
The results table shows scores like CA (Classification Accuracy), AUC (Area under ROC), F1, Precision and Recall — the same metrics you learned in Unit 3. The model with the highest scores is usually the best choice.
Rows show the actual species and columns show the predicted species. Numbers on the diagonal are correct predictions; numbers off the diagonal are mistakes. If Adelie is often predicted as Chinstrap, those two species are being confused.
Add-ons for other units
Image Analytics (Unit 5)
Import Images → Image Embedding → Test and Score. Used for the coral bleaching project.
Text Mining (Unit 6)
Corpus → Preprocess Text → Sentiment Analysis → Word Cloud. Used for the sentiment analysis project.
- Double-click any widget to open its settings and results.
- Right-click on an empty part of the canvas to search for a widget by name.
- A widget with a warning or error sign usually means data isn't connected or the target isn't set.
- Explore the built-in example workflows from the Welcome screen to practise.
4. Case Study: Palmer Penguins ๐ง
Scientists in Antarctica study three species of penguins: Adelie, Chinstrap and Gentoo. Identifying them by eye takes an expert. Can an AI identify the species just from body measurements? Let's follow the AI Project Cycle.
| AI Project Cycle stage | What we do in the penguin project |
|---|---|
| Problem Scoping | Researchers need a quick way to identify the species of a penguin from its measurements. |
| Data Acquisition | Load the Palmer Penguins dataset (about 344 penguins) using the File widget. Features: island, bill length, bill depth, flipper length, body mass, sex. Label: species. |
| Data Exploration | Use Data Table, Distributions and Scatter Plot. You'll see Gentoo penguins are heavier and have longer flippers. Also handle missing values. |
| Modelling | It's a classification problem (output = species). Connect models like kNN, Tree, Logistic Regression. |
| Evaluation | Use Test & Score to compare classification accuracy (CA), precision, recall, F1. Use Confusion Matrix to see which species get mixed up. |
| Deployment | Use the Predictions widget to predict the species of new penguins. |
5. Quick Analysis in MS Excel
Before Orange, the handbook also asks you to explore the data in Excel. Useful functions:
| Function | What it finds | Example |
|---|---|---|
=AVERAGE(D2:D345) | Mean | Average flipper length |
=MEDIAN(D2:D345) | Middle value | Median body mass |
=MODE(C2:C345) | Most frequent value | Most common bill depth |
=MAX() / =MIN() | Largest / smallest | Heaviest penguin |
=COUNTIF(A2:A345,"Gentoo") | Counts matching rows | Number of Gentoo penguins |
Then use Insert → Chart (column, scatter, pie) to visualise it.
1) Species is the target/label, not a feature. 2) This is classification, not regression, because the output is a category. 3) CA in Test & Score means Classification Accuracy.
Viva Practice
Q1. What is a widget in Orange?
A building block that performs one task, like loading data or training a model.
Q2. Name the target variable in the Palmer Penguins dataset.
Species (Adelie, Chinstrap, Gentoo).
Q3. Which widget compares the performance of different models?
Test & Score.
Q4. Give two differences between no-code and low-code AI.
No-code needs no programming and is less flexible; low-code needs some coding and gives more customisation.
Q5. Who developed Orange and what is a workflow file saved as?
Bioinformatics Laboratory, University of Ljubljana; saved as .ows.
Q6. Which sampling method in Test and Score is most reliable?
Cross-validation.
Q7. How do you install the Text Mining add-on?
Options → Add-ons → tick Text Mining → OK → restart Orange.
⚡ One-minute revision
- Statistical data = numerical data analysed to find patterns.
- No-code: no programming (Orange, Teachable Machine, Lobe). Low-code: a little coding.
- Orange = free, open-source, visual programming (Univ. of Ljubljana). Widgets + workflow (.ows): File → Data Table/Scatter Plot → Model → Test and Score → Confusion Matrix → Predictions.
- Widget groups: Data, Transform, Visualize, Model, Evaluate, Unsupervised. Add-ons: Text Mining, Image Analytics.
- Palmer Penguins: classify Adelie, Chinstrap, Gentoo from bill, flipper and body mass.
- Excel: AVERAGE, MEDIAN, MODE, MAX, MIN, COUNTIF + charts.
Done reading? Test yourself on AI Unit 4 in board-exam style.
๐ Take the Practice PaperNext: AI Unit 5 ›๐ Class 10 Hub
Comments
Post a Comment