G検定 · LESSON 6
Toward social implementation of AI; mathematical statistics5%(当サイト設定) · 3 topics
Learn how to run AI projects, collecting, processing and analyzing data, and the math and statistics AI needs.
6.1Running AI projects
Running AI projects (CRISP-DM, CRISP-ML, PoC, MLOps, BPR, agile, Web APIs, cloud, Docker, Jupyter Notebook)
Concept
CRISP-DM is a standard process for data analysis projects, repeating business understanding → data understanding → data preparation → modeling → evaluation → deployment. CRISP-ML extends it for machine learning, adding quality assurance and operation and monitoring. Check feasibility small with a PoC (proof of concept), and keep development and operation cycling with MLOps. Rethinking the work itself through BPR (business process reengineering) also matters. Agile is common in development, Web APIs and cloud in delivery, Docker for reproducing environments and Jupyter Notebook for trial and error.
How it works / steps
- Decide the business problem and evaluation metrics first (business understanding)
- Verify small with a PoC before full development
- Include post-launch monitoring and retraining (MLOps) in the plan
Workplace example
In a demand forecasting PoC, check accuracy on the past year's data, review the ordering workflow (BPR), then integrate into production as a Web API.
Common confusions and exam tips
- CRISP-DM starts with business understanding (not data collection)
- Beware of “PoC fatigue,” repeating PoCs without reaching production
- Docker absorbs environment differences with containers
Mini quiz
Q1. You plan to use AI for demand forecasting. What is the most appropriate purpose of a PoC before full development?
- Check feasibility and impact on a small scale, and decide on full development against evaluation criteria
- Give several vendors the same task and pick the cheapest proposal
- Have target accuracy guaranteed by contract before collecting training data
- Build a system at production scale and finalize operating procedures
Show answer and explanation
Answer: A Check feasibility and impact on a small scale, and decide on full development against evaluation criteria
In a PoC, decide evaluation metrics and pass criteria in advance. Beware of repeating PoCs without ever reaching production. [Other options] Production-scale building exceeds a PoC. Price comparison is procurement. Guaranteeing accuracy before checking data is hard in AI development.
Q2. A production demand forecasting model's accuracy fell gradually over six months. Which response follows MLOps best?
- Have a data scientist rebuild the model locally once a year
- Freeze the model that first scored high and accept the drop as within tolerance
- Monitor inputs and accuracy, and keep running retraining and deployment when drift is detected
- Retrain a larger model once and set up no monitoring afterward
Show answer and explanation
Answer: C Monitor inputs and accuracy, and keep running retraining and deployment when drift is detected
In operation, accuracy drops from shifts in data distribution (data drift) or in the input-answer relationship (concept drift), so monitoring and retraining are needed. [Other options] Freezing or a single retrain can't handle future drift. A yearly local rebuild isn't continuous monitoring, retraining and deployment.
Reference links
6.2Collecting, processing, analyzing and training on data
Collecting, processing, analyzing and training on data (open datasets, annotation, corpora, data leakage)
Concept
Data is collected from open datasets (ImageNet, MNIST, COCO etc.), your own data, the web and so on. Annotation is labeling data with correct answers; aligning quality criteria is important. A corpus is a large body of text data. Data leakage is the problem where information not available at prediction time (future information or information directly tied to the answer) mixes into training, making evaluation unduly high.
How it works / steps
- Check terms of data use (licenses, personal information)
- Document annotation criteria and check variation between annotators
- Remove from features any information unavailable at prediction time
Workplace example
In predicting hospital stay length, a feature computed from the “discharge date” was used in training, making evaluation abnormally high (data leakage).
Common confusions and exam tips
- Even open data may prohibit commercial use
- Split time-series data keeping time order
- Annotation errors lower the ceiling of model performance
Mini quiz
Q1. Which is the most appropriate point of care for data annotation?
- Label quality doesn't affect model accuracy, so prioritize only speed
- Document labeling criteria and manage quality while checking variation between annotators
- Have as many annotators as possible label freely by their own judgment, without criteria
- Keep using labels once assigned, even if errors are found
Show answer and explanation
Answer: B Document labeling criteria and manage quality while checking variation between annotators
Annotation quality drives model performance. Clarify criteria, cross-check with several people and check agreement rates.
Q2. Which best describes “data leakage”?
- An information security problem where training data leaks outside and personal data is exposed
- A problem where storage runs short and old data is deleted automatically
- A problem where training data is too small and model accuracy doesn't rise enough
- A problem where information unavailable at prediction time mixes into training, making evaluation unduly good
Show answer and explanation
Answer: D A problem where information unavailable at prediction time mixes into training, making evaluation unduly good
Example: including a “cancellation procedure date” field in churn prediction. Accuracy won't hold in production.
Reference links
6.3Math and statistics for AI
Math and statistics for AI (mean, median, mode; variance, standard deviation; correlation, spurious correlation; normal, binomial, Poisson distributions; conditional probability; maximum likelihood; least squares; hypothesis testing; Euclidean and Mahalanobis distance, cosine similarity)
Concept
Representative values include the mean, median (robust to outliers) and mode; spread is expressed by variance and standard deviation. The correlation coefficient is the strength of a linear relation between two variables (−1 to 1); correlation doesn't mean causation, and apparent correlation from a third factor is spurious correlation. Probability distributions include the normal, binomial (number of successes) and Poisson (number of occurrences in a fixed time). Conditional probability underlies Bayes' theorem. Maximum likelihood estimates parameters maximizing the probability of the data; least squares minimizes the sum of squared errors. Hypothesis testing judges by p-value whether the null hypothesis can be rejected. Distances include Euclidean distance, Mahalanobis distance (accounting for spread) and cosine similarity (closeness of direction).
How it works / steps
- Check the distribution and outliers before choosing a representative value
- When you find a correlation, consider whether it is causal or spurious
- Use cosine similarity for similarity between text vectors
Workplace example
Ice cream sales and drowning accidents correlate, but it's a spurious correlation both caused by temperature; ice cream doesn't cause accidents.
Common confusions and exam tips
- The mean is easily affected by outliers (e.g. salaries)
- Even with a correlation of 0 there can be a nonlinear relation
- A p-value is not “the probability the null hypothesis is true”
Mini quiz
Q1. Data show that days with more ice cream sales also have more drowning accidents. Which interpretation is most appropriate?
- It may be spurious correlation, appearing correlated through a third factor, temperature
- A correlation of 0.9 or more lets you conclude causation
- The high correlation means ice cream sales cause drownings
- There is reverse causation: more drownings raise ice cream sales
Show answer and explanation
Answer: A It may be spurious correlation, appearing correlated through a third factor, temperature
Example: ice cream sales and drowning accidents correlate because both depend on temperature. Correlation with other variables' influence removed is the partial correlation coefficient. [Other options] Correlation isn't causation. Reverse causation has no basis. Correlation size alone can't show causation; check with partial correlation removing the third factor.
Q2. Which best describes maximum likelihood estimation?
- Taking the most frequent value in the data as its representative value
- Forming a hypothesis and judging by probability whether data lets you reject it
- Choosing a line's coefficients to minimize the sum of squared differences between predictions and actuals
- Estimating parameters so the probability of obtaining the observed data (the likelihood) is maximized
Show answer and explanation
Answer: D Estimating parameters so the probability of obtaining the observed data (the likelihood) is maximized
[Other options] Minimizing the sum of squares is least squares, the most frequent value is the mode, and rejecting hypotheses is hypothesis testing (null and alternative hypotheses).
Reference links
Lessons are written by this site based on public information and do not guarantee exam content. Product specifications change, so check the latest information at the reference links.
Notes (unofficial, original questions, no pass guarantee)
- The questions on this site are original practice questions written by this site based on publicly available skills outlines and exam guides. They are not actual exam questions.
- This site is not affiliated with or endorsed by GUGA, JDLA or other exam providers. Exam and organization names may be trademarks of their respective owners.
- This content is a study aid and does not guarantee a pass. Exam content, format and prerequisites may change without notice; always check the latest information on the official page before taking the exam.
- Your accuracy on the mock exam cannot be converted to the official (scaled) score and does not predict a pass or fail.
- Progress is saved only in this browser (localStorage) unless you sign in with Google to sync it. You can delete it from the Cookie & storage settings page (Japanese).