Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8457891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:55:46+00:00 2026-06-10T12:55:46+00:00

I am doing a behavioral study in which I want to see if a

  • 0

I am doing a behavioral study in which I want to see if a species shows a response significantly different from expected among three periods. There are 47 independent observations of the species, each with three periods, for a total observation period of 8.6 minutes. The first period is 3 minutes, the second period is 0.6 minutes, and the third period is 5 minutes. During each period, animals can either respond positively or negatively. During the first period, there were two positive responses (out of 47 observations; 45 negative), during the second period, 13 of 47 responses were positive, and during the third period, 14 of 47 responses were positive.

Thus I’m attempting to run a chisquare test where I adjust the probabilities in the null hypothesis to correct for the difference in time among periods, but I don’t think I’m doing it correctly.

data<-c(2,13,14)
null.probs<-c(3/8.6, 0.6/8.6, 5/8.6)
chi<-chisq.test(data, p=null.probs)

I am fairly certain that my null hypothesis of those expected values is not correct in this case, but I’m not sure how to properly adjust it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:55:47+00:00Added an answer on June 10, 2026 at 12:55 pm

    If you run a glm fit with ‘poisson’ errors, you get a deviance statistic that is distributed as chi-square. You can use the counts as outcome and add an offset term that is the log(time) which will adjust for the different lengths of observation.

    > counts<-c(2, 13, 14)
    > times<-c(3, 0.6, 5)
    > glm(counts ~ letters[1:3] +offset( log(times)), family="poisson")
    
    Call:  glm(formula = counts ~ letters[1:3] + offset(log(times)), family = "poisson")
    
    Coefficients:
      (Intercept)  letters[1:3]b  letters[1:3]c  
          -0.4055         3.4812         1.4351  
    
    Degrees of Freedom: 2 Total (i.e. Null);  0 Residual
    Null Deviance:      36.68 
    Residual Deviance: 1.776e-15    AIC: 17.52 
    
    Degrees of Freedom: 2 Total (i.e. Null);  0 Residual
    Null Deviance:      36.68 
    Residual Deviance: 1.776e-15    AIC: 17.52 
    

    You have exactly fitted a model that only had two degrees of freedom possible. So the exact fit will obviously explain all of the data. What you are using for inference is the sum of departures of the log(counts) from the Poisson mean. (There will be a predictable problem if any of the counts are zero.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Doing an ajax get request works as expected using the following code: $.ajax({ type:
i'm doing an ajax request with query and wondering why my response is already
I'm doing a site with a page that shows boxes (all the same size)
I am doing a project with the robot Nao from Aldebaran. I have to
I want to understand how to fix the behavior I'm encountering I'm doing my
Using OneNote 2010 doing some C# interop stuff. Observing some very strange behavior, which
doing some exercise from a book I've come across a doubt. I've defined some
I'm doing multiple simultaneous fairly long running requests from one client however the addSubmitCompleteHandler
Im doing a textarea with jeditable. The content is saved and loaded from a
Doing the getting started of Sinatra. I get this error: ./sinatra.rb:5: undefined method `get'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.