<<

Psychonomic Bulletin & Review 2010, 17 (5), 624-629 doi:10.3758/PBR.17.5.624

Br i e f Re p o r t s Subjective and natural scene

An n e S. Hs u University College London, London, England

Th o m a s L. Gr i f f i t h s University of California, Berkeley, California

a n d

Et ha n Sc h r e i b e r University of California, Los Angeles, California

Accounts of subjective randomness suggest that people consider a stimulus random when they cannot detect any regularities characterizing the structure of that stimulus. We explored the possibility that the regularities people detect are shaped by the statistics of their natural environment. We did this by testing the hypothesis that people’s perception of randomness in two-dimensional binary arrays (images with two levels of intensity) is inversely related to the with which the array’s would be encountered in nature. We estimated natural scene for small binary arrays by tabulating the frequencies with which each pattern of cell values appears. We then conducted an in which we collected human randomness judgments. The results show an inverse relationship between people’s perceived randomness of an array pattern and the prob- ability of the pattern appearing in nature.

People are very sensitive to deviations from their expec- dimensional binary arrays used in many subjective ran- tations about randomness. For example, the game Yahtzee domness , explanations are more difficult to involves repeatedly rolling 5 six-sided . If you were to come by. A common finding in these experiments is that roll all sixes 6 times in a row, you would probably be quite people consider arrays in which cells take different values surprised. The probability of such a sequence arising by from their neighbors (such as the one-dimensional array chance is 1/630. However, the low probability of such an 0010101101) more random than arrays in which cells take event is not sufficient to explain its apparent nonrandom- the same values as their neighbors (such as 0000011111) ness, since any other ordered sequence of the same num- (Falk & Konold, 1997). This result makes it clear that ber of dice rolls has the same probability. Consequently, people are sensitive to certain regularities, such as cells recent accounts of human subjective randomness (our having the same values as their neighbors. However, it is sense of the extent to which an event seems random) have difficult to explain why these regularities should be more focused on the regularities in an event. These regularities important than others that seem a priori plausible, such as suggest that a process other than chance might be at work neighboring cells differing in their values. (Falk & Konold, 1997; Feldman, 1996, 1997; Griffiths In this article, we explore a possible explanation for the & Tenenbaum, 2003, 2004). The basic idea behind these origins of the regularities that influence subjective random- accounts is that stimuli will appear random when they do ness judgments for one class of stimuli: two-­dimensional not express any regularities. binary arrays. These stimuli are essentially images, with An important challenge for any account of subjective the cells in the array having the appearance of a grid of randomness based on the presence of regularities is to ex- black and white pixels (see Figure 1). We might thus ex- plain why people should be sensitive to a particular set pect that the kinds of regularities detected by the visual of regularities. In the example given above, systematic system should play an important role in determining their runs of the same number may suggest loaded dice or some perceived randomness. A great deal of recent research sug- other nonrandom process influencing the outcomes. How- gests that the human visual cortex efficiently codes for the ever, for other kinds of stimuli, such as the one- or two- structure of natural scenes—scenes containing natural ele-

T. L. Griffiths, [email protected]

© 2010 The Psychonomic Society, Inc. 624 Ra n d o m n e s s a n d Na t u r a l Sc e n e s 625

