VC dimension of hypothesis space of finite union of intervals2019 Community Moderator ElectionRelationship between VC dimension and degrees of freedomHow to set weight in Weighted Kernel K-Means?How to calculate VC-dimension?Generalization Error DefinitionHow to determine the VC Dimension of axis-aligned, origin-centered ellipses?Dimension problem in keras neural networksWhat is the exact definition of VC dimension?Why the VC dimension to this linear hypothesis equal to 3?Mapping between original feature space and an interpretable feature spacePossible Growth Function for a hypothesis set

How old can references or sources in a thesis be?

The use of multiple foreign keys on same column in SQL Server

Today is the Center

What typically incentivizes a professor to change jobs to a lower ranking university?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Is a conference paper whose proceedings will be published in IEEE Xplore counted as a publication?

String Manipulation Interpreter

Is it possible to do 50 km distance without any previous training?

Prove that NP is closed under karp reduction?

What would happen to a modern skyscraper if it rains micro blackholes?

Why was the small council so happy for Tyrion to become the Master of Coin?

Why is consensus so controversial in Britain?

What does it mean to describe someone as a butt steak?

Modeling an IP Address

Why not use SQL instead of GraphQL?

How do I create uniquely male characters?

Schoenfled Residua test shows proportionality hazard assumptions holds but Kaplan-Meier plots intersect

What are these boxed doors outside store fronts in New York?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Why do I get two different answers for this counting problem?

What is the word for reserving something for yourself before others do?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

What is the offset in a seaplane's hull?



VC dimension of hypothesis space of finite union of intervals



2019 Community Moderator ElectionRelationship between VC dimension and degrees of freedomHow to set weight in Weighted Kernel K-Means?How to calculate VC-dimension?Generalization Error DefinitionHow to determine the VC Dimension of axis-aligned, origin-centered ellipses?Dimension problem in keras neural networksWhat is the exact definition of VC dimension?Why the VC dimension to this linear hypothesis equal to 3?Mapping between original feature space and an interpretable feature spacePossible Growth Function for a hypothesis set










3












$begingroup$


I have the following concept:
$$C = leftbigcup_i=1^k(a_i, b_i): a_i, b_i in Bbb R, a_i < b_i, i=1,2,..,kright
$$

and was wondering how to determine the VC dimension of C?










share|improve this question











