---
date: '2024-12-14'
description: measure of hypothesis class capacity as cardinality of largest set it can shatter into all possible classifications.
id: Vapnik-Chrvonenkis dimension
modified: 2026-06-05 15:08:37 GMT-04:00
tags:
  - math
  - ml
title: Vapnik-Chrvonenkis dimension
created: '2024-12-14'
published: '2024-12-14'
pageLayout: default
slug: thoughts/Vapnik-Chrvonenkis-dimension
permalink: https://aarnphm.xyz/thoughts/Vapnik-Chrvonenkis-dimension.md
generator:
  quartz: v4.6.0
  hostedProvider: Cloudflare
  baseUrl: aarnphm.xyz
full: https://aarnphm.xyz/llms-full.txt
---
fancy name for the measure of size, or the cardinality of the largest sets of points that the algorithm can shatter.

> \[!definition\] Definition 1.
>
> Let $H$ be a set set family and $C$ a set. Thus, their intersection is defined as the following set:
>
> $$
> H \cap C \coloneqq  \{h \cap C \mid h \in H\}
> $$
>
> We say that set $C$ is <mark>shattered</mark> by $H$ if $H \cap C$ contains all the subsets of C, or:
>
> $$
> |H \cap C| = 2^{|C|}
> $$
>
> Thus, the VC dimension $D$ of $H$ is the cardinality of the largest set that is shattered by $H$.

Note that if arbitrary larget sets can be shattered, then the VC dimension is $\infty$

