기여 분석(핵심 동인 분석이라고도 함)을 사용하여 다차원 데이터의 주요 측정항목 변경에 관한 인사이트를 생성할 수 있습니다. 예를 들어 기여 분석을 사용하여 두 분기 간의 수익 수치 변화를 확인하거나 두 세트의 학습 데이터를 비교하여 ML 모델 성능의 변화를 파악할 수 있습니다. CREATE MODEL 문을 사용하여 BigQuery에서 기여 분석 모델을 만들 수 있습니다.
기여 분석은 인공지능(AI)을 사용하여 데이터의 분석 및 이해를 개선하고 자동화하는 증강 분석의 한 형태입니다. 기여 분석은 사용자가 데이터에서 패턴을 찾을 수 있도록 지원하는 증강 분석의 주요 목표 중 하나를 달성합니다.
기여 분석 모델은 데이터의 테스트 세트를 데이터의 통제 세트와 비교하여 측정항목의 변화를 보여주는 데이터 세그먼트를 감지합니다. 예를 들어 2023년 말에 수집된 판매 데이터의 테이블 스냅샷을 테스트 데이터로 사용하고 2022년 말에 수집된 테이블 스냅샷을 통제 데이터로 사용하여 시간 경과에 따른 판매 변화를 확인할 수 있습니다.
기여 분석 모델은 전년 대비 판매에 가장 큰 변화를 가져온 데이터 세그먼트(특정 지역의 온라인 고객 등)를 보여줄 수 있습니다.
세그먼트는 지정된 측정기준 값의 조합으로 식별되는 데이터 슬라이스입니다. 예를 들어 store_number, customer_id, day 측정기준을 기반으로 하는 기여 분석 모델의 경우 이러한 측정기준 값의 고유한 조합마다 세그먼트를 나타냅니다. 다음 표에서 각 행은 다른 세그먼트를 나타냅니다.
store_number
customer_id
day
매장 1
매장 1
고객 1
매장 1
고객 1
월요일
매장 1
고객 1
화요일
매장 1
고객 2
매장 2
모델 생성 시간을 줄이고 가장 크고 관련성이 높은 세그먼트만 모델링하려면 Apriori 지원 기준점을 지정하세요. 이렇게 하면 모델에서 사용하는 작은 세그먼트를 프루닝할 수 있습니다.
기여 분석 모델을 만든 후에는 ML.GET_INSIGHTS 함수를 사용하여 모델에서 계산한 측정항목 정보를 가져올 수 있습니다. 모델 출력은 인사이트 행으로 구성되며 각 인사이트는 세그먼트와 해당 측정항목을 제공합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-26(UTC)"],[[["\u003cp\u003eContribution analysis, also known as key driver analysis, helps identify changes in key metrics across multi-dimensional data.\u003c/p\u003e\n"],["\u003cp\u003eThis feature, currently in a pre-GA stage, is available "as is" with potential limited support, and subject to the "Pre-GA Offerings Terms".\u003c/p\u003e\n"],["\u003cp\u003eContribution analysis models compare a test data set to a control data set to identify statistically significant changes across various dimensions, such as time or location.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eCREATE MODEL\u003c/code\u003e statement in BigQuery can be used to build a contribution analysis model, and these models can use either summable or summable ratio metrics.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eML.GET_INSIGHTS\u003c/code\u003e function allows users to retrieve metric information calculated by a created contribution analysis model.\u003c/p\u003e\n"]]],[],null,["# Contribution analysis overview\n==============================\n\nUse this document to understand the contribution analysis use case,\nand the options for performing contribution analysis in BigQuery ML.\n\nWhat is contribution analysis?\n------------------------------\n\nContribution analysis, also called key driver analysis, is a method used to\ngenerate insights about changes to key metrics in your multi-dimensional data.\nFor example, you can use contribution analysis to see what data contributed to a\nchange in revenue numbers across two quarters, or to compare two sets of\ntraining data to understand changes in an ML model's performance.\n\nContribution analysis is a form of\n[augmented analytics](https://en.wikipedia.org/wiki/Augmented_Analytics),\nwhich is the use of artificial intelligence (AI) to enhance and automate the\nanalysis and understanding of data. Contribution analysis accomplishes one of\nthe key goals of augmented analytics, which is to help users find patterns in\ntheir data.\n\nContribution analysis with BigQuery ML\n--------------------------------------\n\nTo use contribution analysis in BigQuery ML, create a\ncontribution analysis model with the\n[`CREATE MODEL` statement](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-contribution-analysis).\n\nA contribution analysis model detects segments of data that show changes in\na given metric by comparing a test set of data to a control set of data. For\nexample, you might use a [table snapshot](/bigquery/docs/table-snapshots-intro)\nof sales data taken at the end of 2023 as your test data and a table snapshot\ntaken at the end of 2022 as your control data, and compare them to see how\nyour sales changed over time. A contribution analysis model could show you\nwhich segment of data, such as online customers in a particular region, drove\nthe biggest change in sales from one year to the next.\n\nA *metric* is the numerical value that contribution analysis models use\nto measure and compare the changes between the test and control data. You can\nspecify the following types of metrics with a contribution analysis model:\n\n- [*Summable*](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-contribution-analysis#use_a_summable_metric): sums the values of a metric column that you specify, and then determines a total for each segment of the data.\n- [*Summable ratio*](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-contribution-analysis#use_a_summable_ratio_metric): sums the values of two numeric columns that you specify, and determines the ratio between them for each segment of the data.\n- [*Summable by category*](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-contribution-analysis#use_a_summable_by_category_metric): sums the value of a numeric column and divides it by the number of distinct values from a categorical column.\n\nA *segment* is a slice of the data identified by a given combination of\ndimension values. For example, for a contribution analysis model based on the\n`store_number`, `customer_id`, and `day` dimensions, every unique combination of\nthose dimension values represents a segment. In the following table, each row\nrepresents a different segment:\n\nTo reduce model creation time, specify an\n[apriori support threshold](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-contribution-analysis#use_an_apriori_support_threshold).\nAn apriori support threshold lets you prune small and less relevant segments\nso that the model uses only the largest and most relevant segments.\n\nAfter you have created a contribution analysis model, you can use the\n[`ML.GET_INSIGHTS` function](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-get-insights)\nto retrieve the metric information calculated by the model. The model output\nconsists of rows of insights, where each insight corresponds to a segment and\nprovides the segment's corresponding metrics.\n\nWhat's next\n-----------\n\n- [Create a contribution analysis model](/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-contribution-analysis)\n- [Get data insights from a contribution analysis model](/bigquery/docs/get-contribution-analysis-insights)"]]