Copy the prompt and paste it into a new session in Claude Science. By default, Claude asks with a permission card before it runs code or installs packages.
Prompt
In 1971 the economist Thomas Schelling showed, with chips on a checkerboard, that a city can segregate sharply even when nobody asks for more than an even mix. Recreate the textbook computer version, which segregates at even milder demands. Fill a 50 × 50 grid at random with 1,125 blue and 1,125 orange households, leaving 250 cells empty. A household is content if at least 30 % of its occupied neighboring cells (the 8 around it, fewer at the edges) hold its own color. With 8 occupied neighbors, that means at least 3 of its own color, so it accepts 5 of the other. Each discontent household moves to a random empty cell; repeat until everyone is content. Show the grid before and after and measure the average share of like-colored neighbors: it starts near 50 %. Where does it end? How many points is that above the random board, and how many above the 30 % they asked for?Then replace the 30 % by 10 %, 20 %, up to 70 % and plot what households get against what they ask for. Judge each result against the random board's 50 %, not against the demand: 10 % and 20 % stay within 10 points of it, the largest jump (about 18 points) is from 20 % to 30 %, and separation is nearly total from 60 %. Allow 500 rounds. Title each figure with what it shows. Give changes between thresholds in percentage points rather than in words like "half" or "triple". Explain each step as you would to an undergraduate.
Ask for 30% same-color neighbors, end up with about 75%. On a 50 × 50 grid filled at random with 1,125 blue and 1,125 orange households and 250 empty cells (about 50% of neighbors alike), only about 18% of households are discontent. Yet once each discontent one has moved to a random empty cell (roughly 1,000 moves in 10 to 20 rounds), the board is a patchwork of 1-color neighborhoods. Redone for demands of 10% to 70%, 20 random boards each: 10% leaves the random board as it is (51%), 20% lifts it to 57%, 50% gives 88% (about 7 like neighbors for each unlike one), and separation is nearly total from 60% (98% at 60%, 99.6% at 70%). The textbook computer version of Thomas Schelling’s 1971 idea.
This example doesn’t download any data.Reference: T. C. Schelling, ‘Dynamic models of segregation’, Journal of Mathematical Sociology 1(2), 143–186 (1971)
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Claude.ai Documentation","colors":{"primary":"#0E0E0E","light":"#D4A27F","dark":"#0E0E0E"},"logo":{"light":"https://mintcdn.com/claude-ai/1fyDNLAICe3KG6rB/logo/light.svg?fit=max\u0026auto=format\u0026n=1fyDNLAICe3KG6rB\u0026q=85\u0026s=e870c19cb781d8a7c7b7d19de53b0a10","dark":"https://mintcdn.com/claude-ai/1fyDNLAICe3KG6rB/logo/dark.svg?fit=max\u0026auto=format\u0026n=1fyDNLAICe3KG6rB\u0026q=85\u0026s=80cc0b06d8fd9aeefec8acb226de6866"},"favicon":"https://mintcdn.com/claude-ai/N9YeVEPVxANlc2We/favicon.ico?fit=max\u0026auto=format\u0026n=N9YeVEPVxANlc2We\u0026q=85\u0026s=a22e48fa0189917f9be516d4a555898c","background":{"color":{"light":"#FDFDF7","dark":"#09090B"}},"navbar":{"links":[{"href":"https://support.anthropic.com","label":"Support"}],"primary":{"type":"button","label":"Go to Claude","href":"https://claude.ai"}},"footer":{"socials":{"x":"https://x.com/AnthropicAI","linkedin":"https://www.linkedin.com/company/anthropicresearch"},"links":[{"header":"Company","items":[{"label":"Anthropic","href":"https://www.anthropic.com/company"},{"label":"Careers","href":"https://www.anthropic.com/careers"},{"label":"Economic Futures","href":"https://www.anthropic.com/economic-futures"},{"label":"Research","href":"https://www.anthropic.com/research"},{"label":"News","href":"https://www.anthropic.com/news"},{"label":"Trust center","href":"https://trust.anthropic.com/"},{"label":"Transparency","href":"https://www.anthropic.com/transparency"}]},{"header":"Help and security","items":[{"label":"Availability","href":"https://www.anthropic.com/supported-countries"},{"label":"Status","href":"https://status.anthropic.com/"},{"label":"Support center","href":"https://support.claude.com/"}]},{"header":"Learn","items":[{"label":"Courses","href":"https://academy.claude.com/"},{"label":"MCP connectors","href":"https://claude.com/partners/mcp"},{"label":"Customer stories","href":"https://www.claude.com/customers"},{"label":"Engineering blog","href":"https://www.anthropic.com/engineering"},{"label":"Events","href":"https://www.anthropic.com/events"},{"label":"Powered by Claude","href":"https://claude.com/partners/powered-by-claude"},{"label":"Service partners","href":"https://claude.com/partners/services"},{"label":"Startups program","href":"https://claude.com/programs/startups"}]},{"header":"Terms and policies","items":[{"label":"Privacy policy","href":"https://www.anthropic.com/legal/privacy"},{"label":"Disclosure policy","href":"https://www.anthropic.com/responsible-disclosure-policy"},{"label":"Usage policy","href":"https://www.anthropic.com/legal/aup"},{"label":"Commercial terms","href":"https://www.anthropic.com/legal/commercial-terms"},{"label":"Consumer terms","href":"https://www.anthropic.com/legal/consumer-terms"}]}]},"seo":{"metatags":{"canonical":"https://claude.com/docs"}},"fonts":{"family":"Anthropic Sans"},"contextual":{"options":["copy","view","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"claude-ai","hasAudioNarration":false,"actualSubdomain":"claude-ai","customDomains":["claude.com"],"gitSource":{"type":"github","owner":"anthropics","repo":"claude-ai-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aecd2323e88da70853022de","collectionId":"6ad27b7d-e90c-4d06-9bdb-9519e02f46e8","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aecd2323e88da70853022de"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aed151869a2ec0c40a68b0f","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"Claude Tag","count":76},{"language":"default","tag":"For administrators","count":61},{"language":"default","tag":"Claude for Government","count":44},{"language":"default","tag":"Claude on third-party platforms","count":42},{"language":"default","tag":"Claude Desktop","count":42},{"language":"default","tag":"Claude Science","count":41},{"language":"default","tag":"Build for Claude","count":30},{"language":"default","tag":"Set up Claude Tag","count":30},{"language":"default","tag":"Use Claude Science","count":23},{"language":"default","tag":"Customize Claude","count":22}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/docs/_mintlify/custom/claude-ai/f864c4801ebb83ca/style.css"}],"page":{"pagePath":"claude-science/example-gallery/soc-schelling-small","slug":"/claude-science/example-gallery/soc-schelling-small","pageMetadata":{"title":"Schelling's segregation model: ask for 30% same-color neighbors, end up with 75%","sidebarTitle":"Schelling's segregation model","description":"Ask for 30% same-color neighbors, end up with about 75%: the textbook computer version of Thomas Schelling's 1971 idea.","keywords":["sociology"],"href":"/claude-science/example-gallery/soc-schelling-small"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Ask for 30% same-color neighbors, end up with about 75%: the textbook computer version of Thomas Schelling’s 1971 idea.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,OptimizedImage}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(`div`,{className:`example-gallery-page`,children:_jsxs(Frame,{children:[_jsx(OptimizedImage,{className:`mint-block dark:mint-hidden`,src:`https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-light.webp?fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=9150fb06019e6cb83311d70c1493c396`,alt:`A random board of blue and orange households (49% of neighbors alike), the same board settled into one-color patches (75%), and a curve of the share alike at the end against the demand, 51.3% to 99.6%.`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`596`,height:`596`,\"data-path\":`images/claude-science/example-gallery/soc-schelling-small-full-light.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-light.webp?w=280\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=e5d4d52c1eba2ebd4d87441fe8a9b8cc 280w, https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-light.webp?w=560\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=0dc063c40bd7ce76b2460e00fa845f83 560w, https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-light.webp?w=840\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=c35edba104855bb94ff9cd83abfdaa60 840w, https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-light.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=664b26910fb03a81a281615c9c16d451 1100w, https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-light.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=e04fbd51422321449e2029503b6f6f09 1650w, https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-light.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=dce765e163f099ac711e0e83d4f0eb2b 2500w`}),_jsx(OptimizedImage,{className:`mint-hidden dark:mint-block`,src:`https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-dark.webp?fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=d93cb22a2729f2eb5fb4d690c0d82206`,alt:`A random board of blue and orange households (49% of neighbors alike), the same board settled into one-color patches (75%), and a curve of the share alike at the end against the demand, 51.3% to 99.6%.`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`596`,height:`596`,\"data-path\":`images/claude-science/example-gallery/soc-schelling-small-full-dark.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-dark.webp?w=280\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=f409c0c524cffe2cadf5ff8245967425 280w, https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-dark.webp?w=560\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=e86e7188713f85385685177c36dd03e6 560w, https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-dark.webp?w=840\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=2c1667fcea5eddb7c27f893d0f844030 840w, https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-dark.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=e8058a8bcc68dcbd77f2d20318c5e758 1100w, https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-dark.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=901c5f82ff7a81daf7e21f40373190a8 1650w, https://mintcdn.com/claude-ai/F2QP9ubtYgT0edFI/images/claude-science/example-gallery/soc-schelling-small-full-dark.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=F2QP9ubtYgT0edFI\u0026q=85\u0026s=f243db4baf14a3dec7e235de22daf238 2500w`})]})}),`\n`,_jsxs(_components.p,{children:[`The numbers in your session might differ from this picture and from the summary in `,_jsx(_components.a,{href:`#reference-analysis`,children:`Reference analysis`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`prompt`,children:`Prompt`}),`\n`,_jsxs(_components.p,{children:[`Copy the prompt and paste it into a new session in `,_jsx(_components.a,{href:`/claude-science/overview`,children:`Claude Science`}),`. By default, Claude asks with a `,_jsx(_components.a,{href:`/claude-science/core-concepts#permission-cards`,children:`permission card`}),` before it runs code or installs packages.`]}),`\n`,_jsx(CodeBlock,{filename:`Prompt`,wrap:`true`,numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`In 1971 the economist Thomas Schelling showed, with chips on a checkerboard, that a city can segregate sharply even when nobody asks for more than an even mix. Recreate the textbook computer version, which segregates at even milder demands. Fill a 50 × 50 grid at random with 1,125 blue and 1,125 orange households, leaving 250 cells empty. A household is content if at least 30 % of its occupied neighboring cells (the 8 around it, fewer at the edges) hold its own color. With 8 occupied neighbors, that means at least 3 of its own color, so it accepts 5 of the other. Each discontent household moves to a random empty cell; repeat until everyone is content. Show the grid before and after and measure the average share of like-colored neighbors: it starts near 50 %. Where does it end? How many points is that above the random board, and how many above the 30 % they asked for?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Then replace the 30 % by 10 %, 20 %, up to 70 % and plot what households get against what they ask for. Judge each result against the random board's 50 %, not against the demand: 10 % and 20 % stay within 10 points of it, the largest jump (about 18 points) is from 20 % to 30 %, and separation is nearly total from 60 %. Allow 500 rounds. Title each figure with what it shows. Give changes between thresholds in percentage points rather than in words like \"half\" or \"triple\". Explain each step as you would to an undergraduate.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`reference-analysis`,children:`Reference analysis`}),`\n`,_jsx(_components.p,{children:`Ask for 30% same-color neighbors, end up with about 75%. On a 50 × 50 grid filled at random with 1,125 blue and 1,125 orange households and 250 empty cells (about 50% of neighbors alike), only about 18% of households are discontent. Yet once each discontent one has moved to a random empty cell (roughly 1,000 moves in 10 to 20 rounds), the board is a patchwork of 1-color neighborhoods. Redone for demands of 10% to 70%, 20 random boards each: 10% leaves the random board as it is (51%), 20% lifts it to 57%, 50% gives 88% (about 7 like neighbors for each unlike one), and separation is nearly total from 60% (98% at 60%, 99.6% at 70%). The textbook computer version of Thomas Schelling’s 1971 idea.`}),`\n`,_jsx(Heading,{level:`2`,id:`data`,children:`Data`}),`\n`,_jsx(_components.p,{children:`This example doesn’t download any data.`}),`\n`,_jsx(_components.p,{children:`Reference: T. C. Schelling, ‘Dynamic models of segregation’, Journal of Mathematical Sociology 1(2), 143–186 (1971)`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Schelling's segregation model: ask for 30% same-color neighbors, end up with 75%","sidebarTitle":"Schelling's segregation model","description":"Ask for 30% same-color neighbors, end up with about 75%: the textbook computer version of Thomas Schelling's 1971 idea.","keywords":["sociology"],"href":"/claude-science/example-gallery/soc-schelling-small"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prompt","slug":"prompt","depth":2,"children":[]},{"title":"Reference analysis","slug":"reference-analysis","depth":2,"children":[]},{"title":"Data","slug":"data","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/claude-ai/b857db804a3a9481/desktop-app-nav.js"],"dynamicCss":".mint-block {\n display: block\n}\n.mint-hidden {\n display: none\n}\n.dark\\:mint-block:is(.dark *) {\n display: block\n}\n.dark\\:mint-hidden:is(.dark *) {\n display: none\n}","subdomain":"claude-ai","siteName":"Claude.ai Documentation","title":"Schelling's segregation model: ask for 30% same-color neighbors, end up with 75% - Claude.ai Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-16T16:02:20.294Z","originalFileLocation":"claude-science/example-gallery/soc-schelling-small.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Ask for 30% same-color neighbors, end up with about 75%: the textbook computer version of Thomas Schelling\u0026#x27;s 1971 idea.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Claude.ai Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Schelling\u0026#x27;s segregation model: ask for 30% same-color neighbors, end up with 75% - Claude.ai Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Ask for 30% same-color neighbors, end up with about 75%: the textbook computer version of Thomas Schelling\u0026#x27;s 1971 idea.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Claude.ai Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://claude.com/docs/claude-science/example-gallery/soc-schelling-small\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://claude-ai.mintlify.site/docs/_mintlify/api/og/v2?division=Example+gallery\u0026amp;title=Schelling%27s+segregation+model%3A+ask+for+30%25+same-color+neighbors%2C+end+up+with+75%25\u0026amp;description=Ask+for+30%25+same-color+neighbors%2C+end+up+with+about+75%25%3A+the+textbook+computer+version+of+Thomas+Schelling%27s+1971+idea.\u0026amp;theme=c937feb09b37748e448783d0\u0026amp;signature=38fc383ae8c6b5afd34b64f4f770ded49efcce6c1313011e6a1aac43f4672270\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Schelling\u0026#x27;s segregation model: ask for 30% same-color neighbors, end up with 75% - Claude.ai Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Ask for 30% same-color neighbors, end up with about 75%: the textbook computer version of Thomas Schelling\u0026#x27;s 1971 idea.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://claude-ai.mintlify.site/docs/_mintlify/api/og/v2?division=Example+gallery\u0026amp;title=Schelling%27s+segregation+model%3A+ask+for+30%25+same-color+neighbors%2C+end+up+with+75%25\u0026amp;description=Ask+for+30%25+same-color+neighbors%2C+end+up+with+about+75%25%3A+the+textbook+computer+version+of+Thomas+Schelling%27s+1971+idea.\u0026amp;theme=c937feb09b37748e448783d0\u0026amp;signature=38fc383ae8c6b5afd34b64f4f770ded49efcce6c1313011e6a1aac43f4672270\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Claude.ai Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0E0E0E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://claude.com/docs/claude-science/example-gallery/soc-schelling-small\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/claude-science/example-gallery/soc-schelling-small.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://claude.com/#organization\",\"name\":\"Claude.ai Documentation\",\"url\":\"https://claude.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/claude-ai/1fyDNLAICe3KG6rB/logo/light.svg?fit=max\u0026auto=format\u0026n=1fyDNLAICe3KG6rB\u0026q=85\u0026s=e870c19cb781d8a7c7b7d19de53b0a10\"}},{\"@type\":\"WebSite\",\"@id\":\"https://claude.com/docs#website\",\"name\":\"Claude.ai Documentation\",\"url\":\"https://claude.com/docs\",\"publisher\":{\"@id\":\"https://claude.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://claude.com/docs/claude-science/example-gallery/soc-schelling-small#webpage\",\"url\":\"https://claude.com/docs/claude-science/example-gallery/soc-schelling-small\",\"name\":\"Schelling's segregation model: ask for 30% same-color neighbors, end up with 75%\",\"description\":\"Ask for 30% same-color neighbors, end up with about 75%: the textbook computer version of Thomas Schelling's 1971 idea.\",\"dateModified\":\"2026-10-16T16:02:20.294Z\",\"isPartOf\":{\"@id\":\"https://claude.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://claude.com/docs/claude-science/example-gallery/soc-schelling-small#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://claude.com/docs/claude-science/example-gallery/soc-schelling-small#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Use Claude Science\",\"item\":\"https://claude.com/docs/claude-science/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Example gallery\",\"item\":\"https://claude.com/docs/claude-science/example-gallery\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Schelling's segregation model: ask for 30% same-color neighbors, end up with 75%\",\"item\":\"https://claude.com/docs/claude-science/example-gallery/soc-schelling-small\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://claude.com/docs/claude-science/example-gallery/soc-schelling-small#article\",\"headline\":\"Schelling's segregation model: ask for 30% same-color neighbors, end up with 75%\",\"name\":\"Schelling's segregation model: ask for 30% same-color neighbors, end up with 75%\",\"description\":\"Ask for 30% same-color neighbors, end up with about 75%: the textbook computer version of Thomas Schelling's 1971 idea.\",\"url\":\"https://claude.com/docs/claude-science/example-gallery/soc-schelling-small\",\"mainEntityOfPage\":{\"@id\":\"https://claude.com/docs/claude-science/example-gallery/soc-schelling-small#webpage\"},\"dateModified\":\"2026-10-16T16:02:20.294Z\",\"keywords\":\"sociology\",\"publisher\":{\"@id\":\"https://claude.com/#organization\"},\"isPartOf\":{\"@id\":\"https://claude.com/docs#website\"}}]}\u003c/script>","siteName":"Claude.ai Documentation","nav":{"global":null,"tabs":[{"tab":"Welcome","pages":[{"title":"Welcome","href":""}]},{"tab":"Customize Claude","pages":[{"title":"Customize Claude","href":"/extend/overview"}]},{"tab":"Build for Claude","pages":[{"title":"Build for Claude","href":"/build/overview"}]},{"tab":"Cowork","pages":[{"title":"Cowork","href":"/cowork/overview"}]},{"tab":"Claude Tag","pages":[{"title":"Claude Tag","href":"/claude-tag/overview"}]},{"tab":"Claude for M365","pages":[{"title":"Claude for M365","href":"/office-agents/overview"}]},{"tab":"Claude Science","groups":[{"group":"Use Claude Science","pages":[{"title":"Claude Science","sidebarTitle":"Claude Science","href":"/claude-science/overview"},{"title":"Get started","sidebarTitle":"Get started","href":"/claude-science/get-started"},{"title":"Claude Science in its own window on macOS","sidebarTitle":"Mac app window","href":"/claude-science/mac-app-window"},{"title":"Update Claude Science","sidebarTitle":"Update","href":"/claude-science/update-claude-science"},{"title":"Run on a remote Linux server","sidebarTitle":"Run on a remote server","href":"/claude-science/run-on-remote-linux-server"},{"title":"Core concepts","sidebarTitle":"Core concepts","href":"/claude-science/core-concepts"},{"group":"Example gallery","root":{"title":"Example gallery","mode":"wide","href":"/claude-science/example-gallery"},"pages":[{"title":"Genetic drift in a bottle: Buri's 107 fruit-fly populations","sidebarTitle":"Genetic drift in a bottle","href":"/claude-science/example-gallery/bio-drift"},{"title":"A titration curve from the full equilibrium: which indicator finds the equivalence point?","sidebarTitle":"Titration curve","href":"/claude-science/example-gallery/chem-titration"},{"title":"A first Kaplan–Meier curve: the 1963 leukemia trial of 6-MP","sidebarTitle":"Kaplan–Meier curve","href":"/claude-science/example-gallery/clin-km"},{"title":"PageRank on a web of 11 pages: why 1 good link beats 6 weak ones","sidebarTitle":"PageRank, 11 pages","href":"/claude-science/example-gallery/cs-pagerank-tiny"},{"title":"A first finite-element model: a clamped steel ruler bends and vibrates","sidebarTitle":"Cantilever beam","href":"/claude-science/example-gallery/eng-beam"},{"title":"A first X-ray diffraction pattern: why silicon shows 6 peaks and salt 9","sidebarTitle":"X-ray diffraction","href":"/claude-science/example-gallery/mat-xrd"},{"title":"The Ulam spiral: are the primes' diagonal streaks real?","sidebarTitle":"Ulam spiral","href":"/claude-science/example-gallery/math-ulam"},{"title":"The double slit, one electron at a time","sidebarTitle":"Electron double slit","description":"Rebuild the picture of Tonomura's 1989 experiment with an ideal double slit: each electron lands as 1 random dot, yet fringes 10.7 µm apart build up.","href":"/claude-science/example-gallery/phys-doubleslit"},{"title":"Schelling's segregation model: ask for 30% same-color neighbors, end up with 75%","sidebarTitle":"Schelling's segregation model","href":"/claude-science/example-gallery/soc-schelling-small"}]},{"title":"Safeguards","sidebarTitle":"Safeguards","description":"What happens when a model's safeguards flag a message, how to switch models automatically, and how to choose a use case under the Life Sciences Verification Program (beta).","href":"/claude-science/safeguards"},{"title":"Auto mode","sidebarTitle":"Auto mode","href":"/claude-science/auto-mode"},{"title":"Use Claude Science on more than one computer","sidebarTitle":"Multiple computers","href":"/claude-science/multiple-computers"},{"title":"Artifacts in Claude Science","sidebarTitle":"Artifacts","href":"/claude-science/artifacts"},{"title":"Comments","sidebarTitle":"Comments","href":"/claude-science/comments"},{"title":"The reviewer","sidebarTitle":"The reviewer","href":"/claude-science/the-reviewer"},{"title":"Tools and environments","sidebarTitle":"Tools and environments","href":"/claude-science/tools-and-environments"},{"title":"Troubleshoot Claude Science","sidebarTitle":"Troubleshooting","href":"/claude-science/troubleshooting"}]},{"group":"Integrations \u0026 skills","pages":[{"title":"Connectors and skills","sidebarTitle":"Connectors and skills","href":"/claude-science/connectors-and-skills"},{"title":"Remote compute clusters","sidebarTitle":"Remote compute clusters","href":"/claude-science/remote-compute-clusters"},{"title":"Compute providers","sidebarTitle":"Compute providers","href":"/claude-science/compute-providers"},{"title":"Cloud storage","sidebarTitle":"Cloud storage","href":"/claude-science/cloud-storage"},{"title":"Literature access","sidebarTitle":"Literature access","href":"/claude-science/literature-access"},{"title":"Custom connectors","sidebarTitle":"Custom connectors","href":"/claude-science/custom-connectors"}]},{"group":"For administrators","pages":[{"title":"Enable Claude Science","sidebarTitle":"Enable Claude Science","href":"/claude-science/enable-claude-science"},{"title":"How Claude Science works with your data","sidebarTitle":"How Claude Science works with your data","href":"/claude-science/how-claude-science-works-with-your-data"},{"title":"Admin controls","sidebarTitle":"Admin controls","href":"/claude-science/admin-controls"},{"title":"Manage Claude Science on devices","sidebarTitle":"Manage on devices","href":"/claude-science/manage-on-devices"},{"title":"Use Claude Science on a corporate network","sidebarTitle":"Corporate networks","href":"/claude-science/corporate-networks"},{"title":"Network requirements","sidebarTitle":"Network requirements","href":"/claude-science/network-requirements"},{"title":"Monitor Claude Science usage","sidebarTitle":"Monitor usage","href":"/claude-science/monitor-usage"}]},{"group":"Reference","pages":[{"title":"Glossary","sidebarTitle":"Glossary","href":"/claude-science/glossary"},{"title":"Command line settings","sidebarTitle":"Command line settings","href":"/claude-science/command-line-settings"},{"title":"Configuration file reference","sidebarTitle":"Configuration reference","href":"/claude-science/configuration-file-reference"}]},{"group":"Resources","pages":[{"title":"Claude Science changelog","sidebarTitle":"Changelog","href":"/claude-science/changelog"},{"title":"Legal and compliance","sidebarTitle":"Legal and compliance","href":"/claude-science/legal-and-compliance"}]}]},{"tab":"Claude on third-party platforms","pages":[{"title":"Claude on third-party platforms","href":"/third-party/claude-desktop/overview"}]},{"tab":"Claude self-hosted","hidden":true,"pages":[{"title":"Claude self-hosted","href":"/third-party/claude-desktop/self-hosted/overview"}]},{"tab":"Claude for Government","pages":[{"title":"Claude for Government","href":"/government/overview"}]}]},"basePath":"","title":"Schelling's segregation model: ask for 30% same-color neighbors, end up with 75% - Claude.ai Documentation","buildId":"dpl_CEsowfH15TDzsBT2BFbX312Be4Ct","deploymentId":"dpl_CEsowfH15TDzsBT2BFbX312Be4Ct","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-E5itAVSN.js","DynamicMarkdown-DORtg_Te.js","zoom-image-lightbox-OBZHPeVn.js","lightbox-handle-r17bVUz3.js"]}