chi squared test or Z test? [duplicate]

I have an outcome from a biological experiment, where I have counted the number of dead cells upon a mutation. For example, in once case - out of 120 cells we saw 16% of the dead cells, but our expectations were around 10%. So to check the difference is significant I have performed 'z-test for changes in proportions'.

But my question is, whether is it possible to do ch-squared test on a single experiment like the above? I have Googled a lot, but all examples I see use a contingency table or involve multiple variables.

marked as duplicate by gung♦ r StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Jun 24 '15 at 14:20

Yes, it's possible to do a chi-square test on this.

Specifically, this is the chi-square goodness of fit test. To do it correctly you set up two cells (one for dead, one for not dead), like so:

The chi-square is $\sum_i (O_i-E_i)^2/E_i$ and has $k-1$ df, where $k$ is the number of categories (k=2 in this case, meaning 1 df).