Arthritis in an 18 month old dog is rare although not impossible. There are other things that could be causing this such as hip dysplasia. Also consider that there may be a foreign object imbedded in the dog. Look for a small wound that may be from a BB or pellet. Feel for a tender spot. As DB Lady recommends, take the dog to a vet to be sure.