Figure 1. An example of a two-dimensional binary array. This is a screenshot from the experiment, indicating how the participants made their responses. ments, such as trees, flowers, and shrubs, that represent the denote the probability that X will be generated by chance visual environment in which humans evolved (Olshausen and P(X | regular) be the probability of X under the regular & Field, 2000; Simoncelli & Olshausen, 2001). We con- generating process, Bayes’s rule gives the posterior odds sider the possibility that the kinds of regularities that peo- in favor of random generation as ple detect in two-­dimensional binary arrays are those that PX(|random ) PX(|random)(P random) are characteristic of natural scenes. = , (1) Preliminary support for the idea that the statistics of PX(|regular ) PX(|regular)(P regular) natural scenes may explain subjective randomness was where P(random) and P(regular) are the prior probabili- provided by a study conducted by Schreiber and Griffiths ties assigned to the random and regular processes, respec- (2007). In this study, human randomness judgments were tively. Only the first term on the right-hand side of this ex- found to correspond to the predictions of a simple proba- pression, the likelihood ratio, changes as a function of X, bilistic model estimated from images of natural scenes. making it a natural measure of the amount of evidence X This model examined the frequency with which neighbor- provides in favor of a random generating process. Hence, ing regions of an image had the same intensity value. It we can define the randomness of a stimulus X as was found that neighboring regions tend to have similar PX(|random) intensity values, providing a potential explanation for why random()X = log , (2) people consider binary arrays in which neighboring cells PX(|regular) differ in their values more random. However, a full charac- where the logarithm simply places the result on a linear terization of natural scene statistics is not feasible for large scale. binary arrays, due to the exponentially large number of The measure of subjective randomness defined in of cell values that can be expressed in such arrays. Equation 2 has been used to model human randomness In our present work, we use small binary arrays, which judgments for single-digit and one-dimensional allow us to directly estimate a over binary arrays (Griffiths & Tenenbaum, 2001, 2003, all possible patterns of cell values from images of natural 2004). Following Schreiber and Griffiths (2007), we ex- scenes. We then conduct an experiment with human partic- amine how subjective randomness might be applied to ipants to examine the relationship between this probability two-­dimensional binary arrays of the kind shown in Fig- distribution and the subjective randomness of the image. ure 1. A reasonable choice of P(X | random) is to assume that each cell in the array takes on a value of 1 or 0 with Subjective Randomness As equal probability, making P(X | random) 5 1/2m, where m One explanation for human randomness judgments is is the number of cells in the array. However, defining to view them as the result of an inference as to whether an P(X | regular) is more challenging. Direct estimation of observed stimulus, X, was generated by chance or by some the probability of all 2m binary arrays becomes intractable other, more regular process (Feldman, 1996, 1997; Grif- as m becomes large. Thus, we use 4 3 4 binary arrays for fiths & Tenenbaum, 2003, 2004). If we let P(X | random) which we can exhaustively tabulate the frequencies of all 626 Hs u , Gr i f f i t h s , a n d Sc hr e i b e r

Figure 2. Examples of natural scene images used in our study. The images are from a data set used in the study “Spatiochromatic Receptive Field Properties Derived From Information-Theoretic Analyses of Cone Mosaic Responses to Natural Scenes,” by E. Doi, T. Inui, T. W. Lee, T. Wachtler, and T. J. Sejnowski, 2003, Neural Computation, 15, published by MIT Press. Printed with the authors’ permission. patterns that can appear, providing a nonparametric esti- Method mate of P(X | regular) that allows for a comprehensive test of our hypothesis. Participants We estimated the values of P(X |regular) for a set of The participants were 77 members of the University of California, Berkeley community, who participated for course credit. stimuli X corresponding to 4 3 4 binary arrays. Since there 16 are only 2 possible patterns that can be expressed in such Stimuli an array, we can count the frequency with which each pat- The participants were shown one hundred 4 3 4 binary arrays. tern appears in natural images. These stimuli were extracted The stimuli were restricted to evenly balanced 4 3 4 patches, con- from a set of images of natural scenes that have been used in taining an equal number of black and white pixels, in order to avoid previous research (Doi, Inui, Lee, Wachtler, & Sejnowski, any effects resulting from the ratio of black to white pixels in each patch. All stimuli with this property were rank-ordered by the prob- 2003). This set consisted of 62 still nature shots containing ability with which they appeared in natural scenes. We determined trees, flowers, and shrubs, as shown in Figure 2. There were the stimulus for which this probability equaled P(X | random) 5 no images of humans, animals, or cityscapes. Image patches 1/216, and labeled this the neutral stimulus because its probability of varying sizes were extracted from each natural image to is equal under the regular and random generating processes and its measure statistics at a of scales. A total of 700,000 randomness score is thus zero. Test stimuli were selected from 50 patches were sampled at random from among the 62 im- evenly spaced quantiles on either side of the neutral stimulus for a ages with dimensions n 3 n, for n 5 4, 8, 16, 32, 64, 128, total of 100 images and are shown in Figure 3. Five practice stimuli were selected from the 10%, 30%, 50%, 70%, and 90% quantiles of and 256 pixels. All the patches were then reduced through the ordered images. averaging down to 4 3 4 arrays, binarized by setting pixels with intensity greater than 0 (the overall intensity) Procedure to 1 and with all other pixels being set to 0. The resulting The participants were told that the stimuli were created using either 4,900,000 binary arrays were then divided into the 216 pos- a random process or another undefined process. The proportion of sible patterns, and the frequency of each pattern was re- each was unspecified. They were asked to decide which process gen- erated each stimulus. Below the stimulus were two buttons, as shown corded. Normalizing these frequencies gives us an estimate in Figure 1. The first button was labeled “Random,” and the second for the probability distribution P(X | regular), which we can was labeled “Not Random.” The participants were instructed to press use to compare the Bayesian measure of randomness given the button corresponding to their intuition about which process had in Equation 2 with human judgments. generated the stimulus. In order to familiarize the participants with Ra n d o m n e s s a n d Na t u r a l Sc e n e s 627

