Editing
Evolution and Natural Selection
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Simulating Allele Frequency Change (Selection):''' <syntaxhighlight lang="python"> import random def simulate_generation(pop_size, p_freq, selection_coefficient): """ p_freq: Frequency of allele A (favorable) selection_coefficient: Advantage of A over a (0 to 1) """ next_gen_p = 0 # Simplified haploid model for _ in range(pop_size): # Pick an allele based on current frequency allele = 'A' if random.random() < p_freq else 'a' # Selection step: if 'A', always survive. If 'a', might die. if allele == 'a' and random.random() < selection_coefficient: # This 'a' individual dies; replace it with 'A' from a survivor allele = 'A' if allele == 'A': next_gen_p += 1 return next_gen_p / pop_size # Start with 10% frequency of favorable allele freq = 0.1 for i in range(10): freq = simulate_generation(1000, freq, 0.05) print(f"Gen {i+1}: Frequency of favorable allele = {freq:.3f}") # Watch how a 5% advantage takes over the population. </syntaxhighlight> ; Evidence for Evolution : '''The Fossil Record''' β Transition fossils like *Archaeopteryx* (dinosaur to bird) or *Tiktaalik* (fish to tetrapod). : '''Biogeography''' β Species on islands resembling those on the nearest mainland (e.g., Darwin's Finches). : '''Molecular Biology''' β Comparing DNA sequences; humans and chimps share ~98% of their coding DNA. : '''Direct Observation''' β Antibiotic resistance in bacteria or the shift in peppered moth coloration during the Industrial Revolution. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information