$endgroup$
















    3












    $begingroup$


    I have the following concept:
    $$C = leftbigcup_i=1^k(a_i, b_i): a_i, b_i in Bbb R, a_i < b_i, i=1,2,..,kright
    $$

    and was wondering how to determine the VC dimension of C?










    share|improve this question











    $endgroup$














      3












      3








      3





      $begingroup$


      I have the following concept:
      $$C = leftbigcup_i=1^k(a_i, b_i): a_i, b_i in Bbb R, a_i < b_i, i=1,2,..,kright
      $$

      and was wondering how to determine the VC dimension of C?










      share|improve this question











      $endgroup$




      I have the following concept:
      $$C = leftbigcup_i=1^k(a_i, b_i): a_i, b_i in Bbb R, a_i < b_i, i=1,2,..,kright
      $$

      and was wondering how to determine the VC dimension of C?







      machine-learning classification vc-theory






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 12:46









      Esmailian

      2,639318




      2,639318










      asked Mar 27 at 13:15









      globetroterglobetroter

      182




      182




















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          VC dimension is defined for a hypothesis space $H$, e.g. a set of binary classifiers $C rightarrow 0, 1$. For example, hypothesis space
          $$H=Bbb 1_x le theta: theta in Bbb R$$
          has VC dimension $1$, because for $C=23, 56$, it does not contain a classifier that gives $23 rightarrow 0, 56 rightarrow 1$.



          For example, a classifier from $H$ would be $f(x)=Bbb 1_x le 40$ that gives $23 rightarrow 1, 56 rightarrow 0$.



          From C to H



          As you have illustrated in the comments, we can build a hypothesis space $H$ from $C$ as follows:
          $$H=leftBbb 1_x in C: C = leftbigcup_i=1^k(a_i, b_i): a_i, b_i in Bbb R, a_i < b_i, i=1,2,..,krightright$$
          Meaning, each classifier in $H$ is a union of $k$ intervals that labels a point inside the union as $1$ and outside as $0$.



          VC dimension of this $H$ is $2k$:



          1. For VC $geq 2k$: Let $A$ be an arbitrary set , and $A rightarrow 0, 1$ be an arbitrary labeling. By going from minimum to maximum member of $A$, we can cover all adjacent $1$s with one interval, and only need to use another interval when there is a $0$ barrier. Therefore, we need $k$ intervals to cover $k$ isolated regions of $1$s. Furthermore, a set with $2k$ members has at most $k$ isolated $1$s (since to have $k+1$ isolated $1$s there should be $k$ $0$ barriers in-between), and thus, needs at most $k$ intervals.


          2. For VC $< 2k+1$ by contradiction: ordered set $A_2k+1=a_1<...<a_2k+1$, with labeling $a_k rightarrow 1_textk odd$, i.e. $a_1 rightarrow 1, a_2 rightarrow 0,...,a_2k+1 rightarrow 1$, has $k+1$ isolated $1$s which cannot be covered with $k$ intervals.






          share|improve this answer











          $endgroup$












          • $begingroup$
            Hi, thanks for the response. It turns out the problem C is actually the hypothesis set. You can label an arbitrary number x using C in the following way: if x is in some interval, say, (a_i, b_i) in C, its label is 1, otherwise, its label is -1.More concisely, only the number in the union of k intervals would be labeled 1.
            $endgroup$
            – globetroter
            Mar 28 at 5:55










          • $begingroup$
            @LarsErik That works! Updated.
            $endgroup$
            – Esmailian
            Mar 28 at 10:54











          Your Answer





          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "557"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48081%2fvc-dimension-of-hypothesis-space-of-finite-union-of-intervals%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0












          $begingroup$

          VC dimension is defined for a hypothesis space $H$, e.g. a set of binary classifiers $C rightarrow 0, 1$. For example, hypothesis space
          $$H=Bbb 1_x le theta: theta in Bbb R$$
          has VC dimension $1$, because for $C=23, 56$, it does not contain a classifier that gives $23 rightarrow 0, 56 rightarrow 1$.



          For example, a classifier from $H$ would be $f(x)=Bbb 1_x le 40$ that gives $23 rightarrow 1, 56 rightarrow 0$.



          From C to H



          As you have illustrated in the comments, we can build a hypothesis space $H$ from $C$ as follows:
          $$H=leftBbb 1_x in C: C = leftbigcup_i=1^k(a_i, b_i): a_i, b_i in Bbb R, a_i < b_i, i=1,2,..,krightright$$
          Meaning, each classifier in $H$ is a union of $k$ intervals that labels a point inside the union as $1$ and outside as $0$.



          VC dimension of this $H$ is $2k$:



          1. For VC $geq 2k$: Let $A$ be an arbitrary set , and $A rightarrow 0, 1$ be an arbitrary labeling. By going from minimum to maximum member of $A$, we can cover all adjacent $1$s with one interval, and only need to use another interval when there is a $0$ barrier. Therefore, we need $k$ intervals to cover $k$ isolated regions of $1$s. Furthermore, a set with $2k$ members has at most $k$ isolated $1$s (since to have $k+1$ isolated $1$s there should be $k$ $0$ barriers in-between), and thus, needs at most $k$ intervals.


          2. For VC $< 2k+1$ by contradiction: ordered set $A_2k+1=a_1<...<a_2k+1$, with labeling $a_k rightarrow 1_textk odd$, i.e. $a_1 rightarrow 1, a_2 rightarrow 0,...,a_2k+1 rightarrow 1$, has $k+1$ isolated $1$s which cannot be covered with $k$ intervals.






          share|improve this answer











          $endgroup$












          • $begingroup$
            Hi, thanks for the response. It turns out the problem C is actually the hypothesis set. You can label an arbitrary number x using C in the following way: if x is in some interval, say, (a_i, b_i) in C, its label is 1, otherwise, its label is -1.More concisely, only the number in the union of k intervals would be labeled 1.
            $endgroup$
            – globetroter
            Mar 28 at 5:55










          • $begingroup$
            @LarsErik That works! Updated.
            $endgroup$
            – Esmailian
            Mar 28 at 10:54















          0












          $begingroup$

          VC dimension is defined for a hypothesis space $H$, e.g. a set of binary classifiers $C rightarrow 0, 1$. For example, hypothesis space
          $$H=Bbb 1_x le theta: theta in Bbb R$$
          has VC dimension $1$, because for $C=23, 56$, it does not contain a classifier that gives $23 rightarrow 0, 56 rightarrow 1$.



          For example, a classifier from $H$ would be $f(x)=Bbb 1_x le 40$ that gives $23 rightarrow 1, 56 rightarrow 0$.



          From C to H



          As you have illustrated in the comments, we can build a hypothesis space $H$ from $C$ as follows:
          $$H=leftBbb 1_x in C: C = leftbigcup_i=1^k(a_i, b_i): a_i, b_i in Bbb R, a_i < b_i, i=1,2,..,krightright$$
          Meaning, each classifier in $H$ is a union of $k$ intervals that labels a point inside the union as $1$ and outside as $0$.



          VC dimension of this $H$ is $2k$:



          1. For VC $geq 2k$: Let $A$ be an arbitrary set , and $A rightarrow 0, 1$ be an arbitrary labeling. By going from minimum to maximum member of $A$, we can cover all adjacent $1$s with one interval, and only need to use another interval when there is a $0$ barrier. Therefore, we need $k$ intervals to cover $k$ isolated regions of $1$s. Furthermore, a set with $2k$ members has at most $k$ isolated $1$s (since to have $k+1$ isolated $1$s there should be $k$ $0$ barriers in-between), and thus, needs at most $k$ intervals.


          2. For VC $< 2k+1$ by contradiction: ordered set $A_2k+1=a_1<...<a_2k+1$, with labeling $a_k rightarrow 1_textk odd$, i.e. $a_1 rightarrow 1, a_2 rightarrow 0,...,a_2k+1 rightarrow 1$, has $k+1$ isolated $1$s which cannot be covered with $k$ intervals.






          share|improve this answer











          $endgroup$












          • $begingroup$
            Hi, thanks for the response. It turns out the problem C is actually the hypothesis set. You can label an arbitrary number x using C in the following way: if x is in some interval, say, (a_i, b_i) in C, its label is 1, otherwise, its label is -1.More concisely, only the number in the union of k intervals would be labeled 1.
            $endgroup$
            – globetroter
            Mar 28 at 5:55










          • $begingroup$
            @LarsErik That works! Updated.
            $endgroup$
            – Esmailian
            Mar 28 at 10:54













          0












          0








          0





          $begingroup$

          VC dimension is defined for a hypothesis space $H$, e.g. a set of binary classifiers $C rightarrow 0, 1$. For example, hypothesis space
          $$H=Bbb 1_x le theta: theta in Bbb R$$
          has VC dimension $1$, because for $C=23, 56$, it does not contain a classifier that gives $23 rightarrow 0, 56 rightarrow 1$.



          For example, a classifier from $H$ would be $f(x)=Bbb 1_x le 40$ that gives $23 rightarrow 1, 56 rightarrow 0$.



          From C to H



          As you have illustrated in the comments, we can build a hypothesis space $H$ from $C$ as follows:
          $$H=leftBbb 1_x in C: C = leftbigcup_i=1^k(a_i, b_i): a_i, b_i in Bbb R, a_i < b_i, i=1,2,..,krightright$$
          Meaning, each classifier in $H$ is a union of $k$ intervals that labels a point inside the union as $1$ and outside as $0$.



          VC dimension of this $H$ is $2k$:



          1. For VC $geq 2k$: Let $A$ be an arbitrary set , and $A rightarrow 0, 1$ be an arbitrary labeling. By going from minimum to maximum member of $A$, we can cover all adjacent $1$s with one interval, and only need to use another interval when there is a $0$ barrier. Therefore, we need $k$ intervals to cover $k$ isolated regions of $1$s. Furthermore, a set with $2k$ members has at most $k$ isolated $1$s (since to have $k+1$ isolated $1$s there should be $k$ $0$ barriers in-between), and thus, needs at most $k$ intervals.


          2. For VC $< 2k+1$ by contradiction: ordered set $A_2k+1=a_1<...<a_2k+1$, with labeling $a_k rightarrow 1_textk odd$, i.e. $a_1 rightarrow 1, a_2 rightarrow 0,...,a_2k+1 rightarrow 1$, has $k+1$ isolated $1$s which cannot be covered with $k$ intervals.






          share|improve this answer











          $endgroup$



          VC dimension is defined for a hypothesis space $H$, e.g. a set of binary classifiers $C rightarrow 0, 1$. For example, hypothesis space
          $$H=Bbb 1_x le theta: theta in Bbb R$$
          has VC dimension $1$, because for $C=23, 56$, it does not contain a classifier that gives $23 rightarrow 0, 56 rightarrow 1$.



          For example, a classifier from $H$ would be $f(x)=Bbb 1_x le 40$ that gives $23 rightarrow 1, 56 rightarrow 0$.



          From C to H



          As you have illustrated in the comments, we can build a hypothesis space $H$ from $C$ as follows:
          $$H=leftBbb 1_x in C: C = leftbigcup_i=1^k(a_i, b_i): a_i, b_i in Bbb R, a_i < b_i, i=1,2,..,krightright$$
          Meaning, each classifier in $H$ is a union of $k$ intervals that labels a point inside the union as $1$ and outside as $0$.



          VC dimension of this $H$ is $2k$:



          1. For VC $geq 2k$: Let $A$ be an arbitrary set , and $A rightarrow 0, 1$ be an arbitrary labeling. By going from minimum to maximum member of $A$, we can cover all adjacent $1$s with one interval, and only need to use another interval when there is a $0$ barrier. Therefore, we need $k$ intervals to cover $k$ isolated regions of $1$s. Furthermore, a set with $2k$ members has at most $k$ isolated $1$s (since to have $k+1$ isolated $1$s there should be $k$ $0$ barriers in-between), and thus, needs at most $k$ intervals.


          2. For VC $< 2k+1$ by contradiction: ordered set $A_2k+1=a_1<...<a_2k+1$, with labeling $a_k rightarrow 1_textk odd$, i.e. $a_1 rightarrow 1, a_2 rightarrow 0,...,a_2k+1 rightarrow 1$, has $k+1$ isolated $1$s which cannot be covered with $k$ intervals.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 28 at 12:48

























          answered Mar 27 at 14:41









          EsmailianEsmailian

          2,639318




          2,639318











          • $begingroup$
            Hi, thanks for the response. It turns out the problem C is actually the hypothesis set. You can label an arbitrary number x using C in the following way: if x is in some interval, say, (a_i, b_i) in C, its label is 1, otherwise, its label is -1.More concisely, only the number in the union of k intervals would be labeled 1.
            $endgroup$
            – globetroter
            Mar 28 at 5:55










          • $begingroup$
            @LarsErik That works! Updated.
            $endgroup$
            – Esmailian
            Mar 28 at 10:54
















          • $begingroup$
            Hi, thanks for the response. It turns out the problem C is actually the hypothesis set. You can label an arbitrary number x using C in the following way: if x is in some interval, say, (a_i, b_i) in C, its label is 1, otherwise, its label is -1.More concisely, only the number in the union of k intervals would be labeled 1.
            $endgroup$
            – globetroter
            Mar 28 at 5:55










          • $begingroup$
            @LarsErik That works! Updated.
            $endgroup$
            – Esmailian
            Mar 28 at 10:54















          $begingroup$
          Hi, thanks for the response. It turns out the problem C is actually the hypothesis set. You can label an arbitrary number x using C in the following way: if x is in some interval, say, (a_i, b_i) in C, its label is 1, otherwise, its label is -1.More concisely, only the number in the union of k intervals would be labeled 1.
          $endgroup$
          – globetroter
          Mar 28 at 5:55




          $begingroup$
          Hi, thanks for the response. It turns out the problem C is actually the hypothesis set. You can label an arbitrary number x using C in the following way: if x is in some interval, say, (a_i, b_i) in C, its label is 1, otherwise, its label is -1.More concisely, only the number in the union of k intervals would be labeled 1.
          $endgroup$
          – globetroter
          Mar 28 at 5:55












          $begingroup$
          @LarsErik That works! Updated.
          $endgroup$
          – Esmailian
          Mar 28 at 10:54




          $begingroup$
          @LarsErik That works! Updated.
          $endgroup$
          – Esmailian
          Mar 28 at 10:54

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Data Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48081%2fvc-dimension-of-hypothesis-space-of-finite-union-of-intervals%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Quoting Keynes in a lectureIs differentiated instruction permitted by universities?How to make students learn prerequisitesUnsatisfactory Instructor Evaluations: balancing of expectations of engineering studentsWhat is the difference between a “statistician”, “applied statistician”, and an academic applying advanced stats within their field?Listing in reference section, but not quotingHow to efficiently use time while preparing for a class?Graduate Admissions: Teaching Emphasisstrategies for sharing teaching information with universities I don't personally have contacts withIs there an efficient way to give a large class of students feedback about their assignments?Is it unreasonable to expect students to read the lecture notes before attending the first class?

          Rank groups within a grouped sequence of TRUE/FALSE and NAGrouping functions (tapply, by, aggregate) and the *apply familyCharacters counting and subletting specific patternsWhat is the purpose of setting a key in data.table?data.table vs dplyr: can one do something well the other can't or does poorly?how to make a bar plot for a list of dataframes?How to group by unique values in a list in RPandas - Alternative to rank() function that gives unique ordinal ranks for a columnRank within group in for loop in RData transformation: from dyadic to observational data in RGetting map from purrr to work with paste0

          Are all passive ability checks floors for active ability checks?Does passive perception supersede active perception?Which skills can be used passively?Active Opposition with Free-Form Professions in Fate5E Trap/Ambush/Stealth Mechanics VS Passive Perception ConfusionInteraction between perception and stealth in obscured conditionsHow does Keen Sight affect Passive Perception?Are all d20 rolls either attacks, saves or ability checks?Can players declare that they are making a specific ability check?Can I see a Hidden creature that is not obscured at all?Can a Stealth check ever be made passively?Is this alternate version of the Observant feat balanced?What is the minimum amount of skill points per HD?