1 2 3 4 5 6 7 8 9 10

0

10

20

30

40

50

60

70

80

90

Figure 3. Stimuli for the experiment: Binary images for which a randomness score is es- timated from a nonparametric of natural images. The stimuli are ordered from the lowest to the highest value of random(X ), with numbers increasing from left to right and then from top to bottom. this procedure, the first 5 stimuli were presented as practice trials, However, the pixelation resulting from reducing all im- followed by the 100 stimuli that constituted the main experiment. ages to 4 3 4 binary arrays caused this stimulus to appear more random than it may appear at full resolution. Other Results deviations from model predictions include stimuli with symmetry, such as Image 83 (9th row, 3rd column) and The results are shown in Figure 4. A one-way ANOVA Image 99 (10th row, 9th column). This gridlike design is showed a statistically significant effect of image an example of a pattern that is not probable among natural [F(99,7524) 5 30.26, MSe 5 0.17, p , .001]. The linear scenes but still appears highly structured. Such examples correlation between random(X ) and the probability that illustrate that properties other than those of natural scenes the stimulus would be classified as random was r(98) 5 also give rise to perceived structure. .75, p , .001, and the rank–order correlation (taking into account only the relative ordering of these different mea- Discussion sures) was r 5 .75 ( p , .01). These results bear out the predictions of the Bayesian model and indicate that, for Accounts of subjective randomness that appeal to the most part, the distribution estimated using a nonpara- people’s ability to detect regularities in stimuli need to be metric histogram of natural scene images provides a rea- able to characterize those regularities and their origins. sonable candidate for P(X | regular). For example, if subjective randomness is viewed as the A few stimuli deviated noticeably from the model pre- statistical evidence that a stimulus provides for having dictions. For example, Image 26 (3rd row, 6th column, of been produced from a random generating process, rather Figure 3) was rated as significantly more random, on aver- than from one with a more regular structure (Griffiths & age, than were other images with similar random(X ) val- Tenenbaum, 2003, 2004), we need to know what distribu- ues. Here, the patch seemed to capture an intersection of a tion over stimuli is induced by the more regular process, curve with a line (a semicircle on the bottom half with a line P(X | regular). Studying the subjective randomness of two- on the left side). This is a common occurrence in natural dimensional binary arrays provides one way to approach images—hence, its relatively high value of P(X | regular). this problem, making it possible to explore the hypothesis 628 Hs u , Gr i f f i t h s , a n d Sc hr e i b e r

People’s Classification of 100 Images As Random or Not Random 100

90

80

70 26

60

50

40

30 99 83 20

Percentage of People Who Thought Image Was Random 10

0 �6 �4 �2 0 2 4 6 Bayesian Randomness Score

Figure 4. Results of the experiment. The proportion of the participants who classified each stimulus as having come from a random source as a function of random(X ), computed using the distribution estimated from a nonparametric histogram of natural scenes as P(X | regular). Randomness judgments generally followed model predictions, with a few exceptions. Images 26, 83, and 99 (marked on the figure) are examples of patches that did not follow model predictions, for reasons that we discuss in the text. that the regularities that people detect in these arrays and in this study is suitable only for small binary arrays, thus the resulting evaluation of their randomness are influ- capturing only limited aspects of the structure of natu- enced by the statistical structure of our visual world. This ral scenes. Schreiber and Griffiths (2007) used a simple statistical structure can be estimated from images of natu- probabilistic model of images to explore randomness ral scenes, providing an objective method for estimating perception for larger binary arrays, but this analysis was P(X | regular). In this study, we explored the consequences limited to the extent to which neighboring cells shared the of estimating P(X | regular) for binary arrays extracted same value. With more sophisticated image models (e.g., from natural scenes through an exhaustive enumeration Freeman, Pasztor, & Carmichael, 2000; Gimel’farb, 1996; of patterns that can appear in small arrays. We found that a Roth & Black, 2005; Zhu, Wu, & Mumford, 1998), we Bayesian model of randomness perception using this dis- may be able to capture more of the nuances of subjective tribution as the alternative to random generation provides randomness judgments for larger binary arrays, enabling a reasonably good model of human judgments, with the us to provide a more exhaustive exploration of how these subjective randomness of a pattern decreasing as its prob- judgments correspond to the statistics of our natural visual ability of appearing in natural scenes increases. environment. These results demonstrate that it is possible to define A deeper understanding of human randomness judg- good models of subjective randomness using objective ments may also be achieved by considering the structure of sources of regularities—in our case, the statistics of natu- the human visual system in more detail. High-level prop- ral scenes. However, there is room for future work toward erties of our stimuli, such as symmetry, seem important to a more complete analysis of the hypothesis that the statis- human randomness judgments but are not captured by our tics of these images can explain human randomness judg- models. Other phenomena, such as translation invariance, ments. The method for estimating P(X | regular) we used might fall out of the neural processes supporting vision. Ra n d o m n e s s a n d Na t u r a l Sc e n e s 629

For example, images could be initially passed through ori- Freeman, W., Pasztor, E., & Carmichael, O. (2000). Learning low- ented filters, simulating receptive fields for V1 neurons. If level vision. International Journal of Computer Vision, 40, 24-47. this results in a significant transformation of the stimulus Gimel’farb, G. (1996). Texture modeling by multiple pairwise pixel interactions. IEEE Transactions on Pattern Analysis & Machine Intel- space, arrays that we considered distinct in our analysis ligence, 18, 1110-1114. could be considered the same by the visual system, and Griffiths, T. L., & Tenenbaum, J. B. (2001). Randomness and coinci- their probabilities should be combined accordingly. Other, dences: Reconciling intuition and . In J. D. Moore & more sophisticated models of visual processing could also K. Stenning (Eds.), Proceedings of the 23rd Annual Conference of the Cognitive Science Society (pp. 370-375). Mahwah, NJ: Erlbaum. be used, with the potential to further improve the fit be- Griffiths, T. L., & Tenenbaum, J. B. (2003). Probability, algorithmic tween predicted and actual human randomness judgments , and subjective randomness. In R. Alterman & D. Kirsh and to help us understand how we come to form our judg- (Eds.), Proceedings of the 25th Annual Conference of the Cognitive ments about visual structure. Science Society (pp. 480-485). Mahwah, NJ: Erlbaum. Griffiths, T. L., & Tenenbaum, J. B. (2004). From algorithmic to sub- Author Note jective randomness. In S. Thrun, L. K. Saul, & B. Schölkopf (Eds.), Advances in neural information processing systems (Vol. 16, pp. 953- This work was supported by Grant FA9550-07-1-0351 from the Air 960). Cambridge, MA: MIT Press. Force Office of Scientific Research and Grant RES-000-22-3275 from Olshausen, B. A., & Field, D. J. (2000). Vision and the coding of natu- the Economics and Social Research Council. The authors thank Evan ral images. American Scientist, 88, 238-245. Moss and Joseph Vuong for assistance in . Correspondence Roth, S., & Black, M. J. (2005). Fields of experts: A framework for concerning this article should be addressed to T. L. Griffiths, Department learning image priors. In Proceedings of the 2005 IEEE Computer Sci- of Psychology, University of California, 3210 Tolman Hall #1650, Berke- ence Society Conference on Computer Vision and ley, CA 94720-1650 (e-mail: [email protected]). (Vol. 2, pp. 860-867). Washington, DC: IEEE Computer Society. Schreiber, E., & Griffiths, T. L. (2007). Subjective randomness and References natural scene statistics. In D. S. McNamara & J. G. Trafton (Eds.), Proceedings of the 29th Annual Conference of the Cognitive Science Doi, E., Inui, T., Lee, T. W., Wachtler, T., & Sejnowski, T. J. (2003). Society (pp. 1449-1454). Mahwah, NJ: Erlbaum. Spatiochromatic receptive field properties derived from information- Simoncelli, E. P., & Olshausen, B. A. (2001). Natural image statis- theoretic analyses of cone mosaic responses to natural scenes. Neural tics and neural representation. Annual Review of Neuroscience, 24, Computation, 15, 397-417. 1193-1216. Falk, R., & Konold, C. (1997). Making sense of randomness: Implicit Zhu, S., Wu, Y., & Mumford, D. (1998). Filters, random fields and encoding as a basis for judgement. Psychological Review, 104, 301- maximum (frame): Towards a unified theory for texture mod- 318. eling. International Journal of Computer Vision, 27, 107-126. Feldman, J. (1996). Regularity vs genericity in the perception of col- linearity. Perception, 25, 335-342. Feldman, J. (1997). Curvilinearity, covariance, and regularity in percep- (Manuscript received September 21, 2009; tual groups. Vision Research, 37, 2835-2848. revision accepted for publication March 9, 2010.)